Skip to content

Trigger PLAYEREAT

Roughly_ edited this page Dec 17, 2022 · 2 revisions

The enchantment is triggered when the player eats a consumable.

Links:
  • Whenever there's a sound value, reference this
  • Whenever there's an effect value, reference this
  • Whenever there's a particle value, reference this
  • Whenever there's a material value, reference this
  • Whenever there's an entity type (type) value, reference this

Action placeholders:
  • %player_name%
  • %player_x%
  • %player_y%
  • %player_z%
  • %player_yaw%
  • %player_pitch%
  • %player_money%
  • %player_xp%
  • %player_xp_levels%
  • %player_health%
  • %player_max_health%
  • %player_food%
  • %player_air%
  • %player_max_air%
  • %player_godmode% (ticks)
  • %player_pdc_ADDRESS% // only for values assigned by this plugin
  • %item_name%

Actions (not in any order):
  • 'PLAYER-PDC-SET [address] [value]' - sets a value at a certain player's PersistentDataContainer address to a new certain string.
  • 'PLAYER-VELOCITY [x] [y] [z]' - applies velocity to the player in the direction they are looking with a certain force.
  • 'PLAYER-SOUND [sound]' - plays a sound to the player.
  • 'PLAYER-EFFECT [effect] [ticks] [amplifier]' - adds an effect to the player .
  • 'PLAYER-REMOVE-EFFECT [effect]' - removes a certain effect from the player if is present.
  • 'PLAYER-REMOVE-DEBUFFS' - removes all debuffs from the player if any are present.
  • 'PLAYER-REMOVE-BUFFS' - removes all buffs effect from the player if any are present.
  • 'PLAYER-BOSSBAR [style] [duration] [text]' - sends a bossbar to the player for a certain time (in ticks). Styles: SEGMENTED_6; SEGMENTED_10; SEGMENTED_12; SEGMENTED_20; SOLID
  • 'PLAYER-SET-HAND [material]' - sets the player's hand to a new item, specified by the material value.
  • 'PLAYER-SHUFFLE-HOTBAR' - shuffles the player's hotbar.
  • 'PLAYER-SHUFFLE-INVENTORY' - shuffles the player's inventory.
  • 'PLAYER-STRIKE-FAKE-LIGHTNING' - strikes a (fake) lightning on the player.
  • 'PLAYER-STRIKE-REAL-LIGHTNING' - strikes lightning on the player.
  • 'PLAYER-PARTICLE [particle]' - spawns particles above the player's head.
  • 'PLAYER-PARTICLE-BOOTS [particle]' - spawns particles behind the player's legs.
  • 'PLAYER-TELEPORT [x] [y] [z]' - teleports the player to a certain location in their world.
  • 'PLAYER-FORWARD [blocks]' - teleports the player forward (or backward, if the value is negative).
  • 'PLAYER-DIRECTION [yaw] [pitch]' - sets the direction of the player.
  • 'PLAYER-WORLD [name]' - moves the player to another world.
  • 'PLAYER-TELEPORT-BED' - teleports the player to their bed location.
  • 'PLAYER-SET-HEALTH [health]' - sets the player's health to certain health, or their max health, if the value exceeds it.
  • 'PLAYER-SET-MAX-HEALTH [health]' - sets the player's max health to a certain one.
  • 'PLAYER-SET-FIRE [ticks]' - sets the player on fire for a certain amount of time.
  • 'PLAYER-SET-FOOD [food]' - sets the player's food level to a certain one, or their max food level, if the value exceeds it.
  • 'PLAYER-SET-OXYGEN [oxygen]' - sets the player's oxygen level to a certain one, or their max oxygen if the value exceeds it.
  • 'PLAYER-SET-EXP [exp]' - sets the player's exp to a certain one.
  • 'PLAYER-SET-LEVEL [exp]' - sets the player's exp level to a certain one.
  • 'PLAYER-SEND-ARROW' - sends an arrow from the player's body.
  • 'PLAYER-SEND-FIREBALL' - sends a fireball from the player's body.
  • 'PLAYER-SEND-MESSAGE [message]' - sends a message to the player.
  • 'PLAYER-SEND-TITLE [message]' - sends a title to the player.
  • 'PLAYER-SEND-SUBTITLE [message]' - sends a subtitle to the player.
  • 'PLAYER-ACTIONBAR [message]' - sends an actionbar message to the player.
  • 'PLAYER-CHAT [message/command]' - sends a message on behalf of the player.
  • 'PLAYER-SET-MONEY [money]' - sets the player's Vault money to a certain amount.
  • 'PLAYER-GIVE-HEAD [player name]' - gives the player a head of a certain player.
  • 'PLAYER-GIVE-ITEM [material] [quantity]' - gives the player an item, specified by the material value.
  • 'PLAYER-DROP-HAND' - makes player drop their hand item.
  • 'PLAYER-DAMAGE-ARMOR [helmet/chestplate/leggings/boots] [damage]' - damages player's armor.
  • 'PLAYER-DAMAGE-HAND [damage]' - damages player's hand item.
  • 'PLAYER-REPAIR-ARMOR [helmet/chestplate/leggings/boots]' - repairs player's armor.
  • 'PLAYER-REPAIR-HEAD' - repairs player's hand item.
  • 'PLAYER-TIME [ticks]' - sets the time to a certain one for the player.
  • 'PLAYER-WEATHER [sun/rain/thunder]' - sets the weather to a certain one for the player.
  • 'PLAYER-TIME-RESET' - resets the player's time.
  • 'PLAYER-WEATHER-RESET' - resets the player's weather.
  • 'PLAYER-GODMODE [ticks]' - sets the player to godmode for a certain amount of ticks.

Guides:

Triggers:

API:

Clone this wiki locally