Entity procedure blocks

Procedure blocks in the entity category.

155
Returns
Inputs
Pick from list
Deal amount damage to entity from source damagesource
Deal [amount] damage to [entity] from source [damagesource]Entity · Action (no value)
Add modifier name ▾ of attribute attribute ▾ with value value operation operation ▾ to entity saved permanent ▾
Add modifier [name] of attribute [attribute] with value [value] operation [operation] to [entity] saved [permanent]Entity · Action (no value)
Add potion potion ▾ with amplifier level for duration ticks to entity
Add potion [potion] with amplifier [level] for [duration] ticks to [entity]Entity · Action (no value)
Add potion potion ▾ with amplifier level for duration ticks ambient ambient particles particles to entity
Add potion [potion] with amplifier [level] for [duration] ticks ambient [ambient] particles [particles] to [entity]Entity · Action (no value)
Armor value of entity
Armor value of [entity]Entity · Number
Is entity creature type type ▾
Is [entity] creature type [type]Entity · True / false
Is entityhand ▾-handed
Is [entity] [hand]-handedEntity · True / false
Clear all potion effects of entity
Clear all potion effects of [entity]Entity · Action (no value)
For custom entity entity of type customEntity ▾ get integer data parameter accessorField ▾ value
For custom entity [entity] of type [customEntity] get integer data parameter [accessorField] valueEntity · Number
For custom entity entity of type customEntity ▾ set integer data parameter accessorField ▾ value to value
For custom entity [entity] of type [customEntity] set integer data parameter [accessorField] value to [value]Entity · Action (no value)
For custom entity entity of type customEntity ▾ get logic data parameter accessorField ▾ value
For custom entity [entity] of type [customEntity] get logic data parameter [accessorField] valueEntity · True / false
For custom entity entity of type customEntity ▾ set logic data parameter accessorField ▾ value to value
For custom entity [entity] of type [customEntity] set logic data parameter [accessorField] value to [value]Entity · Action (no value)
For custom entity entity of type customEntity ▾ get string data parameter accessorField ▾ value
For custom entity [entity] of type [customEntity] get string data parameter [accessorField] valueEntity · Text
For custom entity entity of type customEntity ▾ set string data parameter accessorField ▾ value to value
For custom entity [entity] of type [customEntity] set string data parameter [accessorField] value to [value]Entity · Action (no value)
Despawn entity
Despawn [entity]Entity · Action (no value)
ID of dimension entity is in
ID of dimension [entity] is inEntity · Dimension
Direction (yaw) in de.g. relative to S of entity
Direction (yaw) in de.g. relative to S of [entity]Entity · Number
Direction of entity
Direction of [entity]Entity · Direction
Execute command /command in the name of entity
Execute command /[command] in the name of [entity]Entity · Action (no value)
Execute command /command in the name of entity and get result
Execute command /[command] in the name of [entity] and get resultEntity · Text
Extinguish entity
Extinguish [entity]Entity · Action (no value)
Get eye position of entity
Get eye position of [entity]Entity · Vector
Get item from armor slot slotid of entity
Get item from armor slot [slotid] of [entity]Entity · Item
Get the base value of attribute attribute ▾ from entity entity
Get the base value of attribute [attribute] from entity [entity]Entity · Number
Get the value (with modifiers) of attribute attribute ▾ from entity entity
Get the value (with modifiers) of attribute [attribute] from entity [entity]Entity · Number
Get passenger that is controlling entity
Get passenger that is controlling [entity]Entity · Entity
Get fall distance of entity
Get fall distance of [entity]Entity · Number
Get remaining ticks on fire of entity
Get remaining ticks on fire of [entity]Entity · Number
Get first passenger of entity
Get first passenger of [entity]Entity · Entity
Get session ID of entity
Get session ID of [entity]Entity · Number
Get oxygen of entity
Get oxygen of [entity]Entity · Number
Get frozen percentage of entity
Get frozen percentage of [entity]Entity · Number
Get the lowest entity that entity is riding, or self if not riding anything
Get the lowest entity that [entity] is riding, or self if not riding anythingEntity · Entity
Get shoot power if projectile_entity is a projectile
Get shoot power if [projectile entity] is a projectileEntity · Number
Get a copy of item from slot slotid of entity if it has inventory
Get a copy of item from slot [slotid] of [entity] if it has inventoryEntity · Item
Get step height of entity
Get step height of [entity]Entity · Number
Get number of ticks entity has existed for
Get number of ticks [entity] has existed forEntity · Number
Get number of ticks entity has been frozen for
Get number of ticks [entity] has been frozen forEntity · Number
Get item entity is using
Get item [entity] is usingEntity · Item
Get number of ticks entity has been using item for
Get number of ticks [entity] has been using item forEntity · Number
Get UUID of entity
Get UUID of [entity]Entity · Text
Get owner of entity if tamed
Get owner of [entity] if tamedEntity · Entity
Get entity entity is riding
Get entity [entity] is ridingEntity · Entity
Get entity entity is targeting for attack
Get entity [entity] is targeting for attackEntity · Entity
Does entity have the attribute attribute ▾
Does [entity] have the attribute [attribute]Entity · True / false
Does entity have modifier name ▾ for attribute attribute ▾
Does [entity] have modifier [name] for attribute [attribute]Entity · True / false
Has entity no-gravity
Has [entity] no-gravityEntity · True / false
Has entity active potion potion ▾
Has [entity] active potion [potion]Entity · True / false
Current health of entity
Current health of [entity]Entity · Number
Max health of entity
Max health of [entity]Entity · Number
For each slot of inventory of entity get contents copy as _placeholder do foreach
For each slot of inventory of [entity] get contents copy as [ placeholder] do [foreach]Entity · Action (no value)
Is mob entity attack swinging
Is mob [entity] attack swingingEntity · True / false
Can entity be attacked
Can [entity] be attackedEntity · True / false
Is entity elytra flying
Is [entity] elytra flyingEntity · True / false
Is entity glowing
Is [entity] glowingEntity · True / false
Is entity swimming
Is [entity] swimmingEntity · True / false
Is entity tagged in entity tags as tag
Is [entity] tagged in entity tags as [tag]Entity · True / false
Is entity underwater
Is [entity] underwaterEntity · True / false
Is entity currently aggressive
Is [entity] currently aggressiveEntity · True / false
Is entity alive
Is [entity] aliveEntity · True / false
Is entity being ridden
Is [entity] being riddenEntity · True / false
Is entity blocking
Is [entity] blockingEntity · True / false
Is entity burning
Is [entity] burningEntity · True / false
Is entity a child
Is [entity] a childEntity · True / false
Is entity immune to explosions
Is [entity] immune to explosionsEntity · True / false
Is entity immune to fire
Is [entity] immune to fireEntity · True / false
Is entity in lava
Is [entity] in lavaEntity · True / false
Is entity invisible
Is [entity] invisibleEntity · True / false
Is entity invulnerable
Is [entity] invulnerableEntity · True / false
Is entity inside a solid wall
Is [entity] inside a solid wallEntity · True / false
Is entity in water
Is [entity] in waterEntity · True / false
Is entity in water or bubble column
Is [entity] in water or bubble columnEntity · True / false
Is entity in water, rain, or bubble column
Is [entity] in water, rain, or bubble columnEntity · True / false
Is entity leashed
Is [entity] leashedEntity · True / false
Can entity change dimensions
Can [entity] change dimensionsEntity · True / false
Is entity on ground
Is [entity] on groundEntity · True / false
Is entity riding
Is [entity] ridingEntity · True / false
Is entity sleeping
Is [entity] sleepingEntity · True / false
Is entity sneaking
Is [entity] sneakingEntity · True / false
Is entity sprinting
Is [entity] sprintingEntity · True / false
Is entity tamed
Is [entity] tamedEntity · True / false
Is entity tamed by tamedBy
Is [entity] tamed by [tamedBy]Entity · True / false
Item in main-hand of entity
Item in main-hand of [entity]Entity · Item
Item in off-hand of entity
Item in off-hand of [entity]Entity · Item
Look angle vector of entity
Look angle vector of [entity]Entity · Vector
X value of look angle vector of entity
X value of look angle vector of [entity]Entity · Number
Y value of look angle vector of entity
Y value of look angle vector of [entity]Entity · Number
Z value of look angle vector of entity
Z value of look angle vector of [entity]Entity · Number
Block face entity is looking at with raytrace distance maxdistance fluid mode fluid_mode ▾ block mode block_mode ▾
Block face [entity] is looking at with raytrace distance [maxdistance] fluid mode [fluid mode] block mode [block mode]Entity · Direction
Is entity looking at a block with raytrace distance maxdistance fluid mode fluid_mode ▾ block mode block_mode ▾
Is [entity] looking at a block with raytrace distance [maxdistance] fluid mode [fluid mode] block mode [block mode]Entity · True / false
Look position of entity with raytrace distance maxdistance fluid mode fluid_mode ▾ block mode block_mode ▾
Look position of [entity] with raytrace distance [maxdistance] fluid mode [fluid mode] block mode [block mode]Entity · Vector
Look X position of entity with raytrace distance maxdistance fluid mode fluid_mode ▾ block mode block_mode ▾
Look X position of [entity] with raytrace distance [maxdistance] fluid mode [fluid mode] block mode [block mode]Entity · Number
Look Y position of entity with raytrace distance maxdistance fluid mode fluid_mode ▾ block mode block_mode ▾
Look Y position of [entity] with raytrace distance [maxdistance] fluid mode [fluid mode] block mode [block mode]Entity · Number
Look Z position of entity with raytrace distance maxdistance fluid mode fluid_mode ▾ block mode block_mode ▾
Look Z position of [entity] with raytrace distance [maxdistance] fluid mode [fluid mode] block mode [block mode]Entity · Number
For each item from loot table location granted to entity as _placeholderfield ▾ do foreach
For each item from loot table [location] granted to [entity] as [ placeholder] do [foreach]Entity · Action (no value)
Make sourceentity ride entity
Make [sourceentity] ride [entity]Entity · Action (no value)
Make entity stop riding entity
Make [entity] stop riding entityEntity · Action (no value)
Tame entity by sourceentity
Tame [entity] by [sourceentity]Entity · Action (no value)
Get (display) name of entity
Get (display) name of [entity]Entity · Text
Get entity custom itemstack NBT tag tagName
Get [entity] custom itemstack NBT tag [tagName]Entity · Item
Set entity custom itemstack NBT tag tagName to tagValue
Set [entity] custom itemstack NBT tag [tagName] to [tagValue]Entity · Action (no value)
Get entity custom logic NBT tag tagName
Get [entity] custom logic NBT tag [tagName]Entity · True / false
Set entity custom logic NBT tag tagName to tagValue
Set [entity] custom logic NBT tag [tagName] to [tagValue]Entity · Action (no value)
Get entity custom number NBT tag tagName
Get [entity] custom number NBT tag [tagName]Entity · Number
Set entity custom number NBT tag tagName to tagValue
Set [entity] custom number NBT tag [tagName] to [tagValue]Entity · Action (no value)
Get entity custom text NBT tag tagName
Get [entity] custom text NBT tag [tagName]Entity · Text
Set entity custom text NBT tag tagName to tagValue
Set [entity] custom text NBT tag [tagName] to [tagValue]Entity · Action (no value)
Override fall distance of entity with height blocks for the next tick
Override fall distance of [entity] with [height] blocks for the next tickEntity · Action (no value)
For each direct passenger of entity as _placeholder do foreach
For each direct passenger of [entity] as [ placeholder] do [foreach]Entity · Action (no value)
For each direct or indirect passenger of entity as _placeholder do foreach
For each direct or indirect passenger of [entity] as [ placeholder] do [foreach]Entity · Action (no value)
Attempt to make entity find path and move to x: x y: y z: z with speed factor speed
Attempt to make [entity] find path and move to x: [x] y: [y] z: [z] with speed factor [speed]Entity · Action (no value)
Head pitch of entity in degrees
Head pitch of [entity] in degreesEntity · Number
Position of entity
Position of [entity]Entity · Vector
X position of entity
X position of [entity]Entity · Number
Y position of entity
Y position of [entity]Entity · Number
Z position of entity
Z position of [entity]Entity · Number
Get effect amplifier of potion potion ▾ for entity if active
Get effect amplifier of potion [potion] for [entity] if activeEntity · Number
Get remaining ticks of potion potion ▾ for entity
Get remaining ticks of potion [potion] for [entity]Entity · Number
Push entity with dx: x dy: y dz: z
Push [entity] with dx: [x] dy: [y] dz: [z]Entity · Action (no value)
Get registry name of entity
Get registry name of [entity]Entity · Text
Remove modifier name ▾ of attribute attribute ▾ from entity
Remove modifier [name] of attribute [attribute] from [entity]Entity · Action (no value)
Remove specific potion effect potion ▾ from entity
Remove specific potion effect [potion] from [entity]Entity · Action (no value)
Make entity look at x: x y: y z: z
Make [entity] look at x: [x] y: [y] z: [z]Entity · Action (no value)
Run function function in the name entity
Run function [function] in the name [entity]Entity · Action (no value)
Set item in armor slot slotid of entity
Set [item] in armor slot [slotid] of [entity]Entity · Action (no value)
Set the base value of attribute attribute ▾ to value for entity entity
Set the base value of attribute [attribute] to [value] for entity [entity]Entity · Action (no value)
Try to set custom display name of entity to displayname
Try to set custom display name of [entity] to [displayname]Entity · Action (no value)
Set entity on fire for seconds seconds
Set [entity] on fire for [seconds] secondsEntity · Action (no value)
Set health of entity to health
Set health of [entity] to [health]Entity · Action (no value)
Set invisibility of entity to boolean
Set invisibility of [entity] to [boolean]Entity · Action (no value)
Set item in main-hand of entity to amountitem
Set item in main-hand of [entity] to [amount] [item]Entity · Action (no value)
Attempt to override motion vector of entity to vx: vx vy: vy vz: vz
Attempt to override motion vector of [entity] to vx: [vx] vy: [vy] vz: [vz]Entity · Action (no value)
Set no-gravity of entity to gravityValue
Set no-gravity of [entity] to [gravityValue]Entity · Action (no value)
Set item in off-hand of entity to amountitem
Set item in off-hand of [entity] to [amount] [item]Entity · Action (no value)
Set oxygen of entity to air
Set oxygen of [entity] to [air]Entity · Action (no value)
Set rotation of entity yaw: yaw pitch: pitch
Set rotation of [entity] yaw: [yaw] pitch: [pitch]Entity · Action (no value)
Set amountslotitem in slot slotid of entity if it has inventory
Set [amount] [slotitem] in slot [slotid] of [entity] if it has inventoryEntity · Action (no value)
Set sneaking of entity to boolean
Set sneaking of [entity] to [boolean]Entity · Action (no value)
Set sprinting of entity to boolean
Set sprinting of [entity] to [boolean]Entity · Action (no value)
Set step height of entity to stepHeight
Set step height of [entity] to [stepHeight]Entity · Action (no value)
Set the attack target of entity to sourceentity
Set the attack target of [entity] to [sourceentity]Entity · Action (no value)
Set number of ticks entity has been frozen for to ticksfrozen
Set number of ticks [entity] has been frozen for to [ticksfrozen]Entity · Action (no value)
Set entity in cobweb for one tick
Set [entity] in cobweb for one tickEntity · Action (no value)
Get height of entity
Get height of [entity]Entity · Number
Get width of entity
Get width of [entity]Entity · Number
Attempt to stop navigation of entity
Attempt to stop navigation of [entity]Entity · Action (no value)
Get submerged height of entity
Get submerged height of [entity]Entity · Number
Swing main hand of entity
Swing main hand of [entity]Entity · Action (no value)
Swing off-hand of entity
Swing off-hand of [entity]Entity · Action (no value)
Delta movement of entity
Delta movement of [entity]Entity · Vector
X delta movement of entity
X delta movement of [entity]Entity · Number
Y delta movement of entity
Y delta movement of [entity]Entity · Number
Z delta movement of entity
Z delta movement of [entity]Entity · Number
Convert item entity source to itemstack
Convert item entity [source] to itemstackEntity · Item
Set location of entity to x: x y: y z: z
Set location of [entity] to x: [x] y: [y] z: [z]Entity · Action (no value)