Player procedure blocks

Procedure blocks in the player category.

41
Returns
Inputs
Pick from list
Add advancement achievement ▾ to entity
Add advancement [achievement] to [entity]Player · Action (no value)
Increase exhaustion of entity by amount
Increase exhaustion of [entity] by [amount]Player · Action (no value)
Add amountitem to entity inventory
Add [amount] [item] to [entity] inventoryPlayer · Action (no value)
Add recipe recipe to entity
Add recipe [recipe] to [entity]Player · Action (no value)
Add xpamount XP to entity
Add [xpamount] XP to [entity]Player · Action (no value)
Add xpamount XP levels to entity
Add [xpamount] XP levels to [entity]Player · Action (no value)
Allow entity to build if condition otherwise don''t
Allow [entity] to build if [condition] otherwise don''tPlayer · Action (no value)
Allow entity to fly if condition otherwise don''t
Allow [entity] to fly if [condition] otherwise don''tPlayer · Action (no value)
Does entity have command permission level permissionlevel
Does [entity] have command permission level [permissionlevel]Player · True / false
Is entity in game mode gamemode ▾
Is [entity] in game mode [gamemode]Player · True / false
Clear inventory of entity
Clear inventory of [entity]Player · Action (no value)
Close any GUI open for entity
Close any GUI open for [entity]Player · Action (no value)
Disable damage of entity if condition otherwise enable it
Disable damage of [entity] if [condition] otherwise enable itPlayer · Action (no value)
Get food level of entity
Get food level of [entity]Player · Number
Get absorption health level of entity
Get absorption health level of [entity]Player · Number
Get base fly speed parameter of entity
Get base fly speed parameter of [entity]Player · Number
Get food saturation level of entity
Get food saturation level of [entity]Player · Number
Get X spawn coordinate of entity for its current world
Get X spawn coordinate of [entity] for its current worldPlayer · Number
Get Y spawn coordinate of entity for its current world
Get Y spawn coordinate of [entity] for its current worldPlayer · Number
Get Z spawn coordinate of entity for its current world
Get Z spawn coordinate of [entity] for its current worldPlayer · Number
Get base walk speed parameter of entity
Get base walk speed parameter of [entity]Player · Number
Has entity completed advancement achievement ▾
Has [entity] completed advancement [achievement]Player · True / false
Has entity in inventory item
Has [entity] in inventory [item]Player · True / false
Has entity unlocked recipe recipe
Has [entity] unlocked recipe [recipe]Player · True / false
Is GUI guiname ▾ currently opened for entity
Is GUI [guiname] currently opened for [entity]Player · True / false
Has entity creative mode ability enabled
Has [entity] creative mode ability enabledPlayer · True / false
Open GUI guiname ▾ for entity pass location x: x y: y z: z
Open GUI [guiname] for [entity] pass location x: [x] y: [y] z: [z]Player · Action (no value)
Revoke advancement achievement ▾ from entity
Revoke advancement [achievement] from [entity]Player · Action (no value)
Remove amountitem from entity main inventory
Remove [amount] [item] from [entity] main inventoryPlayer · Action (no value)
Remove recipe recipe from entity
Remove recipe [recipe] from [entity]Player · Action (no value)
Remove amount XP from entity
Remove [amount] XP from [entity]Player · Action (no value)
Remove xpamount XP levels from entity
Remove [xpamount] XP levels from [entity]Player · Action (no value)
Send message text to entity show in action bar: actbar
Send message [text] to [entity] show in action bar: [actbar]Player · Action (no value)
Make entity fly if condition otherwise don''t
Make [entity] fly if [condition] otherwise don''tPlayer · Action (no value)
Set food level of entity to foodlevel
Set food level of [entity] to [foodlevel]Player · Action (no value)
Set game mode of entity to gamemode ▾
Set game mode of [entity] to [gamemode]Player · Action (no value)
Set food saturation of entity to amount
Set food saturation of [entity] to [amount]Player · Action (no value)
Set entity spawn to x: x y: y z: z
Set [entity] spawn to x: [x] y: [y] z: [z]Player · Action (no value)
Switch dimension of entity to dimension ▾
Switch dimension of [entity] to [dimension]Player · Action (no value)
Get amount of XP needed by entity to gain a level
Get amount of XP needed by [entity] to gain a levelPlayer · Number
Get XP level of entity
Get XP level of [entity]Player · Number