Subsections of Other
EVENTS
Inventory drag event
An event triggered when a player presses the mouse button to distribute items in the inventory
on inventory drag
EFFECTS
Give or drop
Gives items to a player, if their inventory is full, drops them at the player’s location instead.
give or drop %itemtypes/experiences% to %players%
Damage an entity while accounting for armor and potion effects
This effect allows you to damage an entity while taking into account their armor and potion effects.
You can also specify the type or cause of the damage.
damage %entity% with armor[ and potions] by %number% [heart[s]] [using [(type|cause)] %-damagetypecategory%]
EXPRESSIONS
Inventory Drag Event
Getting New Items from an Inventory Drag Event
When handling an Inventory Drag Event, it is often useful to identify the new items added to the inventory for further processing or validation.
Returns a list of items that have been added
new items
added items
Get affected slots from an Inventory Drag Event
This section explains how to retrieve the slot numbers that were affected during an Inventory Drag Event.
Returns the slot numbers that have been changed in the same order as it returns the expression for things.
changed slot[s]
event[-]slots
TYPES
Damage category
(damage[ ]type[ ])?categor(y|ies)