54: Using an item as a key for a button [Minecraft Map Making]
Ep54: Detect if the player is holding, or not holding, a specific item when pressing a button.
Originally for Udemy, but uploaded here.
Commands, builds and ideas for people making their own Minecraft maps.
Check out my collabs on Coppit's channel: https://www.youtube.com/c/CoppitJ
Join the server I play on and the Discord where I hang out.
Server IP: 51.81.246.145:25588
Discord: https://discord.gg/KNSmPWdnfG
Udemy notes. YouTube formatting may make some of these wrong. :)
Commands used:
Check if button is pressed when holding Blue Dye:
execute at @p[nbt={SelectedItem:{id:"minecraft:blue_dye"}}] if block 27 57 -24 oak_button[powered=true]
Check if button is pressed when not holding Blue Dye:
execute at @p[nbt=!{SelectedItem:{id:"minecraft:blue_dye"}}] if block 27 57 -24 oak_button[powered=true]
execute at @p[nbt=!{SelectedItem:{id:"minecraft:blue_dye"}}] if block 27 57 -24 oak_button[powered=true] run say hi
Other Videos By Infernal Device
Other Statistics
Minecraft Statistics For Infernal Device
At present, Infernal Device has 184,447 views spread across 877 videos for Minecraft, accounting for over 10 days of watchable video on his channel. This is 94.82% of the total watchable video for Minecraft on Infernal Device's YouTube channel.