I've been trying to get a command block working to change players to adventure mode when within a radius. And back to survival when outside the radius. I've managed to get it working. But the weird thing is it has weird border lines that for some reason I can't seem to define. Below is a screenshot where I was trying to figure out where the borders were. I'm using two command blocks, both repeating and always active. The command format I'm using is,....
/gamemode adventure @a[x=100,y=64,z=-100,dx=50,dy=20,dz=50]
and
/execute as @a[gamemode=adventure] unless entity @s[x=100,y=64,z=-100,dx=50,dy=20,dz=50] run gamemode survival @s
Just curious. And don't worry about it if you're not sure. But how would you translate this to 1.12.2?. I've been working on a mod pack for a year in which I wanted to use recurrent complex to make randomly generated dungeons that are tamper proof using command blocks. So the player is forced to solve the puzzles instead of just cheating to get through it.
But every attempt I've tried failed. It always ends up in the command block constantly spamming the /gamemode command. And completely disregards the radius modifier. I've managed to get it working for 1.16.4. But I've poured over countless wikis, forum posts and youtube videos trying to figure this out. But 1.12.2 is kicking my butt.
NICE!!. After some research I somewhat got it to work for 1.12.2. But I'm still having some technical issues. For some reason after a while the dang command blocks stop working the way they're supposed to. Even though they worked perfectly fine when I first set them up. But after a few tests it like they stop responding. But I'll figure out the issue and resolve it somehow.
I've been trying to get a command block working to change players to adventure mode when within a radius. And back to survival when outside the radius. I've managed to get it working. But the weird thing is it has weird border lines that for some reason I can't seem to define. Below is a screenshot where I was trying to figure out where the borders were. I'm using two command blocks, both repeating and always active. The command format I'm using is,....
/gamemode adventure @p[gamemode=!adventure,distance=9..10]
And the other command block has this,..
/gamemode survival @p[gamemode=!survival,distance=10..11]
What can I add to this command to define the borders?.
To define a region, follow this:
https://gaming.stackexchange.com/questions/284727/how-to-change-a-minecraft-players-gamemode-when-they-are-in-a-specific-area
With the commands, try /execute
Just curious. And don't worry about it if you're not sure. But how would you translate this to 1.12.2?. I've been working on a mod pack for a year in which I wanted to use recurrent complex to make randomly generated dungeons that are tamper proof using command blocks. So the player is forced to solve the puzzles instead of just cheating to get through it.
But every attempt I've tried failed. It always ends up in the command block constantly spamming the /gamemode command. And completely disregards the radius modifier. I've managed to get it working for 1.16.4. But I've poured over countless wikis, forum posts and youtube videos trying to figure this out. But 1.12.2 is kicking my butt.
In 1.12.2 there is the /testfor command for this - but I have no Idea how to use this in this case
NICE!!. After some research I somewhat got it to work for 1.12.2. But I'm still having some technical issues. For some reason after a while the dang command blocks stop working the way they're supposed to. Even though they worked perfectly fine when I first set them up. But after a few tests it like they stop responding. But I'll figure out the issue and resolve it somehow.