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

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

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)
environmental, projectile, explosion, fire, fall
(Environmental - All type of damage)
(Fire - Fire, lava, and blaze fireballs)
(Explosion - Explosions)
(Projectile - Arrows, thrown tridents, ghast and blaze fireballs)
(Fall - Fall damage (including ender pearls))