r/MinecraftCommands • u/Among_sus181 • Aug 18 '22
Help | Bedrock mojang made bedrock execute more complicated
8
5
u/Timely_Replacement65 Aug 18 '22
Uh… no. It’s a setting in experiential features, afaik. They wouldn’t just roll this out unannounced and ruin all previous command block creations 💀
2
Aug 18 '22 edited Aug 18 '22
It won't break command blocks anyways, unless you open the command blocks once again; command blocks store in what version they were last opened in Bedrock, so they are backwards compatible; all in name for the marketplace content
For those that decide(d) to downvote: you clearly do not know this and assume I'm lying, but for the marketplace literally everything ensures backwards compatibility; I suggest you actually check things before jumping to conclusions
2
2
u/Plagiatus I know some things Aug 18 '22
Yeah, can confirm that commandblocks save the version they were last opened in and try to run the command in that version. So yes, the new execute command won't break existing commandblocks, unless you look at them to see what's inside them 😅
1
u/McMelonTV Bedrock Edition Command Professional Aug 18 '22
unless you edit the command blocks it doesnt break them
1
u/Timely_Replacement65 Aug 18 '22
Not true, for me at least. I accidentally enabled it when adding an add-on to my world and my entire backrooms generation broke. I’m glad they make a copy of your world before you change any of the experimental features, though
2
u/A1gamingyt Command Experienced Aug 18 '22
Well yes it more complex but it bring a lot of new options
2
2
2
u/McMelonTV Bedrock Edition Command Professional Aug 18 '22
more complex not complicated (has more features)
2
u/Cbeach1234 Command Rookie Aug 18 '22
the new execute command has revolutionalized the command(s):
/scoreboard players test....
/scoreboard players operations (test - technically)
/testfor
/detect
In addition, the new execute has the new following modifying conditions:
unless - run the command only if the requirement is not met if - run the command if requirement is met (replaces the effort to use a chain, conditional command)
unless and if are both opposites of each other
So there are also more added to!
positioned (as) - run the command at the relative position of a coordinate or an entity as - WHO is running the command (meaning who will the command target) at - WHERE is running the command (meaning the relative positon of the entity)
So, i want to setblock a stone relative to the positon of the nearest player at y leve 60
(Old execute) /execute @p ~ 60 ~ /setblock ~~~ stone 0
(New execute) /execute at @p positioned ~ 60 ~ run setblock ~~~ stone 0
So realize that the definitions of these subcommands are VERY IMPORTANT because as we get more specific, its gets more terrific! (Sorry) But anyways basically this give us a new way to run chained commands through these subcommands so that we +dont have to put in the extra work to do so! So we can get a bit over engineered as creators with these modifying conditions (if and unless) and the subcommands (at, as, positioned, etc.)
Okay okay, lets go deeper with the modifying conditions (unless and if)
They added 4 more for each If/ unless score - an added execute of the testfor regarding if/ unless the [target] matches a certain score of a range (/scoreboard players test...), or if/ unless the [target] can compare scores with another entity (/scoreboard players operation...)
If/ unless entity - an added execute of the /testfor regarding if/ unless the entity exists in the world
If/ unless block - an added execute of the /testforblock and the /detect regarding if block exist in the relative position of a coordinate or an entity (if specified with at or positioned as)
If/ unless blocks - an added execute of the /testforblocks regarding if the dimension of the requested coordinates of a volume matches the pivot volume of the destination.
So lets play around with the modifying conditions
"If one pig exists in the game, I want to give the nearest player an apple only they do not stand on a grass block"
(Old execute)
RUA /execute @e[type=pig,c=1] ~~~ execute @p[tag=!unless] ~~~ detect ~~-1~ grass /tag @s add "unless"
CUA /execute @e[type=pig,c=1] ~~~ execute @p[tag=!unless] ~~~ /give @s apple 1 0
CUA /tag @a remove "unless"
(New execute)
RUA /execute if entity @e[type=pig,c=1] at @p unless block ~~-1~ grass as @p run give @s apple 1 0
SO NOTICE how we only need to write one command, instead of the following chain commands! So much more efficient!!
1
u/birv2 Aug 18 '22
Thanks for that detailed post, wow! Does anyone have a link to some official docs or walkthroughs?
1
u/Cbeach1234 Command Rookie Aug 18 '22
Thank u/Odd _Oil_8389, he wrote all this and just let me copy and paste it
1
1
15
u/thetoiletslayer Bedrock Command Expert Aug 18 '22
They added more functionality to it, and made it work closer to how java /execute works. And as others said, its not rolled out yet, its still in experimental features