#how change blocks around you to different blocks using fill
1 messages · Page 1 of 1 (latest)
I already answered in command general.
/execute at @a positioned ~~~ run fill ~10 ~-10 ~10 ~-10 ~10 ~-10 podzol replace grass
Be careful because the relative coordinate are including a huge amount of blocks, I don't recommand it if you plan to add this command relative to every players as it will create lag
You, of course, need to place this into a repeating command block always active, and put this command block in a tickingarea if you want it to run everywhere in your world( and set the /gamerule commandblockoutput false)
Sorry I didnt see but what do you mean command block function wont work everywhere?
Command blocks have a limited range around the player. Chunks need to be loaded in order for the command block to work. It's based on the simulation distance around each players. If you want your command block to be constantly loaded, you need to create a tickingarea and place your command block into the tickingarea created
I know this but I asked about function
I haven't talked about any function in my post
This isn't working
execute at @a positioned ~~~ run fill ~-5~-5~-5 ~5~5~5 spruce_trapdoor ["direction"=0,"upside_down_bit"=false,"open_bit"=true] replace spruce_trapdoor ["direction"=0,"upside_down_bit"=false,"open_bit"=false]
How do I make this work in a function only works in command block
Try your command in the chat first, to test if it works ', directions could be tricky to get on the first try
I did it worked
In a function it's the same . Write your command into a mcfuntion file and add a tick.json file
Look at the wiki they explain really well the ticked functions
I did and its running every tick If i put it to say Hi it works every tick but I now put the command in there and it isnt executing