diff --git a/adapters/BasicAdapter/src/main/kotlin/me/gabber235/typewriter/entries/cinematic/PumpkinHatCinematicEntry.kt b/adapters/BasicAdapter/src/main/kotlin/me/gabber235/typewriter/entries/cinematic/PumpkinHatCinematicEntry.kt index eafbcba769..33a397a7b8 100644 --- a/adapters/BasicAdapter/src/main/kotlin/me/gabber235/typewriter/entries/cinematic/PumpkinHatCinematicEntry.kt +++ b/adapters/BasicAdapter/src/main/kotlin/me/gabber235/typewriter/entries/cinematic/PumpkinHatCinematicEntry.kt @@ -29,7 +29,7 @@ class PumpkinHatCinematicEntry( override val criteria: List = emptyList(), @Segments(icon = "mingcute:hat-fill") val segments: List = emptyList(), -) : CinematicEntry { + ) : CinematicEntry { override fun create(player: Player): CinematicAction { return PumpkinHatCinematicAction( player, @@ -70,7 +70,8 @@ class PumpkinHatCinematicAction( listOf( Equipment( com.github.retrooper.packetevents.protocol.player.EquipmentSlot.HELMET, - player.inventory.helmet?.toPacketItem() ?: com.github.retrooper.packetevents.protocol.item.ItemStack.EMPTY + player.inventory.helmet?.toPacketItem() + ?: com.github.retrooper.packetevents.protocol.item.ItemStack.EMPTY ) ) ) diff --git a/documentation/docs/adapters/BasicAdapter/BasicAdapter.mdx b/documentation/docs/adapters/BasicAdapter/BasicAdapter.mdx index 10729684b8..f570491595 100644 --- a/documentation/docs/adapters/BasicAdapter/BasicAdapter.mdx +++ b/documentation/docs/adapters/BasicAdapter/BasicAdapter.mdx @@ -106,6 +106,7 @@ first. | Name | Description | | ---- | ----------- | | [Cron Fact](./entries/fact/cron_fact.mdx) | Saved until a specified date, like (0 0 * * 1 | +| [In Cinematic Fact](./entries/fact/in_cinematic_fact.mdx) | If the player has the given MMOCore class | | [Inventory Item Count Fact](./entries/fact/inventory_item_count_fact.mdx) | The amount of a specific item in the player's inventory | | [Item Holding Fact](./entries/fact/item_holding_fact.mdx) | The amount of a specific item the player is currently holding | | [Number Placeholder Fact](./entries/fact/number_placeholder.mdx) | Computed Fact for a placeholder number | diff --git a/documentation/docs/adapters/BasicAdapter/entries/cinematic/pumpkin_hat_cinematic.mdx b/documentation/docs/adapters/BasicAdapter/entries/cinematic/pumpkin_hat_cinematic.mdx index 475d0e4d93..22f4329388 100644 --- a/documentation/docs/adapters/BasicAdapter/entries/cinematic/pumpkin_hat_cinematic.mdx +++ b/documentation/docs/adapters/BasicAdapter/entries/cinematic/pumpkin_hat_cinematic.mdx @@ -4,7 +4,10 @@ import Link from '@docusaurus/Link'; # Pumpkin Hat Cinematic -Show a pumpkin hat during a cinematic +The `Pumpkin Hat Cinematic` is a cinematic that shows a pumpkin hat on the player's head. + +## How could this be used? +When you have a resource pack, you can re-texture the pumpkin overlay to make it look like cinematic black bars. ## Fields diff --git a/documentation/docs/adapters/BasicAdapter/entries/fact/in_cinematic_fact.mdx b/documentation/docs/adapters/BasicAdapter/entries/fact/in_cinematic_fact.mdx new file mode 100644 index 0000000000..d93c2945a4 --- /dev/null +++ b/documentation/docs/adapters/BasicAdapter/entries/fact/in_cinematic_fact.mdx @@ -0,0 +1,24 @@ +import * as fields from '@site/src/components/EntryField'; +import Admonition from '@theme/Admonition'; +import Link from '@docusaurus/Link'; + +# In Cinematic Fact + +The 'In Cinematic Fact' is a fact that returns 1 if the player has an active cinematic, and 0 if not. + +If no cinematic is referenced, it will filter based on if any cinematic is active. + + + +## How could this be used? +With this fact, it is possible to make an entry only take action if the player does not have an active cinematic. + + +## Fields + + + + + + When not set it will filter based on if any cinematic is active. +