make a command for minecraft where if i (Philipbox) hold a bamboo, my friend GeraTV gets…
- User
make a command for minecraft where if i (Philipbox) hold a bamboo, my friend GeraTV gets teleportated 1 block upper
- Assistant
Sure! You can achieve this using Minecraft commands and a repeating command block. Here’s a step-by-step guide to create a command where if player "Philipbox" holds a Bamboo, player "GeraTV" will be teleported 1 block upward.
-
Ensure cheats are enabled in your Minecraft world.
-
You need a command block. If you don’t have one, you can give yourself a command block using the following command:
/give @p command_block -
Place the command block on the ground, then right-click to open it.
-
Set the command block to “Repeat” and “Always Active”. This will ensure the command block constantly checks if the conditions are met.
-
Enter the following command into the command block:
execute as Philipbox if entity @s[nbt={SelectedItem:{id:"minecraft:bamboo"}}] run teleport GeraTV ~ ~1 ~
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.