#how change blocks around you to different blocks using fill

1 messages · Page 1 of 1 (latest)

pine torrent
#

How do I use execute at everyone on the server to fill around them to replace a block into a different block without errors

jagged jacinth
#

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)

pine torrent
jagged jacinth
#

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

pine torrent
jagged jacinth
#

I haven't talked about any function in my post

pine torrent
#

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]

pine torrent
jagged jacinth
#

Try your command in the chat first, to test if it works ', directions could be tricky to get on the first try

pine torrent
#

I did it worked

jagged jacinth
#

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

pine torrent
#

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

pine torrent
#

lololl it wont work with direction is there something new done to functions why wont directions work

#

does it still use the old one