Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //adds the UpdateLastExecution:0b and TrackOutput nbt tag to commandblocks to make a loop happen, by tintin10 aka makkie_master aka Quinten Cabo has to be run in cmd combiner pro
- //Paste this in to https://mrgarretto.com/cmdcombinerpro/ and hit the generate button
- //area
- $x = 5
- $y = 2
- $z = 5
- /kill @e[tag=lag_prevention]
- /kill @e[tag=update_ex]
- /setblock ~19 ~-3 ~ minecraft:chain_command_block facing=south replace
- /fill ~19 ~-3 ~1 ~4 ~-3 ~1 minecraft:chain_command_block facing=west replace
- /setblock ~3 ~-3 ~1 minecraft:chain_command_block facing=north replace
- /scoreboard players tag @a[r=20] add givetrigger
- /scoreboard players tag @a[r=20,tag=givetrigger] remove givetrigger {Inventory:[{tag:{display:{Lore:["sq"]}}}]}
- /give @a[tag=givetrigger] minecraft:armor_stand 1 0 {Invisible:1,display:{Lore:["Made by tintin10 aka makkie_master aka Quinten Cabo","sq"],Name:"Place me down to update a $x by $y by $z square"},EntityTag:{Tags:["update_ex"]}}
- /scoreboard players tag @a[tag=givetrigger] remove givetrigger
- //lag prevention patch
- /summon area_effect_cloud ~2 ~-3 ~ {Tags:["lag_prevention"],Particle:mobSpell,Duration:100000000}
- /setblock ~2 ~-3 ~1 minecraft:repeating_command_block facing=up replace {TrackOutput:0b,auto:1b,Command:/blockdata ~ ~ ~-1 {auto:0b}}
- /setblock ~2 ~-2 ~1 minecraft:chain_command_block facing=up replace {TrackOutput:0b,auto:1b,Command:/execute @e[tag=update_ex] ~ ~ ~ /execute @e[tag=lag_prevention] ~ ~ ~ /blockdata ~ ~ ~ {auto:1b}}
- /setblock ~2 ~-1 ~1 minecraft:chain_command_block facing=up replace {TrackOutput:0b,auto:1b,Command:/blockdata ~ ~ ~ {UpdateLastExecution:1b}}
- /scoreboard objectives add x dummy
- /scoreboard objectives add y dummy
- /scoreboard objectives add z dummy
- repeat main{
- /blockdata ~ ~ ~ {TrackOutput:0b}
- /scoreboard players add @e[tag=update_ex] x 0
- /scoreboard players add @e[tag=update_ex] y 0
- /scoreboard players add @e[tag=update_ex] z 0
- /execute @e[tag=update_ex] ~ ~ ~ /blockdata ~ ~ ~ {UpdateLastExecution:0b,TrackOutput:0b}
- /execute @e[tag=update_ex] ~ ~ ~ /particle angryVillager ~ ~ ~ 1 1 1 1
- /tp @e[tag=update_ex,score_x=$x] ~1 ~ ~
- /scoreboard players add @e[tag=update_ex] x 1
- /tp @e[tag=update_ex,score_x_min=$x] ~-$x ~ ~1
- /scoreboard players add @e[tag=update_ex,score_x_min=$x] z 1
- /scoreboard players set @e[tag=update_ex,score_x_min=$x] x 0
- /tp @e[tag=update_ex,score_z_min=$z] ~ ~1 ~-$z
- /scoreboard players add @e[tag=update_ex,score_z_min=$z] y 1
- /scoreboard players set @e[tag=update_ex,score_z_min=$z] z 0
- /execute @e[tag=update_ex,score_y_min=$y] ~ ~ ~ /tellraw @a ["",{"text":"$x by $y by $z box updated!","color":"dark_green"}]
- /execute @e[tag=update_ex,score_y_min=$y] ~ ~ ~ /playsound minecraft:block.anvil.use master @a ~ ~ ~ 1000000 2
- /kill @e[tag=update_ex,score_y_min=$y]
- }
- /summon falling_block ~ ~10 ~ {Block:command_block,Data:1,Time:1,DropItem:0}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement