top of page



This Command tests if a player is hovering slot #9 Ya in commands slot #1 is written #0that's why slot #9 is written #8

/testfor @a {SelectedItemSlot:8}
Slot Version

This command gives levaitation to the player if the other command Activates
/effect @p minecraft:levitation 1 10
Item Version

This command tests if a player is holding Dirt in their hand
/testfor @a {SelectedItem:{id:Minecraft:dirt}

This command gives levaitation to the player if the other command Activates
/effect @p minecraft:levitation 1 10
Get this As a One Command
bottom of page