Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gabber235 committed Apr 3, 2024
1 parent addbe7e commit b798bd8
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class PumpkinHatCinematicEntry(
override val criteria: List<Criteria> = emptyList(),
@Segments(icon = "mingcute:hat-fill")
val segments: List<PumpkinHatSegment> = emptyList(),
) : CinematicEntry {
) : CinematicEntry {
override fun create(player: Player): CinematicAction {
return PumpkinHatCinematicAction(
player,
Expand Down Expand Up @@ -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
)
)
)
Expand Down
1 change: 1 addition & 0 deletions documentation/docs/adapters/BasicAdapter/BasicAdapter.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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.

<fields.ReadonlyFactInfo />

## 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

<fields.CommentField />
<fields.EntryField name='Group' required>
</fields.EntryField>
<fields.EntryField name='Cinematic' required>
When not set it will filter based on if any cinematic is active.
</fields.EntryField>

0 comments on commit b798bd8

Please sign in to comment.