3

Help with commands.

_CosmicMC 8/20/23 10:21 am
269
8/20/2023 5:57 pm
I need help with some commands. It's if the player is standing on a bamboo pressure plate, it will turn into an activated cherry pressure plate. But if the player is not on that cherry pressure plate it will turn into a bamboo pressure plate right away.
Posted by
_CosmicMC
Level 40 : Master Enderdragon Mountaineer
62

  Have something to say?

JoinSign in

6

Juillyoom
08/20/2023 5:48 pm
He/Him • Level 54 : Grandmaster Birb Skinner
pretty sure pressed pressure plates have a nbt tag for it, try standing on top of one and doing f3 + i (i think it was that to copy the nbt) and place a repeating command block with this (i think, sorry if i messed up it's midnight in here)

execute if block {insert block coordinates} bamboo_pressure_plate{type the nbt tag here] run setblock cherry_pressure_plate

(sorry if something ain't right!)

and another one saying this:
execute if block {insert block coordinates} cherry_pressure_plate{insert that same nbt tag but instead of true put false) run setblock bamboo_pressure_plate

hope this helps!!
2
_CosmicMC
08/20/2023 5:57 pm
Level 40 : Master Enderdragon Mountaineer
Thanks!
2
ItzOrangey
08/20/2023 11:54 am
He/Him • Level 44 : Master Wolf Wolf
I believe doing /kill @e should work
2
_CosmicMC
08/20/2023 5:03 pm
Level 40 : Master Enderdragon Mountaineer
I'm sorry, but what do you mean by that? Doing /kill @e has nothing to do with changing a block :|
2
EliTheShyGuy
08/20/2023 5:28 pm
He/Him • Level 43 : Master Procrastinator Lad
he's just making a joke.
2
_CosmicMC
08/20/2023 5:56 pm
Level 40 : Master Enderdragon Mountaineer
ok lol!
1

Welcome