gamerule sendcommandfeedback false
scoreboard objectives add edit dummy EDIT
scoreboard objectives add br dummy BRUSH
scoreboard objectives add paint dummy PAINT
scoreboard objectives add cc dummy CONCRETE
scoreboard objectives add st dummy STONE
scoreboard objectives add sn dummy SAND
scoreboard objectives add wl dummy WOOL
execute @e[type=item,name=barrier] ~ ~ ~ scoreboard players set @p[r=3] edit 0
execute @e[type=item,name=barrier] ~ ~ ~ scoreboard players set @p[r=3] br 0
execute @e[type=item,name=barrier] ~ ~ ~ scoreboard players set @p[r=3] paint 0
execute @e[type=item,name=barrier] ~ ~ ~ execute @p[scores={cc=!0}] ~ ~ ~ function give2
execute @e[type=item,name=barrier] ~ ~ ~ execute @p[scores={st=!0}] ~ ~ ~ function give2
execute @e[type=item,name=barrier] ~ ~ ~ execute @p[scores={sn=!0}] ~ ~ ~ function give2
execute @e[type=item,name=barrier] ~ ~ ~ execute @p[scores={wl=!0}] ~ ~ ~ function give2
execute @e[type=item,name=barrier] ~ ~ ~ scoreboard players reset @p[r=3] cc
execute @e[type=item,name=barrier] ~ ~ ~ scoreboard players reset @p[r=3] st
execute @e[type=item,name=barrier] ~ ~ ~ scoreboard players reset @p[r=3] sn
execute @e[type=item,name=barrier] ~ ~ ~ scoreboard players reset @p[r=3] wl
execute @e[type=item,name=barrier] ~ ~ ~ execute @p[r=5] ~ ~ ~ tellraw @s { "rawtext" : [ { "text" : "Stopped all Commands" } ] }
execute @e[type=item,name=barrier] ~ ~ ~ give @p[r=3] barrier
execute @e[type=item,name=barrier] ~ ~ ~ kill @e[name=tgrass,r=20]
execute @e[type=item,name=barrier] ~ ~ ~ kill @e[name=asnow,r=20]
execute @e[type=item,name=barrier] ~ ~ ~ kill @s
execute @e[type=item,name="light block"] ~ ~ ~ scoreboard players set @p[r=3] edit 22 
execute @e[type=item,name="light block"] ~ ~ ~ execute @p[r=5] ~ ~ ~ tellraw @s { "rawtext" : [ { "text" : "Light Activated" } ] }
execute @e[type=item,name="light block"] ~ ~ ~ give @p[r=3] light_block 1 15
execute @e[type=item,name="light block"] ~ ~ ~ kill @s
execute @e[type=item,name="oak leaves"] ~ ~ ~ scoreboard players set @p[r=3] edit 3
execute @e[type=item,name="oak leaves"] ~ ~ ~ execute @p[r=5] ~ ~ ~ tellraw @s { "rawtext" : [ { "text" : "Removing Leaves" } ] }
execute @e[type=item,name="oak leaves"] ~ ~ ~ give @p[r=3] leaves
execute @e[type=item,name="oak leaves"] ~ ~ ~ kill @s
execute @e[type=item,name="stone axe"] ~ ~ ~ scoreboard players set @p[r=3] edit 4
execute @e[type=item,name="stone axe"] ~ ~ ~ execute @p[r=5] ~ ~ ~ tellraw @s { "rawtext" : [ { "text" : "Removing Trees" } ] }
execute @e[type=item,name="stone axe"] ~ ~ ~ give @p[r=3] stone_axe
execute @e[type=item,name="stone axe"] ~ ~ ~ kill @s
execute @e[type=item,name="grass"] ~ ~ ~ scoreboard players set @p[r=3] edit 1
execute @e[type=item,name="grass"] ~ ~ ~ execute @p[r=5] ~ ~ ~ tellraw @s { "rawtext" : [ { "text" : "Removing Grass" } ] }
execute @e[type=item,name="grass"] ~ ~ ~ give @p[r=3] tallgrass 1 1
execute @e[type=item,name="grass"] ~ ~ ~ kill @s
execute @e[type=item,name="bucket"] ~ ~ ~ scoreboard players set @p[r=3] edit 23
execute @e[type=item,name="bucket"] ~ ~ ~ execute @p[r=5] ~ ~ ~ tellraw @s { "rawtext" : [ { "text" : "Removing Water And Lava" } ] }
execute @e[type=item,name="bucket"] ~ ~ ~ give @p[r=3] bucket
execute @e[type=item,name="bucket"] ~ ~ ~ kill @s
execute @e[type=item,name="stick"] ~ ~ ~ scoreboard players add @p[r=3] br 1
execute @e[type=item,name="stick"] ~ ~ ~ execute @p[r=5] ~ ~ ~ tellraw @s { "rawtext" : [ { "text" : "Small Dirt Brush Activated" } ] }
execute @e[type=item,name="stick"] ~ ~ ~ give @p[r=3] stick
execute @e[type=item,name="stick"] ~ ~ ~ kill @s
execute @e[type=item,name="wooden shovel"] ~ ~ ~ scoreboard players set @p[r=3] edit 6
execute @e[type=item,name="wooden shovel"] ~ ~ ~ execute @p[r=5] ~ ~ ~ tellraw @s { "rawtext" : [ { "text" : "3x3 Flatten Activated" } ] }
execute @e[type=item,name="wooden shovel"] ~ ~ ~ give @p[r=3] wooden_shovel 
execute @e[type=item,name="wooden shovel"] ~ ~ ~ kill @s
execute @e[type=item,name="top snow"] ~ ~ ~ scoreboard players set @p[r=3] edit 5
execute @e[type=item,name="top snow"] ~ ~ ~ execute @p[r=5] ~ ~ ~ tellraw @s { "rawtext" : [ { "text" : "Remove Snow Activated" } ] }
execute @e[type=item,name="top snow"] ~ ~ ~ give @p[r=3] snow_layer
execute @e[type=item,name="top snow"] ~ ~ ~ kill @s
execute @e[type=item,name="snowball"] ~ ~ ~ execute @p[r=3] ~ ~ ~ function add_snow
execute @e[type=item,name="snowball"] ~ ~ ~ execute @p[r=5] ~ ~ ~ tellraw @s { "rawtext" : [ { "text" : "Add Snow Activated" } ] }
execute @e[type=item,name="snowball"] ~ ~ ~ give @p[r=3] snowball
execute @e[type=item,name="snowball"] ~ ~ ~ kill @s
execute @e[type=item,name="trident"] ~ ~ ~ execute @p ~ ~ ~ function menu_1
execute @e[type=item,name="trident"] ~ ~ ~ scoreboard players set @p[r=3] paint 1
execute @e[type=item,name="trident"] ~ ~ ~ execute @p[r=5] ~ ~ ~ tellraw @s { "rawtext" : [ { "text" : "§ePaint Activated- §rSelect Material" } ] }
execute @e[type=item,name="trident"] ~ ~ ~ give @p[r=3] trident
execute @e[type=item,name="trident"] ~ ~ ~ kill @s
execute @e[type=item,name="snow"] ~ ~ ~ scoreboard players add @p[r=3] wl 17
execute @e[type=item,name="snow"] ~ ~ ~ give @p[r=3] snow 1 0
execute @e[type=item,name="snow"] ~ ~ ~ execute @p[r=3] ~ ~ ~ function paint
execute @e[type=item,name="snow"] ~ ~ ~ kill @s
execute @e[type=item,name="white concrete powder"] ~ ~ ~ execute @p[r=3] ~ ~ ~ function c_menu
execute @e[type=item,name="grass block"] ~ ~ ~ execute @p[r=3] ~ ~ ~ function d_menu
execute @e[type=item,name="stone"] ~ ~ ~ execute @p[r=3] ~ ~ ~ function st_menu
execute @e[type=item,name="sand"] ~ ~ ~ execute @p[r=3] ~ ~ ~ function s_menu
execute @e[type=item,name="white wool"] ~ ~ ~ execute @p[r=3] ~ ~ ~ function w_menu
execute @s[scores={edit=1}] ~ ~ ~ fill ^ ^3 ^1 ^ ^3 ^30 air 0 replace tallgrass
execute @s[scores={edit=1}] ~ ~ ~ fill ^ ^3 ^1 ^ ^3 ^30 air 0 replace seagrass
execute @s[scores={edit=1}] ~ ~ ~ fill ^ ^3 ^1 ^ ^3 ^30 air 0 replace double_plant
execute @s[scores={edit=2}] ~ ~ ~ fill ^ ^3 ^1 ^ ^3 ^30 air 0 replace water
execute @s[scores={edit=2}] ~ ~ ~ fill ^ ^3 ^1 ^ ^3 ^30 air 0 replace seagrass
execute @s[scores={edit=3}] ~ ~ ~ fill ^ ^3 ^1 ^ ^3 ^30 air 0 replace leaves
execute @s[scores={edit=3}] ~ ~ ~ fill ^ ^3 ^1 ^ ^3 ^30 air 0 replace leaves2
execute @s[scores={edit=4}] ~ ~ ~ fill ^ ^3 ^1 ^ ^3 ^30 air 0 replace log
execute @s[scores={edit=4}] ~ ~ ~ fill ^ ^3 ^1 ^ ^3 ^30 air 0 replace log2
execute @s[scores={edit=4}] ~ ~ ~ fill ^ ^3 ^1 ^ ^3 ^30 air 0 replace leaves
execute @s[scores={edit=4}] ~ ~ ~ fill ^ ^3 ^1 ^ ^3 ^30 air 0 replace leaves2
execute @s[scores={edit=5}] ~ ~ ~ fill ^ ^3 ^1 ^ ^3 ^30 air 0 replace snow
execute @s[scores={edit=5}] ~ ~ ~ fill ^ ^3 ^1 ^ ^3 ^30 air 0 replace snow_layer
execute @s[scores={edit=6}] ^ ^2.5 ^10 fill ~3 ~ ~3 ~-3 ~3 ~-3 air 0
execute @s[scores={edit=7}] ^ ^2.5 ^10 fill ~3 ~ ~3 ~-3 ~3 ~-3 water 0 keep
execute @s[scores={edit=8}] ~ ~ ~ fill ^ ^3 ^1 ^ ^3 ^30 grass 0 replace stone
execute @s[scores={edit=9}] ~ ~ ~ fill ^ ^3 ^1 ^ ^3 ^30 stone 0 replace grass
execute @s[scores={edit=10}] ~ ~ ~ fill ^ ^3 ^1 ^ ^3 ^30 sand 0 replace grass
execute @s[scores={edit=11}] ~ ~ ~ fill ^ ^3 ^1 ^ ^3 ^30 sand 0 replace stone
execute @s[scores={edit=11}] ~ ~ ~ kill @e[type=item,name=sand]
execute @s[scores={edit=12}] ~ ~ ~ fill ^ ^3 ^1 ^ ^3 ^30 stone 0 replace sand
execute @s[scores={edit=13}] ~ ~ ~ fill ^ ^3 ^1 ^ ^3 ^30 grass 0 replace sand
execute @s[scores={edit=14}] ~ ~ ~ fill ^12 ^11 ^-12 ^-12 ^-11 ^12 air 0 replace tallgrass
execute @s[scores={br=1}] ~ ~ ~ function br1
execute @s[scores={br=2}] ~ ~ ~ function br2
execute @s[scores={br=3}] ~ ~ ~ function br3
execute @s[scores={br=4}] ~ ~ ~ function br4
execute @s[scores={br=5}] ~ ~ ~ function br5
execute @s[scores={br=6}] ~ ~ ~ function br6
execute @s[scores={br=7}] ~ ~ ~ function brush_dirt_large
execute @s[scores={br=8}] ~ ~ ~ function stop
execute @s[scores={edit=16}] ~ ~ ~ function brush_sand_small
execute @s[scores={edit=16}] ~ ~ ~ kill @e[type=item,name=sand]
execute @s[scores={edit=17}] ~ ~ ~ function brush_stone
execute @s[scores={edit=18}] ~ ~ ~ fill ~ 0 ~ ~ ~-1 ~ stone 0 keep
execute @s[scores={edit=19}] ~ ~ ~ fill ^ ^3 ^1 ^ ^3 ^30 air 0 replace lava
execute @s[scores={edit=20}] ~ ~ ~ function brush_dirt_large
execute @s[scores={edit=21}] ~ ~ ~ fill ^ ^3 ^1 ^ ^3 ^30 sand 0 replace dirt
execute @s[scores={edit=21}] ~ ~ ~ kill @e[type=item,name=sand]
execute @s[scores={edit=22}] ^ ^2.5 ^10 fill ~3 ~ ~3 ~-3 ~3 ~-3 light_block 15 keep
execute @s[scores={edit=23}] ~ ~ ~ fill ^ ^3 ^1 ^ ^3 ^30 air 0 replace water
execute @s[scores={edit=23}] ~ ~ ~ fill ^ ^3 ^1 ^ ^3 ^30 air 0 replace seagrass
execute @s[scores={edit=23}] ~ ~ ~ fill ^ ^3 ^1 ^ ^3 ^30 air 0 replace lava
execute @s[r=20] ~ ~ ~ tp @e[name=tgrass] ^ ^ ^10
execute @e[name="tgrass",c=1,r=15] ~ ~ ~ detect ~~~ grass 0 fill ^2 ^1 ^-2 ^-2 ^-1 ^2 tallgrass 1 replace air
execute @s[r=20] ~ ~ ~ tp @e[name=asnow] ^ ^ ^10
execute @e[name="asnow",c=1,r=15] ~ ~ ~ detect ~~~ grass 0 fill ^2 ^1 ^-2 ^-2 ^-1 ^2 snow_layer 0 replace air
execute @s[scores={edit=24}] ~ ~ ~ function br1
execute @s[scores={edit=25}] ~ ~ ~ function br2
execute @s[scores={edit=26}] ~ ~ ~ function br3
execute @s[scores={edit=27}] ~ ~ ~ function br4
execute @s[scores={edit=28}] ~ ~ ~ function br5
execute @s[scores={edit=29}] ~ ~ ~ function br6
execute @s[scores={edit=30}] ~ ~ ~ function br_wool
execute @s[scores={edit=31}] ~ ~ ~ fill ^ ^3 ^1 ^ ^3 ^30 stone 0 replace dirt
execute @s[scores={edit=32}] ~ ~ ~ fill ^ ^3 ^1 ^ ^3 ^30 grass 0 replace dirt
execute @s[scores={edit=33}] ~ ~ ~ function paint
execute @s[scores={edit=34}] ~ ~ ~ fill ^ ^3 ^1 ^ ^3 ^30 snow 0 replace dirt
execute @s[scores={edit=35}] ~ ~ ~ fill ^ ^3 ^1 ^ ^3 ^30 snow 0 replace grass
execute @s[scores={edit=36}] ~ ~ ~ fill ^ ^3 ^1 ^ ^3 ^30 snow 0 replace stone
execute @s[scores={edit=37}] ~ ~ ~ fill ^ ^3 ^1 ^ ^3 ^30 snow 0 replace sand
execute @s[scores={edit=38}] ~ ~ ~ function w4_brush
execute @s[scores={edit=39}] ~ ~ ~ function w5_brush
execute @s[scores={edit=40}] ~ ~ ~ function w6_brush
execute @s[scores={edit=41}] ~ ~ ~ fill ^ ^3 ^1 ^ ^3 ^30 dirt 0 replace snow
execute @s[scores={edit=42}] ~ ~ ~ fill ^ ^3 ^1 ^ ^3 ^30 grass 0 replace snow
execute @s[scores={edit=43}] ~ ~ ~ fill ^ ^3 ^1 ^ ^3 ^30 stone 0 replace snow
execute @s[scores={edit=44}] ~ ~ ~ fill ^ ^3 ^1 ^ ^3 ^30 sand 0 replace snow
