Hi, I am attempting to reset a minigame map using 'modifyblock' in a cuboid to replace certain blocks. However, only about half of the arena gets cleared. I am wondering if there is a size limitation for that command. My cuboid is about 1.4M blocks. The specific command looks like: - modifyblock <cuboid[lt_arena].blocks[*wool]> block_material:air
#(chaps79) modifyblock command to reset minigame arena
1 messages · Page 1 of 1 (latest)
(chaps79) modifyblock command to reset minigame arena
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
I experimented and shrunk the cuboid to 600k blocks, and the command works as expected. That leads me to believe there is a size limit. I'm hopeful one of you experts knows the truth data.
there isnt a size limit, it just cant change blocks in chunks that arent loaded
if its too big so that chunks arent loaded when running the command, you need to manually load them
ok. i'll check that rq.
!c chunkload
Group
world
Syntax
chunkload ({add}/remove/removeall) [<chunk>|...] (duration:<value>)
Short Description
Keeps a chunk actively loaded and allowing activity.
Description
Forces a chunk to load and stay loaded in the world for the duration specified or until removed.
This will not persist over server restarts.
If no duration is specified it defaults to 0 (forever).
While a chunk is loaded all normal activity such as crop growth and npc activity continues,
other than activity that requires a nearby player.
it didnt' work. i'm standing on top of the blocks that should be removed by the command, and nothing happens when i run the command.
the border between where blocks are replaced and blocks aren't replaced is in the middle of a chunk rather than a chunk edge
you might then just need to break it into bits then
millions of blocks is a lot, so makes sense if things are breaking at that range
yeah i can try that. basically, split the cuboid into smaller cuboids and run the command in each cuboid
yes, that worked. thanks. i would like to leave this post open in hopes that one of the devs can tell me what was going on, if that's ok.
# Settings for tags like cuboid.blocks, location.find.blocks, ...
Block tags:
# How many blocks can be read, max, before stopping the tag in place
Max blocks: 1000000
Denizen has a config setting for that, to stop using tags like these on too many blocks and wrecking the server
You could increase it a little I guess, but there's probably a better solution here than to check 1.4 million blocks every single time - is it a preset map you could just paste in? maybe track the locations that get changed using events?
Thanks for the advice. I will see which method works best. I was under the impression that pasting a 1.4M block schematic would cause a lag spike, so I didn’t bother to test that method.
I've got the script written to track locations that get changed, and then modify the changed blocks to air after the minigame is finished. I have to run to work irl now. It will be a day before I can fire up the testing server and get back to you with the results.
Thanks Aya, tracking the changed locations and modifying them to air worked great. I'm almost ready to release my lasertag minigame! (which was inspired by your Lightning Blade)