#Why doesn’t “in” sub command work in /execute
1 messages · Page 1 of 1 (latest)
Bro use bedrock to check dimension
Right now I have two commands:
/execute in overworld as @a[m=survival] run gamemode adventure @s
/execute in the_end as @a[m=adventure] run gamemode survival @s but neither of them work as intended
”in ..” used in tp cmd
Do you even know what I’m trying to do
I tried making a function that runs in tick.json but it just cycles between survival and adventure for everyone who’s not in creative
/execute as @a[m=s] at @s if block ~ -64 ~ bedrock run gamemode a @s
/execute as @a[m=a] at @s unless block ~ -64 ~ bedrock unless block ~ 0~ bedrock run gamemode s @s
What is that even supposed to do
It’ll sense the bedrock in either dimension and set everyone
But
It just doesn’t make sense
?
How is this supposed to work????
Am I just supposed to fill absolutely everywhere on y -64 with bedrock???
Checking bedrock below you
Just tell me. Does the in subcommand work.
Or is it broken.
I want it to universally work in these dimensions no matter what
This cmd
execute a player who is in survival and there is a bedrock Below where he standing aka this checking his x,z value will be ~ ~ and y value direct as -64 [in overworld y=-64 have bedrock layer] then his mode changes to adventure
You think a skygen is going to have bedrock?
This is opposite. In end there is no bedrock found so if there is no bedrock in y level -64 and 0 [in nether y=0 bedrock layer present] then the gamemode will change to a->s
Then use any block that have a fixes position in your world!
You didn't mention it's a sky block !
I thought it's a survival world
Is there is any hub in those dimension?
Well I can use the obsidian from the end spawn and the ONE bedrock at 0 64 0 in the overworld
I’m just so annoyed that “in” doesn’t work
No need for each dimension use each cmd block
This is going in a .mcfunction that runs every tick
/gamemode a @a[rm=0.1,m=s]
Also what about EXISTING players in my world
/gamemode s @a[rm=0.1,m=a]
What is rm again
Place this in overworld
Mm it's a radius but outside
Used in tp
Yep just realized that
If you want to tp an entity to any other dimensions use ”in”
Yyyyyep
Also it convert the nether/overworld distance ratio
Now to fix my issue
I’ll just use /execute in end at 100 50 0 as @a[m=a,rm=0.1] run gamemode s @s
Foolproof
Right?
100 50 0 is end spawn
Hmm maybe it work. I don't test these
Right thanks for the heeelp!
The one poor dude in my world doing nothing because I have the world set to invite-only and they’re only there for testing purposes is an absolute G
/execute in does set the dimension for a command to run in, yes. The issue is that target selectors select across all dimensions.