execute as @a at @s if block ~ ~-1 ~ minecraft:purple_stained_glass if entity @e[type=minecraft:armor_stand,tag=glass,distance=..3] run tp @s ~ ~-1 ~
execute as @a at @s if block ~ ~-1 ~ minecraft:green_stained_glass if entity @e[type=minecraft:armor_stand,tag=glass,distance=..3] run tp @s ~ ~-1 ~
#Surrender
execute if block 102 65 151 minecraft:stone_button[powered=true] run scoreboard players add EnderEnterprises Stock_Values 1500
execute if block 156 65 186 minecraft:stone_button[powered=true] run scoreboard players add CreeperCorp Stock_Values 1500

#Prevent baby zombies
kill @e[type=minecraft:zombie,nbt={IsBaby:1b}]

#Spawnpoint
execute as @a at @s if score game settings matches 0 run spawnpoint @s 129 7 168

#Starting buttons
execute if block 126 86 168 minecraft:crimson_button[powered=true] run function mi:start
execute if block 126 86 167 minecraft:warped_button[powered=true] run function mi:start

execute if score game settings matches 0 run effect give @a resistance infinite 100 true
execute as @a[tag=loser] at @s if score game settings matches 0 if score win winmap matches 0 if block ~ ~-2 ~ magma_block run tp @s 130.00 49.00 -74.00
execute as @a[tag=loser] at @s if score game settings matches 0 if score win winmap matches 1 if block ~ ~-2 ~ magma_block run tp @s 129 30 417

execute if block 127 4 485 minecraft:oak_button[powered=true] run tag @a remove loser
execute if block 124 7 455 minecraft:oak_button[powered=true] run tag @a remove loser

#Teleporter particle
particle minecraft:totem_of_undying 133.7 86 167.9 0.4 .5 0.4 0 5 normal
particle minecraft:totem_of_undying 129 36 181 0.75 .5 0.4 0 5 normal
particle minecraft:totem_of_undying 129 36 155 0.75 .5 0.4 0 5 normal
particle minecraft:cherry_leaves 128 31 203 0.8 .5 0.4 0 3 normal

execute if block 132 8 -105 minecraft:oak_button[powered=true] run tp @a 130.00 86.00 168.00
execute if block 132 8 -105 minecraft:oak_button[powered=true] run gamemode adventure @a
fill 132 8 -105 132 8 -105 minecraft:oak_button

execute if block 132 7 455 minecraft:oak_button[powered=true] run tp @a 130.00 86.00 168.00
execute if block 132 7 455 minecraft:oak_button[powered=true] run gamemode adventure @a
fill 132 7 455 132 7 455 minecraft:oak_button[facing=south]


#Game difficulty
execute if score difficulty settings matches 1 run function mi:dif/dif1
execute if score difficulty settings matches 2 run function mi:dif/dif2
execute if score difficulty settings matches 3 run function mi:dif/dif3

execute as @a at @s if block ~ ~-1 ~ minecraft:chiseled_sandstone run tp 130.19 86.00 168.04
execute as @a at @s if block ~ ~-3 ~ minecraft:chiseled_sandstone run tp 130.19 86.00 168.04

execute as @a at @s if block ~ ~-2 ~ minecraft:crimson_planks run team join Enderman
execute as @a at @s if block ~ ~-2 ~ minecraft:crimson_planks run tp 130.0 90.20 168.3

execute as @a at @s if block ~ ~-2 ~ minecraft:warped_planks run team join Creeper
execute as @a at @s if block ~ ~-2 ~ minecraft:warped_planks run tp 130.0 90.20 168.3

execute if block 133 88 168 minecraft:bamboo_button[powered=true] run team leave @p
fill 133 88 168 133 88 168 minecraft:bamboo_button[facing=west]

execute if block 126 88 167 minecraft:cherry_button[powered=true] run tp @p 128.50 29.00 205.50 -1799.75 0.99
fill 126 88 167 126 88 167 minecraft:cherry_button[facing=east]


execute if block 108 64 169 air run fill 108 64 169 108 64 169 minecraft:anvil
execute if block 150 64 168 air run fill 150 64 168 150 64 168 minecraft:anvil

execute if block 103 72 173 minecraft:lever[powered=true] run function mi:endimes
execute if block 155 72 164 minecraft:lever[powered=true] run function mi:creepimes

#Buy Stock Values
execute if block 102 72 170 minecraft:stone_button[powered=true] if score gentle settings matches 1 if score CreeperCorp Stock_Values matches ..499 if score difficulty settings matches 1 run function mi:cbutton/cb1
execute if block 102 72 170 minecraft:stone_button[powered=true] if score gentle settings matches 1 if score CreeperCorp Stock_Values matches ..749 if score difficulty settings matches 2 run function mi:cbutton/cb1
execute if block 102 72 170 minecraft:stone_button[powered=true] if score gentle settings matches 1 if score CreeperCorp Stock_Values matches ..999 if score difficulty settings matches 3 run function mi:cbutton/cb1
execute if block 102 72 170 minecraft:stone_button[powered=true] if score gentle settings matches 0 run function mi:cbutton/cb1
execute if block 156 72 167 minecraft:stone_button[powered=true] if score gentle settings matches 1 if score EnderEnterprises Stock_Values matches ..499 if score difficulty settings matches 1 run function mi:ebutton/eb1
execute if block 156 72 167 minecraft:stone_button[powered=true] if score gentle settings matches 1 if score EnderEnterprises Stock_Values matches ..749 if score difficulty settings matches 2 run function mi:ebutton/eb1
execute if block 156 72 167 minecraft:stone_button[powered=true] if score gentle settings matches 1 if score EnderEnterprises Stock_Values matches ..999 if score difficulty settings matches 3 run function mi:ebutton/eb1
execute if block 156 72 167 minecraft:stone_button[powered=true] if score gentle settings matches 0 run function mi:ebutton/eb1



#Detect how much paper each player has
execute as @a store result score @s paper run clear @s paper 0

execute if block 103 72 173 air run fill 103 72 173 103 72 173 minecraft:lever replace air
execute if block 155 72 164 air run fill 155 72 164 155 72 164 minecraft:lever[facing=south] replace air


#Creeper slaves
execute at @e[type=armor_stand,tag=cs] as @p if block 102 65 192 minecraft:oak_button[powered=true] if score @s paper matches 80.. if score slave settings matches 1 if score CreeperCorp Stock_Values matches 50.. run function mi:slave/cs1
execute at @e[type=armor_stand,tag=cs] as @p if block 102 65 192 minecraft:oak_button[powered=true] if score @s paper matches 80.. if score slave settings matches 0 run function mi:slave/cs1

#Enderman slaves
execute at @e[type=armor_stand,tag=es] as @p if block 156 65 145 minecraft:oak_button[powered=true] if score @s paper matches 80.. if score slave settings matches 1 if score EnderEnterprises Stock_Values matches 50.. run function mi:slave/es1
execute at @e[type=armor_stand,tag=es] as @p if block 156 65 145 minecraft:oak_button[powered=true] if score @s paper matches 80.. if score slave settings matches 0 run function mi:slave/es1

execute as @e[type=zombie,tag=z1] at @s run tp @e[type=enderman,tag=e1] @s
execute as @e[type=zombie,tag=z2] at @s run tp @e[type=enderman,tag=e2] @s
execute as @e[type=zombie,tag=z3] at @s run tp @e[type=enderman,tag=e3] @s
execute as @e[type=zombie,tag=z4] at @s run tp @e[type=enderman,tag=e4] @s
execute as @e[type=zombie,tag=z5] at @s run tp @e[type=enderman,tag=e5] @s


#etatic
execute if block 152 64 194 minecraft:stone_button[powered=true] if score EnderEnterprises Stock_Values matches 175.. run function mi:etatic/cops
execute as @r[team=Creeper] at @s if block 153 64 194 minecraft:stone_button[powered=true] if score EnderEnterprises Stock_Values matches 100.. run function mi:etatic/clear
execute as @r[team=Creeper] at @s if block 154 64 194 minecraft:stone_button[powered=true] if score EnderEnterprises Stock_Values matches 150.. run function mi:etatic/sick
execute if block 155 64 194 minecraft:stone_button[powered=true] if score EnderEnterprises Stock_Values matches 300.. run function mi:etatic/cat2
execute if block 153 66 194 minecraft:oak_button[powered=true] if score EnderEnterprises Stock_Values matches 200.. run function mi:etatic/growth
execute if block 154 66 194 minecraft:oak_button[powered=true] if score EnderEnterprises Stock_Values matches 75.. run function mi:etatic/pipes
execute if block 155 66 194 minecraft:oak_button[powered=true] if score EnderEnterprises Stock_Values matches 50.. run function mi:etatic/light
execute if block 152 66 194 minecraft:oak_button[powered=true] if score EnderEnterprises Stock_Values matches 400.. run function mi:etatic/curfew


#ctatic
execute if block 106 64 143 minecraft:stone_button[powered=true] if score CreeperCorp Stock_Values matches 175.. run function mi:ctatic/cops
execute as @r[team=Enderman] at @s if block 105 64 143 minecraft:stone_button[powered=true] if score CreeperCorp Stock_Values matches 100.. run function mi:ctatic/clear
execute as @r[team=Enderman] at @s if block 104 64 143 minecraft:stone_button[powered=true] if score CreeperCorp Stock_Values matches 150.. run function mi:ctatic/sick
execute if block 103 64 143 minecraft:stone_button[powered=true] if score CreeperCorp Stock_Values matches 300.. run function mi:ctatic/cat2
execute if block 105 66 143 minecraft:oak_button[powered=true] if score CreeperCorp Stock_Values matches 200.. run function mi:ctatic/growth
execute if block 104 66 143 minecraft:oak_button[powered=true] if score CreeperCorp Stock_Values matches 75.. run function mi:ctatic/pipes
execute if block 103 66 143 minecraft:oak_button[powered=true] if score CreeperCorp Stock_Values matches 50.. run function mi:ctatic/light
execute if block 106 66 143 minecraft:oak_button[powered=true] if score CreeperCorp Stock_Values matches 400.. run function mi:ctatic/curfew


execute as @a at @s if block ~ ~-2 ~ minecraft:ancient_debris if score @s Walker matches ..0 run function mi:ctatic/cat1
execute as @a at @s if block ~ ~-1 ~ minecraft:grass_block if score @s Walker matches ..0 run function mi:ctatic/cat1
execute as @e[type=cat] at @s if block ~ ~-1 ~ minecraft:grass_block if score @s Walker matches ..0 run function mi:ctatic/cat1

execute as @a at @s if block ~ ~-1 ~ minecraft:podzol if score @s Walker matches ..0 run function mi:ctatic/cat1
execute as @a at @s if block ~ ~-2 ~ minecraft:netherite_block if score @s Walker matches ..0 run function mi:ctatic/cat1
execute as @e[type=cat] at @s if block ~ ~-1 ~ minecraft:podzol if score @s Walker matches ..0 run function mi:ctatic/cat1


execute as @e[tag=!Walker] at @s if block ~ ~-1 ~ grass_block run tag @s add CWalker
execute as @e[tag=!Walker] at @s if block ~ ~-1 ~ podzol run tag @s add EWalker


#egg #PODZOL
execute as @r at @s if score level settings matches 1 if block 96 65 151 minecraft:soul_torch if score ccoal torch matches ..1 run kill @e[tag=ccoal]
execute as @r at @s if score level settings matches 1 if block 96 65 151 minecraft:soul_torch if score ccoal torch matches ..1 run summon minecraft:villager 90 64 183 {VillagerData:{type:"plains",profession:"shepherd",level:99},Silent:1,Invulnerable:1,Tags:["ccoal"],Offers:{Recipes:[{maxUses:999999,rewardExp:0b,buy:{id:"minecraft:paper",Count:4},buyB:{id:"minecraft:coal",Count:3},sell:{id:"minecraft:zombie_spawn_egg",Count:1,tag:{EntityTag:{IsBaby:0,DrownedConversionTime:-1,InWaterTime:-1,CustomName:'[{"text":"Zombie ","color":"dark_green"},{"text":"1","color":"red"}]',PersistenceRequired:1b},display:{Name:'[{"text":"Zombie LVL 1","italic":false,"color":"dark_green","bold":false}]',Lore:['[{"text":"-","italic":false,"color":"gray"},{"text":" ","color":"dark_gray"},{"text":"Regular"}]']},CanPlaceOn:["minecraft:podzol"]}}},{maxUses:999999,rewardExp:0b,buy:{id:"minecraft:paper",Count:10},buyB:{id:"minecraft:coal",Count:6},sell:{id:"minecraft:zombie_spawn_egg",Count:1,tag:{EntityTag:{IsBaby:0,CustomName:'[{"text":"Zombie ","color":"dark_green"},{"text":"2","color":"red"}]',ArmorItems:[{id:"minecraft:leather_boots",Count:1},{id:"minecraft:leather_leggings",Count:1},{id:"minecraft:leather_chestplate",Count:1},{id:"minecraft:leather_helmet",Count:1}],ArmorDropChances:[0f,0f,0f,0f]},display:{Name:'[{"text":"Zombie LVL 2","italic":false,"bold":false,"color":"dark_green"}]',Lore:['[{"text":"+ ","italic":false,"color":"green"},{"text":"Leather Armor","color":"gray"}]']},CanPlaceOn:["minecraft:podzol"]}}}]}}
execute as @r at @s if score level settings matches 1 if block 96 65 151 minecraft:soul_torch if score ccoal torch matches ..1 run summon minecraft:villager 99 64 167 {VillagerData:{type:"plains",profession:"shepherd",level:99},Silent:1b,Invulnerable:1b,Tags:["ccoal"],Offers:{Recipes:[{maxUses:999999,rewardExp:0b,buy:{id:"minecraft:paper",Count:20},buyB:{id:"minecraft:coal",Count:15},sell:{id:"blaze_spawn_egg",Count:1,tag:{EntityTag:{CustomName:'[{"text":"Blaze ","color":"gold"},{"text":"1","color":"red"}]'},display:{Name:'[{"text":"Blaze LVL 1","italic":false,"color":"gold"}]',Lore:['[{"text":"- Regular","italic":false,"color":"gray"}]']},CanPlaceOn:["minecraft:podzol"]}}},{maxUses:999999,rewardExp:0b,buy:{id:"minecraft:paper",Count:7},buyB:{id:"minecraft:coal",Count:30},sell:{id:"blaze_spawn_egg",Count:1,tag:{EntityTag:{CustomName:'[{"text":"Blaze ","color":"gold"},{"text":"2","color":"red"}]',Health:10,Attributes:[{Name:"generic.max_health",Base:10f}]},display:{Name:'[{"text":"Blaze LVL 2","italic":false,"color":"gold"}]',Lore:['[{"text":"- ","italic":false,"color":"red"},{"text":"Less Health","color":"gray"}]']},CanPlaceOn:["minecraft:podzol"]}}}]}}
execute as @r at @s if score level settings matches 1 if block 98 65 151 minecraft:soul_torch if score ccoal torch matches ..2 run kill @e[tag=ccoal]
execute as @r at @s if score level settings matches 1 if block 98 65 151 minecraft:soul_torch if score ccoal torch matches ..2 run summon minecraft:villager 90 64 183 {VillagerData:{type:"plains",profession:"shepherd",level:99},Silent:1,Invulnerable:1,Tags:["ccoal"],Offers:{Recipes:[{maxUses:999999,rewardExp:0b,buy:{id:"minecraft:paper",Count:4},buyB:{id:"minecraft:coal",Count:3},sell:{id:"minecraft:zombie_spawn_egg",Count:1,tag:{EntityTag:{IsBaby:0,DrownedConversionTime:-1,InWaterTime:-1,CustomName:'[{"text":"Zombie ","color":"dark_green"},{"text":"1","color":"red"}]',PersistenceRequired:1b},display:{Name:'[{"text":"Zombie LVL 1","italic":false,"color":"dark_green","bold":false}]',Lore:['[{"text":"-","italic":false,"color":"gray"},{"text":" ","color":"dark_gray"},{"text":"Regular"}]']},CanPlaceOn:["minecraft:podzol"]}}},{maxUses:999999,rewardExp:0b,buy:{id:"minecraft:paper",Count:10},buyB:{id:"minecraft:coal",Count:6},sell:{id:"minecraft:zombie_spawn_egg",Count:1,tag:{EntityTag:{IsBaby:0,CustomName:'[{"text":"Zombie ","color":"dark_green"},{"text":"2","color":"red"}]',ArmorItems:[{id:"minecraft:leather_boots",Count:1},{id:"minecraft:leather_leggings",Count:1},{id:"minecraft:leather_chestplate",Count:1},{id:"minecraft:leather_helmet",Count:1}],ArmorDropChances:[0f,0f,0f,0f]},display:{Name:'[{"text":"Zombie LVL 2","italic":false,"bold":false,"color":"dark_green"}]',Lore:['[{"text":"+ ","italic":false,"color":"green"},{"text":"Leather Armor","color":"gray"}]']},CanPlaceOn:["minecraft:podzol"]}}},{maxUses:999999,rewardExp:0b,buy:{id:"minecraft:paper",Count:20},buyB:{id:"minecraft:coal",Count:12},sell:{id:"minecraft:zombie_spawn_egg",Count:1,tag:{EntityTag:{IsBaby:0,DrownedConversionTime:-1,InWaterTime:-1,CustomName:'[{"text":"Zombie ","color":"dark_green"},{"text":"3","color":"red"}]',PersistenceRequired:1b,HandItems:[{id:"minecraft:wooden_sword",Count:1}],ArmorItems:[{id:"minecraft:iron_boots",Count:1},{id:"minecraft:iron_leggings",Count:1},{id:"minecraft:iron_chestplate",Count:1},{id:"minecraft:iron_helmet",Count:1}],Attributes:[{Name:"generic.movement_speed",Base:0.2f},{Name:"generic.attack_damage",Base:5f}],HandDropChances:[0f],ArmorDropChances:[0f,0f,0f,0f]},display:{Name:'[{"text":"Zombie LVL 3","italic":false,"color":"dark_green","bold":false}]',Lore:['[{"text":"+ ","italic":false,"color":"green"},{"text":"Iron Armor","italic":false,"color":"gray"}]','[{"text":"+ ","italic":false,"color":"green"},{"text":"Wooden Sword","color":"gray"}]','[{"text":"+ ","italic":false,"color":"green"},{"text":"Strength","italic":false,"color":"gray"}]','[{"text":"- ","italic":false,"color":"dark_red"},{"text":"Slowness","color":"gray"}]']},CanPlaceOn:["minecraft:podzol"]}}}]}}
execute as @r at @s if score level settings matches 1 if block 98 65 151 minecraft:soul_torch if score ccoal torch matches ..2 run summon minecraft:villager 99 64 167 {  VillagerData: {    type: "plains",    profession: "shepherd",    level: 99  },  Silent: 1b,  Invulnerable: 1b,  Tags: ["ccoal"],  Offers: {    Recipes: [      {        maxUses: 999999,        rewardExp: 0b,        buy: { id: "minecraft:paper", Count: 20 },        buyB: { id: "minecraft:coal", Count: 15 },        sell: {          id: "blaze_spawn_egg",          Count: 1,          tag: {            EntityTag: {              CustomName: '[{"text":"Blaze ","color":"gold"},{"text":"1","color":"red"}]'            },            display: {              Name: '[{"text":"Blaze LVL 1","italic":false,"color":"gold"}]',              Lore: ['[{"text":"- Regular","italic":false,"color":"gray"}]']            },            CanPlaceOn: ["minecraft:podzol"]          }        }      },      {        maxUses: 999999,        rewardExp: 0b,        buy: { id: "minecraft:paper", Count: 7 },        buyB: { id: "minecraft:coal", Count: 30 },        sell: {          id: "blaze_spawn_egg",          Count: 1,          tag: {            EntityTag: {              CustomName: '[{"text":"Blaze ","color":"gold"},{"text":"2","color":"red"}]',              Health: 10,              Attributes: [{ Name: "generic.max_health", Base: 10f }]            },            display: {              Name: '[{"text":"Blaze LVL 2","italic":false,"color":"gold"}]',              Lore: ['[{"text":"- ","italic":false,"color":"red"},{"text":"Less Health","color":"gray"}]']            },            CanPlaceOn: ["minecraft:podzol"]          }        }      },      {        maxUses: 999999,        rewardExp: 0b,        buy: { id: "minecraft:paper", Count: 60 },        buyB: { id: "minecraft:coal", Count: 20 },        sell: {          id: "blaze_spawn_egg",          Count: 1,          tag: {            EntityTag: {              CustomName: '[{"text":"Blaze ","color":"gold"},{"text":"3","color":"red"}]',              Health: 40,              PersistenceRequired: 1b,              Attributes: [{ Name: "generic.max_health", Base: 40f }]            },            display: {              Name: '[{"text":"Blaze LVL 3","italic":false,"color":"gold"}]',              Lore: ['[{"text":"+ ","italic":false,"color":"green"},{"text":"More Health","color":"gray"}]']            },            CanPlaceOn: ["minecraft:podzol"]          }        }      }    ]  }}

execute as @r at @s if score level settings matches 1 if block 90 65 160 minecraft:soul_torch if score cgun torch matches ..1 run kill @e[tag=cgun]
execute as @r at @s if score level settings matches 1 if block 90 65 160 minecraft:soul_torch if score cgun torch matches ..1 run summon minecraft:villager 90 64 181 {  VillagerData: {    type: "plains",    profession: "shepherd",    level: 99  },  Invulnerable: 1b,  Silent: 1b,  Tags: ["cgun"],  Offers: {    Recipes: [      {        maxUses: 999999,        rewardExp: 0b,        buy: {          id: "minecraft:paper",          Count: 4b        },        buyB: {          id: "minecraft:gunpowder",          Count: 3b        },        sell: {          id: "minecraft:creeper_spawn_egg",          Count: 1b,          tag: {            EntityTag: {              CustomName: '{"text":"Creeper ","color":"green","extra":[{"text":"1","color":"red"}]}',              Health: 40,              PersistenceRequired: 1b,              Attributes: [                {                  Name: "generic.max_health",                  Base: 40.0f                }              ]            },            display: {              Name: '{"text":"Creeper LVL 1","italic":false,"color":"green"}',              Lore: ['{"text":"- Regular","italic":false,"color":"gray"}']            },            CanPlaceOn: ["minecraft:podzol"]          }        }      },      {        maxUses: 999999,        rewardExp: 0b,        buy: {          id: "minecraft:paper",          Count: 4b        },        buyB: {          id: "minecraft:gunpowder",          Count: 3b        },        sell: {          id: "minecraft:creeper_spawn_egg",          Count: 1b,          tag: {            EntityTag: {              Fuse: 20,              ExplosionRadius: 2,              CustomName: '[{"text":"Creeper ","color":"green"},{"text":"2","color":"red"}]',              Health: 40,              PersistenceRequired: 1b,              Attributes: [                {                  Name: "generic.max_health",                  Base: 40.0f                }              ]            },            display: {              Name: '[{"text":"Creeper LVL 2","italic":false,"color":"green"}]',              Lore: ['[{"text":"+ ","italic":false,"color":"green"},{"text":"Less Fuse","color":"gray"},{"text":"","color":"dark_purple"}]','[{"text":"- ","italic":false,"color":"red"},{"text":"Less ExplosionRadius","color":"gray"}]']            },            CanPlaceOn: ["minecraft:podzol"]          }        }      }    ]  }}
execute as @r at @s if score level settings matches 1 if block 90 65 160 minecraft:soul_torch if score cgun torch matches ..1 run summon minecraft:villager 90 64 167 {  VillagerData: {    type: "plains",    profession: "shepherd",    level: 99  },  Invulnerable: 1b,  Silent: 1,  Tags: ["cgun"],  Offers: {    Recipes: [      {        maxUses: 999999,        rewardExp: 0b,        buy: {          id: "paper",          Count: 25        },        buyB: {          id: "gunpowder",          Count: 20        },        sell: {          id: "minecraft:ghast_spawn_egg",          Count: 1,          tag: {            EntityTag: {              ExplosionPower: 2,              CustomName: '[{"text":"Ghast ","color":"gray"},{"text":"1","color":"gray"}]',              Health: 15,              PersistenceRequired: 1b,              Attributes: [                {                  Name: "generic.max_health",                  Base: 15f                }              ]            },            display: {              Name: '[{"text":"Ghast LVL 1","italic":false,"color":"white"}]',              Lore: ['[{"text":"+","italic":false,"color":"green"},{"text":" ExplosionPower","color":"gray"}]']            },            CanPlaceOn: ["minecraft:podzol"]          }        }      },      {        maxUses: 999999,        rewardExp: 0b,        buy: {          id: "paper",          Count: 45        },        buyB: {          id: "gunpowder",          Count: 15        },        sell: {          id: "minecraft:ghast_spawn_egg",          Count: 1,          tag: {            EntityTag: {              ExplosionPower: 2,              CustomName: '[{"text":"Ghast ","color":"gray"},{"text":"2","color":"red"}]',              Health: 7,              PersistenceRequired: 1b,              Attributes: [                {                  Name: "generic.max_health",                  Base: 7f                }              ]            },            display: {              Name: '[{"text":"Ghast LVL 2","italic":false,"color":"white"}]',              Lore: ['[{"text":"-","italic":false,"color":"red"},{"text":" ","color":"green"},{"text":"ExplosionPower","color":"gray"},{"text":"","color":"dark_purple"}]', '[{"text":"-","italic":false,"color":"red"},{"text":" ","color":"green"},{"text":"Health","color":"gray"}]']            },            CanPlaceOn: ["minecraft:podzol"]          }        }      }    ]  }}
execute as @r at @s if score level settings matches 1 if block 90 65 158 minecraft:soul_torch if score cgun torch matches ..2 run kill @e[tag=cgun]
execute as @r at @s if score level settings matches 1 if block 90 65 158 minecraft:soul_torch if score cgun torch matches ..2 run summon minecraft:villager 90 64 181 {  VillagerData: {    type: "plains",    profession: "shepherd",    level: 99  },  Invulnerable: 1b,  Silent: 1b,  Tags: ["cgun"],  Offers: {    Recipes: [      {        maxUses: 999999,        rewardExp: 0b,        buy: {          id: "minecraft:paper",          Count: 4b        },        buyB: {          id: "minecraft:gunpowder",          Count: 3b        },        sell: {          id: "minecraft:creeper_spawn_egg",          Count: 1b,          tag: {            EntityTag: {              CustomName: '{"text":"Creeper ","color":"green","extra":[{"text":"1","color":"red"}]}',              Health: 40,              PersistenceRequired: 1b,              Attributes: [                {                  Name: "generic.max_health",                  Base: 40.0f                }              ]            },            display: {              Name: '{"text":"Creeper LVL 1","italic":false,"color":"green"}',              Lore: ['{"text":"- Regular","italic":false,"color":"gray"}']            },            CanPlaceOn: ["minecraft:podzol"]          }        }      },      {        maxUses: 999999,        rewardExp: 0b,        buy: {          id: "minecraft:paper",          Count: 10b        },        buyB: {          id: "minecraft:gunpowder",          Count: 2b        },        sell: {          id: "minecraft:creeper_spawn_egg",          Count: 1b,          tag: {            EntityTag: {              Fuse: 20,              ExplosionRadius: 2,              CustomName: '[{"text":"Creeper ","color":"green"},{"text":"2","color":"red"}]',              Health: 40,              PersistenceRequired: 1b,              Attributes: [                {                  Name: "generic.max_health",                  Base: 40.0f                }              ]            },            display: {              Name: '[{"text":"Creeper LVL 2","italic":false,"color":"green"}]',              Lore: ['[{"text":"+ ","italic":false,"color":"green"},{"text":"Less Fuse","color":"gray"},{"text":"","color":"dark_purple"}]','[{"text":"- ","italic":false,"color":"red"},{"text":"Less ExplosionRadius","color":"gray"}]']            },            CanPlaceOn: ["minecraft:podzol"]          }        }      },      {        maxUses: 999999,        rewardExp: 0b,        buy: {          id: "minecraft:paper",          Count: 7b        },        buyB: {          id: "minecraft:gunpowder",          Count: 10b        },        sell: {          id: "minecraft:creeper_spawn_egg",          Count: 1b,          tag: {            EntityTag: {              Fuse: 45,              ExplosionRadius: 6,              CustomName: '[{"text":"Creeper ","color":"green"},{"text":"3","color":"red"}]',              Health: 40,              PersistenceRequired: 1b,              Attributes: [                {                  Name: "generic.max_health",                  Base: 40.0f                }              ]            },            display: {              Name: '[{"text":"Creeper LVL 3","italic":false,"color":"green"}]',              Lore: ['[{"text":"+ ","italic":false,"color":"green"},{"text":"Long ExplosionRadius","color":"gray"},{"text":"","color":"dark_purple"}]','[{"text":"- ","italic":false,"color":"red"},{"text":"Long Fuse","color":"gray"}]']            },            CanPlaceOn: ["minecraft:podzol"]          }        }      }    ]  }}
execute as @r at @s if score level settings matches 1 if block 90 65 158 minecraft:soul_torch if score cgun torch matches ..2 run summon minecraft:villager 90 64 167 {  VillagerData: {    type: "plains",    profession: "shepherd",    level: 99  },  Invulnerable: 1b,  Silent: 1,  Tags: ["cgun"],  Offers: {    Recipes: [      {        maxUses: 999999,        rewardExp: 0b,        buy: {          id: "paper",          Count: 25        },        buyB: {          id: "gunpowder",          Count: 20        },        sell: {          id: "minecraft:ghast_spawn_egg",          Count: 1,          tag: {            EntityTag: {              ExplosionPower: 2,              CustomName: '[{"text":"Ghast ","color":"gray"},{"text":"1","color":"gray"}]',              Health: 15,              PersistenceRequired: 1b,              Attributes: [                {                  Name: "generic.max_health",                  Base: 15f                }              ]            },            display: {              Name: '[{"text":"Ghast LVL 1","italic":false,"color":"white"}]',              Lore: ['[{"text":"+","italic":false,"color":"green"},{"text":" ExplosionPower","color":"gray"}]']            },            CanPlaceOn: ["minecraft:podzol"]          }        }      },      {        maxUses: 999999,        rewardExp: 0b,        buy: {          id: "paper",          Count: 45        },        buyB: {          id: "gunpowder",          Count: 15        },        sell: {          id: "minecraft:ghast_spawn_egg",          Count: 1,          tag: {            EntityTag: {              ExplosionPower: 2,              CustomName: '[{"text":"Ghast ","color":"gray"},{"text":"2","color":"red"}]',              Health: 7,              PersistenceRequired: 1b,              Attributes: [                {                  Name: "generic.max_health",                  Base: 7f                }              ]            },            display: {              Name: '[{"text":"Ghast LVL 2","italic":false,"color":"white"}]',              Lore: ['[{"text":"-","italic":false,"color":"red"},{"text":" ","color":"green"},{"text":"ExplosionPower","color":"gray"},{"text":"","color":"dark_purple"}]', '[{"text":"-","italic":false,"color":"red"},{"text":" ","color":"green"},{"text":"Health","color":"gray"}]']            },            CanPlaceOn: ["minecraft:podzol"]          }        }      },      {        maxUses: 999999,        rewardExp: 0b,        buy: {          id: "paper",          Count: 35        },        buyB: {          id: "gunpowder",          Count: 55        },        sell: {          id: "minecraft:ghast_spawn_egg",          Count: 1,          tag: {            EntityTag: {              ExplosionPower: 3,              CustomName: '[{"text":"Ghast ","color":"gray"},{"text":"3","color":"red"}]',              Health: 25,              PersistenceRequired: 1b,              Attributes: [                {                  Name: "generic.max_health",                  Base: 25f                }              ]            },            display: {              Name: '[{"text":"Ghast LVL 3","italic":false,"color":"white"}]',              Lore: ['[{"text":"++","italic":false,"color":"green"},{"text":" "},{"text":"ExplosionPower","color":"gray"},{"text":"","color":"dark_purple"}]', '[{"text":"+","italic":false,"color":"green"},{"text":" "},{"text":"Health","color":"gray"}]']            },            CanPlaceOn: ["minecraft:podzol"]          }        }      }    ]  }}

execute as @r at @s if score level settings matches 1 if block 92 65 151 minecraft:soul_torch if score cbone torch matches ..1 run kill @e[tag=cbone]
execute as @r at @s if score level settings matches 1 if block 92 65 151 minecraft:soul_torch if score cbone torch matches ..1 run summon minecraft:villager 90 64 179 {    VillagerData: {        type: "plains",        profession: "shepherd",        level: 99    },    Invulnerable: 1b,    Silent: 1,    Tags: ["cbone"],    Offers: {        Recipes: [            {                maxUses: 999999,                rewardExp: 0b,                buy: { id: "paper", Count: 6 },                buyB: { id: "bone", Count: 3 },                sell: {           id: "skeleton_spawn_egg",           Count: 1,           tag: {             EntityTag: {               CustomName: '{"text":"Skeleton LVL 1","italic":false,"color":"white"}',               Health: 20,               PersistenceRequired: 1b,               Attributes: [                 {                   Name: "generic.max_health",                   Base: 20f                 }               ]             },             display: {               Name: '{"text":"Skeleton LVL 1","italic":false,"color":"white"}',               Lore: ['{"text":"- Regular","italic":false,"color":"gray"}']             },             CanPlaceOn: ["minecraft:podzol"]           }         }       },      {                maxUses: 999999,                rewardExp: 0b,                buy: { id: "paper", Count: 10 },                buyB: { id: "bone", Count: 6 },                sell: {           id: "skeleton_spawn_egg",           Count: 1,           tag: {             EntityTag: {               CustomName: '[{"text":"Skeleton ","color":"gray"},{"text":"2","color":"red"}]',               Health: 20,               PersistenceRequired: 1b,               ArmorItems: [                { id: "leather_boots", Count: 1 },                { id: "leather_leggings", Count: 1 },                { id: "leather_chestplate", Count: 1 },                { id: "leather_helmet", Count: 1 }              ],              ArmorDropChances: [0f, 0f, 0f, 0f],              Attributes: [                { Name: "generic.max_health", Base: 20f }              ]             },             display: {               Name: '[{"text":"Skeleton LVL 2","italic":false,"color":"white"}]',               Lore: ['[{"text":"+ ","italic":false,"color":"green"},{"text":"Leather Armor","color":"gray"}]']             },             CanPlaceOn: ["minecraft:podzol"]           }         }       }      ]    }}
execute as @r at @s if score level settings matches 1 if block 92 65 151 minecraft:soul_torch if score cbone torch matches ..1 run summon minecraft:villager 100 64 171 {    VillagerData: {        type: "plains",        profession: "shepherd",        level: 99    },    Invulnerable: 1b,    Silent: 1b,    Tags: ["cbone"],    Offers: {        Recipes: [            {                maxUses: 999999,                rewardExp: 0b,                buy: {                    id: "minecraft:paper",                    Count: 14                },                buyB: {                    id: "minecraft:bone",                    Count: 10                },                sell: {                    id: "minecraft:witch_spawn_egg",                    Count: 1b,                    tag: {                        EntityTag: {                            CustomName: '{"text":"Witch ","color":"dark_purple","extra":[{"text":"1","color":"red"}]}',                            Health: 26,                            PersistenceRequired: 1b,                            Attributes: [                                {                                    Name: "generic.max_health",                                    Base: 20f                                }                            ]                        },                        display: {                            Name: '{"text":"Witch LVL 1","italic":false,"color":"dark_purple"}',                            Lore: ['{"text":"- Regular","italic":false,"color":"gray"}']},                            CanPlaceOn: ["minecraft:podzol"]                                            }                }            },            {                maxUses: 999999,                rewardExp: 0b,                buy: {                    id: "minecraft:paper",                    Count: 20                },                buyB: {                    id: "minecraft:bone",                    Count: 15                },                sell: {                    id: "minecraft:witch_spawn_egg",                    Count: 1b,                    tag: {                        EntityTag: {                            CustomName: '[{"text":"Witch ","color":"dark_purple"},{"text":"2","color":"red"}]',                            Health: 32,                            PersistenceRequired: 1b,                            Attributes: [                                {                                    Name: "generic.max_health",                                    Base: 32f                                }                            ]                        },                        display: {                            Name: '[{"text":"Witch LVL 2","italic":false,"color":"dark_purple"}]',                            Lore: ['[{"text":"+ ","italic":false,"color":"green"},{"text":"Health ","color":"gray"}]']                        },                            CanPlaceOn: ["minecraft:podzol"]                    }                }            }        ]    }}
execute as @r at @s if score level settings matches 1 if block 94 65 151 minecraft:soul_torch if score cbone torch matches ..2 run kill @e[tag=cbone]
execute as @r at @s if score level settings matches 1 if block 94 65 151 minecraft:soul_torch if score cbone torch matches ..2 run summon minecraft:villager 90 64 179 {    VillagerData: {        type: "plains",        profession: "shepherd",        level: 99    },    Invulnerable: 1b,    Silent: 1,    Tags: ["cbone"],    Offers: {        Recipes: [            {                maxUses: 999999,                rewardExp: 0b,                buy: { id: "paper", Count: 6 },                buyB: { id: "bone", Count: 3 },                sell: {           id: "skeleton_spawn_egg",           Count: 1,           tag: {             EntityTag: {               CustomName: '{"text":"Skeleton LVL 1","italic":false,"color":"white"}',               Health: 20,               PersistenceRequired: 1b,               Attributes: [                 {                   Name: "generic.max_health",                   Base: 20f                 }               ]             },             display: {               Name: '{"text":"Skeleton LVL 1","italic":false,"color":"white"}',               Lore: ['{"text":"- Regular","italic":false,"color":"gray"}']             },             CanPlaceOn: ["minecraft:podzol"]           }         }       },      {                maxUses: 999999,                rewardExp: 0b,                buy: { id: "paper", Count: 10 },                buyB: { id: "bone", Count: 6 },                sell: {           id: "skeleton_spawn_egg",           Count: 1,           tag: {             EntityTag: {               CustomName: '[{"text":"Skeleton ","color":"gray"},{"text":"2","color":"red"}]',               Health: 20,               PersistenceRequired: 1b,               ArmorItems: [                { id: "leather_boots", Count: 1 },                { id: "leather_leggings", Count: 1 },                { id: "leather_chestplate", Count: 1 },                { id: "leather_helmet", Count: 1 }              ],              ArmorDropChances: [0f, 0f, 0f, 0f],              Attributes: [                { Name: "generic.max_health", Base: 20f }              ]             },             display: {               Name: '[{"text":"Skeleton LVL 2","italic":false,"color":"white"}]',               Lore: ['[{"text":"+ ","italic":false,"color":"green"},{"text":"Leather Armor","color":"gray"}]']             },             CanPlaceOn: ["minecraft:podzol"]           }         }       },      {                maxUses: 999999,                rewardExp: 0b,                buy: { id: "paper", Count: 20 },                buyB: { id: "bone", Count: 12 },                sell: {           id: "skeleton_spawn_egg",           Count: 1,           tag: {             EntityTag: {               CustomName: '[{"text":"Skeleton ","color":"gray"},{"text":"3","color":"red"}]',               Health: 20,               PersistenceRequired: 1b,               HandItems: [                { id: "bow", Count: 1, tag: { Enchantments: [{ id: "minecraft:power", lvl: 1 }] } }              ],              ArmorItems: [                { id: "iron_boots", Count: 1 },                { id: "iron_leggings", Count: 1 },                { id: "iron_chestplate", Count: 1 },                { id: "iron_helmet", Count: 1 }              ],              HandDropChances: [0f],              ArmorDropChances: [0f, 0f, 0f, 0f],              Attributes: [                { Name: "generic.max_health", Base: 20f }              ]             },             display: {               Name: '[{"text":"Skeleton LVL 3","italic":false,"color":"white"}]',               Lore: [                '[{"text":"+ ","italic":false,"color":"green"},{"text":"Iron Armor","color":"gray"},{"text":"","color":"dark_purple"}]',                '[{"text":"+ ","italic":false,"color":"green"},{"text":"Power 1","color":"gray"}]'              ]             },             CanPlaceOn: ["minecraft:podzol"]           }         }       }      ]    }}
execute as @r at @s if score level settings matches 1 if block 94 65 151 minecraft:soul_torch if score cbone torch matches ..2 run summon minecraft:villager 100 64 171 {    VillagerData: {        type: "plains",        profession: "shepherd",        level: 99    },    Invulnerable: 1b,    Silent: 1b,    Tags: ["cbone"],    Offers: {        Recipes: [            {                maxUses: 999999,                rewardExp: 0b,                buy: {                    id: "minecraft:paper",                    Count: 14                },                buyB: {                    id: "minecraft:bone",                    Count: 10                },                sell: {                    id: "minecraft:witch_spawn_egg",                    Count: 1b,                    tag: {                        EntityTag: {                            CustomName: '{"text":"Witch ","color":"dark_purple","extra":[{"text":"1","color":"red"}]}',                            Health: 26,                            PersistenceRequired: 1b,                            Attributes: [                                {                                    Name: "generic.max_health",                                    Base: 20f                                }                            ]                        },                        display: {                            Name: '{"text":"Witch LVL 1","italic":false,"color":"dark_purple"}',                            Lore: ['{"text":"- Regular","italic":false,"color":"gray"}']},                            CanPlaceOn: ["minecraft:podzol"]                                           }                }            },            {                maxUses: 999999,                rewardExp: 0b,                buy: {                    id: "minecraft:paper",                    Count: 20                },                buyB: {                    id: "minecraft:bone",                    Count: 15                },                sell: {                    id: "minecraft:witch_spawn_egg",                    Count: 1b,                    tag: {                        EntityTag: {                            CustomName: '[{"text":"Witch ","color":"dark_purple"},{"text":"2","color":"red"}]',                            Health: 32,                            PersistenceRequired: 1b,                            Attributes: [                                {                                    Name: "generic.max_health",                                    Base: 32f                                }                            ]                        },                        display: {                            Name: '[{"text":"Witch LVL 2","italic":false,"color":"dark_purple"}]',                            Lore: ['[{"text":"+ ","italic":false,"color":"green"},{"text":"Health ","color":"gray"}]']},                            CanPlaceOn: ["minecraft:podzol"]                                           }                }            },            {                maxUses: 999999,                rewardExp: 0b,                buy: {                    id: "minecraft:paper",                    Count: 40                },                buyB: {                    id: "minecraft:bone",                    Count: 30                },                sell: {                    id: "minecraft:witch_spawn_egg",                    Count: 1b,                    tag: {                        EntityTag: {                            CustomName: '[{"text":"Witch ","color":"dark_purple"},{"text":"3","color":"red"}]',                            Health: 40,                            PersistenceRequired: 1b,                            Attributes: [                                {                                    Name: "generic.max_health",                                    Base: 40f                                }                            ]                        },                        display: {                            Name: '[{"text":"Witch LVL 3","italic":false,"color":"dark_purple"}]',                            Lore: ['[{"text":"++ ","italic":false,"color":"green"},{"text":"Health ","color":"gray"}]']},                            CanPlaceOn: ["minecraft:podzol"]                                           }                }            }        ]    }}

execute as @r at @s if score level settings matches 1 if block 90 65 156 minecraft:soul_torch if score ceye torch matches ..1 run kill @e[type=!armor_stand,tag=ceye]
execute as @r at @s if score level settings matches 1 if block 90 65 156 minecraft:soul_torch if score ceye torch matches ..1 run summon minecraft:villager 90 64 175 {     VillagerData: {         type: "plains",         profession: "shepherd",         level: 99     },     Invulnerable: 1b,     Silent: 1,     Tags: ["ceye"],     Offers: {         Recipes: [             {                 maxUses: 999999,                 rewardExp: 0b,                 buy: {                     id: "paper",                     Count: 6                 },                 buyB: {                     id: "spider_eye",                     Count: 3                 },                 sell: {                     id: "minecraft:spider_spawn_egg",                     Count: 1,                     tag: {                         EntityTag: {                             CustomName: '[{"text":"SPIDER ","color":"dark_red"},{"text":"1","color":"red"}]',                             PersistenceRequired: 1b                         },                         display: {                             Name: '[{"text":"SPIDER LVL 1","italic":false,"color":"dark_red"}]',                             Lore: ['[{"text":"- Regular","italic":false,"color":"gray"}]']},                             CanPlaceOn: ["minecraft:podzol"]                                              }                 }             },            {                 maxUses: 999999,                 rewardExp: 0b,                 buy: {                     id: "paper",                     Count: 8                 },                 buyB: {                     id: "spider_eye",                     Count: 5                 },                 sell: {                     id: "minecraft:spider_spawn_egg",                     Count: 1,                     tag: {                         EntityTag: {                             CustomName: '[{"text":"SPIDER ","color":"dark_red"},{"text":"2","color":"red"}]',                             PersistenceRequired: 1b,                             Attributes: [{Name:"generic.movement_speed",Base:0.4f}]                         },                         display: {                             Name: '[{"text":"SPIDER LVL 2","italic":false,"color":"dark_red"}]',                             Lore: ['[{"text":"+ ","italic":false,"color":"green"},{"text":"Faster","color":"gray"}]']},                             CanPlaceOn: ["minecraft:podzol"]                                             }                 }             }        ]     }}
execute as @r at @s if score level settings matches 1 if block 90 65 156 minecraft:soul_torch if score ceye torch matches ..1 run summon minecraft:villager 90 64 171 {  VillagerData: {    type: "plains",    profession: "shepherd",    level: 99  },  Invulnerable: 1b,  Silent: 1,  Tags: ["ceye"],  Offers: {    Recipes: [      {        maxUses: 999999,        rewardExp: 0b,        buy: { id: "paper", Count: 8 },        buyB: { id: "spider_eye", Count: 5 },        sell: {          id: "minecraft:slime_spawn_egg",          Count: 1,          tag: {            EntityTag: {              Size: 2,              wasOnGround: 1,              CustomName: '[{"text":"SLIME ","color":"green"},{"text":"1","color":"red"}]',              PersistenceRequired: 1b            },            display: {              Name: '[{"text":"SLIME LVL 1","italic":false,"color":"green"}]',              Lore: ['[{"text":"- Regular","italic":false,"color":"gray"}]']            },CanPlaceOn:["minecraft:podzol"]          }        }      },      {        maxUses: 999999,        rewardExp: 0b,        buy: { id: "paper", Count: 14 },        buyB: { id: "spider_eye", Count: 9 },        sell: {          id: "minecraft:slime_spawn_egg",          Count: 1,          tag: {            EntityTag: {              Size: 3,              wasOnGround: 1,              CustomName: '[{"text":"SLIME ","color":"green"},{"text":"2","color":"red"}]',              PersistenceRequired: 1b            },            display: {              Name: '[{"text":"SLIME LVL 2","italic":false,"color":"green"}]',              Lore: ['[{"text":"+ ","italic":false,"color":"green"},{"text":"Bigger","color":"gray"}]']            },CanPlaceOn:["minecraft:podzol"]          }        }      }    ]  }}
execute as @r at @s if score level settings matches 1 if block 90 65 156 minecraft:soul_torch if score ceye torch matches ..1 run summon minecraft:villager 90 64 177 {VillagerData:{type:"plains",profession:"shepherd",level:99},Silent:1b,Invulnerable:1b,Tags:["ceye"],Offers:{Recipes:[    {maxUses:999999,rewardExp:0b,buy:{id:"paper",Count:8},buyB:{id:"spider_eye",Count:5},sell:{id:"minecraft:guardian_spawn_egg",Count:1,tag:{EntityTag:{CustomName:'[{"text":"GUARDIAN ","color":"dark_aqua"},{"text":"1","color":"red"}]',Health:15,PersistenceRequired:1b,Attributes:[{Name:"generic.max_health",Base:15f}]},display:{Name:'[{"text":"Guardian LVL 1","italic":false,"color":"dark_aqua"}]',Lore:['[{"text":"--","italic":false,"color":"red"},{"text":" Less Health","color":"gray"}]']},CanPlaceOn:["minecraft:podzol"]}}},    {maxUses:999999,rewardExp:0b,buy:{id:"paper",Count:18},buyB:{id:"spider_eye",Count:12},sell:{id:"minecraft:guardian_spawn_egg",Count:1,tag:{EntityTag:{CustomName:'[{"text":"GUARDIAN ","color":"dark_aqua"},{"text":"2","color":"red"}]',Health:22,PersistenceRequired:1b,Attributes:[{Name:"generic.max_health",Base:22f}]},display:{Name:'[{"text":"Guardian LVL 2","italic":false,"color":"dark_aqua"}]',Lore:['[{"text":"-","italic":false,"color":"red"},{"text":" Less Health","color":"gray"}]']},CanPlaceOn:["minecraft:podzol"]}}}]}}
execute as @r at @s if score level settings matches 1 if block 90 65 154 minecraft:soul_torch if score ceye torch matches ..2 run kill @e[type=!armor_stand,tag=ceye]
execute as @r at @s if score level settings matches 1 if block 90 65 154 minecraft:soul_torch if score ceye torch matches ..2 run summon minecraft:villager 90 64 175 {    VillagerData: {        type: "plains",        profession: "shepherd",        level: 99    },    Invulnerable: 1b,    Silent: 1,    Tags: ["ceye"],    Offers: {        Recipes: [            {                maxUses: 999999,                rewardExp: 0b,                buy: {                    id: "paper",                    Count: 6                },                buyB: {                    id: "spider_eye",                    Count: 3                },                sell: {                    id: "minecraft:spider_spawn_egg",                    Count: 1,                    tag: {                        EntityTag: {                            CustomName: '[{"text":"SPIDER ","color":"dark_red"},{"text":"1","color":"red"}]',                            PersistenceRequired: 1b                        },                        display: {                            Name: '[{"text":"SPIDER LVL 1","italic":false,"color":"dark_red"}]',                            Lore: ['[{"text":"- Regular","italic":false,"color":"gray"}]']},                            CanPlaceOn: ["minecraft:podzol"]                                            }                }            },            {                maxUses: 999999,                rewardExp: 0b,                buy: {                    id: "paper",                    Count: 8                },                buyB: {                    id: "spider_eye",                    Count: 5                },                sell: {                    id: "minecraft:spider_spawn_egg",                    Count: 1,                    tag: {                        EntityTag: {                            CustomName: '[{"text":"SPIDER ","color":"dark_red"},{"text":"2","color":"red"}]',                            PersistenceRequired: 1b,                            Attributes: [{ Name: "generic.movement_speed", Base: 0.4f }]                        },                        display: {                            Name: '[{"text":"SPIDER LVL 2","italic":false,"color":"dark_red"}]',                            Lore: ['[{"text":"+ ","italic":false,"color":"green"},{"text":"Faster","color":"gray"}]']},                            CanPlaceOn: ["minecraft:podzol"]                                            }                }            },            {                maxUses: 999999,                rewardExp: 0b,                buy: {                    id: "paper",                    Count: 15                },                buyB: {                    id: "spider_eye",                    Count: 10                },                sell: {                    id: "minecraft:spider_spawn_egg",                    Count: 1,                    tag: {                        EntityTag: {                            CustomName: '[{"text":"SPIDER ","color":"dark_red"},{"text":"3","color":"red"}]',                            PersistenceRequired: 1b,                            Attributes: [{ Name: "generic.movement_speed", Base: 0.5f }]                        },                        display: {                            Name: '[{"text":"SPIDER LVL 3","italic":false,"color":"dark_red"}]',                            Lore: ['[{"text":"++ ","italic":false,"color":"green"},{"text":"Faster","color":"gray"}]']},                            CanPlaceOn: ["minecraft:podzol"]                                            }                }            }        ]    }}
execute as @r at @s if score level settings matches 1 if block 90 65 154 minecraft:soul_torch if score ceye torch matches ..2 run summon minecraft:villager 90 64 171 {  VillagerData: {    type: "plains",    profession: "shepherd",    level: 99  },  Invulnerable: 1b,  Silent: 1,  Tags: ["ceye"],  Offers: {    Recipes: [      {        maxUses: 999999,        rewardExp: 0b,        buy: { id: "paper", Count: 8 },        buyB: { id: "spider_eye", Count: 5 },        sell: {          id: "minecraft:slime_spawn_egg",          Count: 1,          tag: {            EntityTag: {              Size: 2,              wasOnGround: 1,              CustomName: '[{"text":"SLIME ","color":"green"},{"text":"1","color":"red"}]',              PersistenceRequired: 1b            },            display: {              Name: '[{"text":"SLIME LVL 1","italic":false,"color":"green"}]',              Lore: ['[{"text":"- Regular","italic":false,"color":"gray"}]']            }  ,CanPlaceOn:["minecraft:podzol"]        }        }      },      {        maxUses: 999999,        rewardExp: 0b,        buy: { id: "paper", Count: 14 },        buyB: { id: "spider_eye", Count: 9 },        sell: {          id: "minecraft:slime_spawn_egg",          Count: 1,          tag: {            EntityTag: {              Size: 3,              wasOnGround: 1,              CustomName: '[{"text":"SLIME ","color":"green"},{"text":"2","color":"red"}]',              PersistenceRequired: 1b            },            display: {              Name: '[{"text":"SLIME LVL 2","italic":false,"color":"green"}]',              Lore: ['[{"text":"+ ","italic":false,"color":"green"},{"text":"Bigger","color":"gray"}]']            },CanPlaceOn:["minecraft:podzol"]          }        }      },      {        maxUses: 999999,        rewardExp: 0b,        buy: { id: "paper", Count: 22 },        buyB: { id: "spider_eye", Count: 15 },        sell: {          id: "minecraft:slime_spawn_egg",          Count: 1,          tag: {            EntityTag: {              Size: 5,              wasOnGround: 1,              CustomName: '[{"text":"SLIME ","color":"green"},{"text":"3","color":"red"}]',              PersistenceRequired: 1b            },            display: {              Name: '[{"text":"SLIME LVL 3","italic":false,"color":"green"}]',              Lore: ['[{"text":"++ ","italic":false,"color":"green"},{"text":"Bigger","color":"gray"}]']            } ,CanPlaceOn:["minecraft:podzol"]         }        }      }    ]  }}
execute as @r at @s if score level settings matches 1 if block 90 65 154 minecraft:soul_torch if score ceye torch matches ..2 run summon minecraft:villager 90 64 177 {VillagerData:{type:"plains",profession:"shepherd",level:99},Silent:1b,Invulnerable:1b,Tags:["ceye"],Offers:{Recipes:[    {maxUses:999999,rewardExp:0b,buy:{id:"paper",Count:8},buyB:{id:"spider_eye",Count:5},sell:{id:"minecraft:guardian_spawn_egg",Count:1,tag:{EntityTag:{CustomName:'[{"text":"GUARDIAN ","color":"dark_aqua"},{"text":"1","color":"red"}]',Health:15,PersistenceRequired:1b,Attributes:[{Name:"generic.max_health",Base:15f}]},display:{Name:'[{"text":"Guardian LVL 1","italic":false,"color":"dark_aqua"}]',Lore:['[{"text":"--","italic":false,"color":"red"},{"text":" Less Health","color":"gray"}]']},CanPlaceOn:["minecraft:podzol"]}}},    {maxUses:999999,rewardExp:0b,buy:{id:"paper",Count:18},buyB:{id:"spider_eye",Count:12},sell:{id:"minecraft:guardian_spawn_egg",Count:1,tag:{EntityTag:{CustomName:'[{"text":"GUARDIAN ","color":"dark_aqua"},{"text":"2","color":"red"}]',Health:22,PersistenceRequired:1b,Attributes:[{Name:"generic.max_health",Base:22f}]},display:{Name:'[{"text":"Guardian LVL 2","italic":false,"color":"dark_aqua"}]',Lore:['[{"text":"-","italic":false,"color":"red"},{"text":" Less Health","color":"gray"}]']},CanPlaceOn:["minecraft:podzol"]}}},    {maxUses:999999,rewardExp:0b,buy:{id:"paper",Count:28},buyB:{id:"spider_eye",Count:20},sell:{id:"minecraft:guardian_spawn_egg",Count:1,tag:{EntityTag:{CustomName:'[{"text":"GUARDIAN ","color":"dark_aqua"},{"text":"3","color":"red"}]',Health:30,PersistenceRequired:1b,Attributes:[{Name:"generic.max_health",Base:30f}]},display:{Name:'[{"text":"Guardian LVL 3","italic":false,"color":"dark_aqua"}]',Lore:['[{"text":"- Regular","italic":false,"color":"gray"}]']},CanPlaceOn:["minecraft:podzol"]}}}]}}



# EGGS GRASS
execute as @r at @s if score level settings matches 1 if block 162 65 186 minecraft:soul_torch if score ecoal torch matches ..1 run kill @e[tag=ecoal]
execute as @r at @s if score level settings matches 1 if block 162 65 186 minecraft:soul_torch if score ecoal torch matches ..1 run summon minecraft:villager 168 64 154 {VillagerData:{type:"plains",profession:"shepherd",level:99},Silent:1,Invulnerable:1,Tags:["ecoal"],Offers:{Recipes:[{maxUses:999999,rewardExp:0b,buy:{id:"minecraft:paper",Count:4},buyB:{id:"minecraft:coal",Count:3},sell:{id:"minecraft:zombie_spawn_egg",Count:1,tag:{EntityTag:{IsBaby:0,DrownedConversionTime:-1,InWaterTime:-1,CustomName:'[{"text":"Zombie ","color":"dark_green"},{"text":"1","color":"red"}]',PersistenceRequired:1b},display:{Name:'[{"text":"Zombie LVL 1","italic":false,"color":"dark_green","bold":false}]',Lore:['[{"text":"-","italic":false,"color":"gray"},{"text":" ","color":"dark_gray"},{"text":"Regular"}]']},CanPlaceOn:["minecraft:grass_block"]}}},{maxUses:999999,rewardExp:0b,buy:{id:"minecraft:paper",Count:10},buyB:{id:"minecraft:coal",Count:6},sell:{id:"minecraft:zombie_spawn_egg",Count:1,tag:{EntityTag:{IsBaby:0,CustomName:'[{"text":"Zombie ","color":"dark_green"},{"text":"2","color":"red"}]',ArmorItems:[{id:"minecraft:leather_boots",Count:1},{id:"minecraft:leather_leggings",Count:1},{id:"minecraft:leather_chestplate",Count:1},{id:"minecraft:leather_helmet",Count:1}],ArmorDropChances:[0f,0f,0f,0f]},display:{Name:'[{"text":"Zombie LVL 2","italic":false,"bold":false,"color":"dark_green"}]',Lore:['[{"text":"+ ","italic":false,"color":"green"},{"text":"Leather Armor","color":"gray"}]']},CanPlaceOn:["minecraft:grass_block"]}}}]}}
execute as @r at @s if score level settings matches 1 if block 162 65 186 minecraft:soul_torch if score ecoal torch matches ..1 run summon minecraft:villager 159 64 170 {VillagerData:{type:"plains",profession:"shepherd",level:99},Silent:1b,Invulnerable:1b,Tags:["ecoal"],Offers:{Recipes:[{maxUses:999999,rewardExp:0b,buy:{id:"minecraft:paper",Count:20},buyB:{id:"minecraft:coal",Count:15},sell:{id:"blaze_spawn_egg",Count:1,tag:{EntityTag:{CustomName:'[{"text":"Blaze ","color":"gold"},{"text":"1","color":"red"}]'},display:{Name:'[{"text":"Blaze LVL 1","italic":false,"color":"gold"}]',Lore:['[{"text":"- Regular","italic":false,"color":"gray"}]']},CanPlaceOn:["minecraft:grass_block"]}}},{maxUses:999999,rewardExp:0b,buy:{id:"minecraft:paper",Count:7},buyB:{id:"minecraft:coal",Count:30},sell:{id:"blaze_spawn_egg",Count:1,tag:{EntityTag:{CustomName:'[{"text":"Blaze ","color":"gold"},{"text":"2","color":"red"}]',Health:10,Attributes:[{Name:"generic.max_health",Base:10f}]},display:{Name:'[{"text":"Blaze LVL 2","italic":false,"color":"gold"}]',Lore:['[{"text":"- ","italic":false,"color":"red"},{"text":"Less Health","color":"gray"}]']},CanPlaceOn:["minecraft:grass_block"]}}}]}}
execute as @r at @s if score level settings matches 1 if block 160 65 186 minecraft:soul_torch if score ecoal torch matches ..2 run kill @e[tag=ecoal]
execute as @r at @s if score level settings matches 1 if block 160 65 186 minecraft:soul_torch if score ecoal torch matches ..2 run summon minecraft:villager 168 64 154 {VillagerData:{type:"plains",profession:"shepherd",level:99},Silent:1,Invulnerable:1,Tags:["ecoal"],Offers:{Recipes:[{maxUses:999999,rewardExp:0b,buy:{id:"minecraft:paper",Count:4},buyB:{id:"minecraft:coal",Count:3},sell:{id:"minecraft:zombie_spawn_egg",Count:1,tag:{EntityTag:{IsBaby:0,DrownedConversionTime:-1,InWaterTime:-1,CustomName:'[{"text":"Zombie ","color":"dark_green"},{"text":"1","color":"red"}]',PersistenceRequired:1b},display:{Name:'[{"text":"Zombie LVL 1","italic":false,"color":"dark_green","bold":false}]',Lore:['[{"text":"-","italic":false,"color":"gray"},{"text":" ","color":"dark_gray"},{"text":"Regular"}]']},CanPlaceOn:["minecraft:grass_block"]}}},{maxUses:999999,rewardExp:0b,buy:{id:"minecraft:paper",Count:10},buyB:{id:"minecraft:coal",Count:6},sell:{id:"minecraft:zombie_spawn_egg",Count:1,tag:{EntityTag:{IsBaby:0,CustomName:'[{"text":"Zombie ","color":"dark_green"},{"text":"2","color":"red"}]',ArmorItems:[{id:"minecraft:leather_boots",Count:1},{id:"minecraft:leather_leggings",Count:1},{id:"minecraft:leather_chestplate",Count:1},{id:"minecraft:leather_helmet",Count:1}],ArmorDropChances:[0f,0f,0f,0f]},display:{Name:'[{"text":"Zombie LVL 2","italic":false,"bold":false,"color":"dark_green"}]',Lore:['[{"text":"+ ","italic":false,"color":"green"},{"text":"Leather Armor","color":"gray"}]']},CanPlaceOn:["minecraft:grass_block"]}}},{maxUses:999999,rewardExp:0b,buy:{id:"minecraft:paper",Count:20},buyB:{id:"minecraft:coal",Count:12},sell:{id:"minecraft:zombie_spawn_egg",Count:1,tag:{EntityTag:{IsBaby:0,DrownedConversionTime:-1,InWaterTime:-1,CustomName:'[{"text":"Zombie ","color":"dark_green"},{"text":"3","color":"red"}]',PersistenceRequired:1b,HandItems:[{id:"minecraft:wooden_sword",Count:1}],ArmorItems:[{id:"minecraft:iron_boots",Count:1},{id:"minecraft:iron_leggings",Count:1},{id:"minecraft:iron_chestplate",Count:1},{id:"minecraft:iron_helmet",Count:1}],Attributes:[{Name:"generic.movement_speed",Base:0.2f},{Name:"generic.attack_damage",Base:5f}],HandDropChances:[0f],ArmorDropChances:[0f,0f,0f,0f]},display:{Name:'[{"text":"Zombie LVL 3","italic":false,"color":"dark_green","bold":false}]',Lore:['[{"text":"+ ","italic":false,"color":"green"},{"text":"Iron Armor","italic":false,"color":"gray"}]','[{"text":"+ ","italic":false,"color":"green"},{"text":"Wooden Sword","color":"gray"}]','[{"text":"+ ","italic":false,"color":"green"},{"text":"Strength","italic":false,"color":"gray"}]','[{"text":"- ","italic":false,"color":"dark_red"},{"text":"Slowness","color":"gray"}]']},CanPlaceOn:["minecraft:grass_block"]}}}]}}
execute as @r at @s if score level settings matches 1 if block 160 65 186 minecraft:soul_torch if score ecoal torch matches ..2 run summon minecraft:villager 159 64 170 {  VillagerData: {    type: "plains",    profession: "shepherd",    level: 99  },  Silent: 1b,  Invulnerable: 1b,  Tags: ["ecoal"],  Offers: {    Recipes: [      {        maxUses: 999999,        rewardExp: 0b,        buy: { id: "minecraft:paper", Count: 20 },        buyB: { id: "minecraft:coal", Count: 15 },        sell: {          id: "blaze_spawn_egg",          Count: 1,          tag: {            EntityTag: {              CustomName: '[{"text":"Blaze ","color":"gold"},{"text":"1","color":"red"}]'            },            display: {              Name: '[{"text":"Blaze LVL 1","italic":false,"color":"gold"}]',              Lore: ['[{"text":"- Regular","italic":false,"color":"gray"}]']            },            CanPlaceOn: ["minecraft:grass_block"]          }        }      },      {        maxUses: 999999,        rewardExp: 0b,        buy: { id: "minecraft:paper", Count: 7 },        buyB: { id: "minecraft:coal", Count: 30 },        sell: {          id: "blaze_spawn_egg",          Count: 1,          tag: {            EntityTag: {              CustomName: '[{"text":"Blaze ","color":"gold"},{"text":"2","color":"red"}]',              Health: 10,              Attributes: [{ Name: "generic.max_health", Base: 10f }]            },            display: {              Name: '[{"text":"Blaze LVL 2","italic":false,"color":"gold"}]',              Lore: ['[{"text":"- ","italic":false,"color":"red"},{"text":"Less Health","color":"gray"}]']            },            CanPlaceOn: ["minecraft:grass_block"]          }        }      },      {        maxUses: 999999,        rewardExp: 0b,        buy: { id: "minecraft:paper", Count: 60 },        buyB: { id: "minecraft:coal", Count: 20 },        sell: {          id: "blaze_spawn_egg",          Count: 1,          tag: {            EntityTag: {              CustomName: '[{"text":"Blaze ","color":"gold"},{"text":"3","color":"red"}]',              Health: 40,              PersistenceRequired: 1b,              Attributes: [{ Name: "generic.max_health", Base: 40f }]            },            display: {              Name: '[{"text":"Blaze LVL 3","italic":false,"color":"gold"}]',              Lore: ['[{"text":"+ ","italic":false,"color":"green"},{"text":"More Health","color":"gray"}]']            },            CanPlaceOn: ["minecraft:grass_block"]          }        }      }    ]  }}

execute as @r at @s if score level settings matches 1 if block 168 65 177 minecraft:soul_torch if score egun torch matches ..1 run kill @e[tag=egun]
execute as @r at @s if score level settings matches 1 if block 168 65 177 minecraft:soul_torch if score egun torch matches ..1 run summon minecraft:villager 168 64 156 {  VillagerData: {    type: "plains",    profession: "shepherd",    level: 99  },  Invulnerable: 1b,  Silent: 1b,  Tags: ["egun"],  Offers: {    Recipes: [      {        maxUses: 999999,        rewardExp: 0b,        buy: {          id: "minecraft:paper",          Count: 4b        },        buyB: {          id: "minecraft:gunpowder",          Count: 3b        },        sell: {          id: "minecraft:creeper_spawn_egg",          Count: 1b,          tag: {            EntityTag: {              CustomName: '{"text":"Creeper ","color":"green","extra":[{"text":"1","color":"red"}]}',              Health: 40,              PersistenceRequired: 1b,              Attributes: [                {                  Name: "generic.max_health",                  Base: 40.0f                }              ]            },            display: {              Name: '{"text":"Creeper LVL 1","italic":false,"color":"green"}',              Lore: ['{"text":"- Regular","italic":false,"color":"gray"}']            },            CanPlaceOn: ["minecraft:grass_block"]          }        }      },      {        maxUses: 999999,        rewardExp: 0b,        buy: {          id: "minecraft:paper",          Count: 10b        },        buyB: {          id: "minecraft:gunpowder",          Count: 2b        },        sell: {          id: "minecraft:creeper_spawn_egg",          Count: 1b,          tag: {            EntityTag: {              Fuse: 20,              ExplosionRadius: 2,              CustomName: '[{"text":"Creeper ","color":"green"},{"text":"2","color":"red"}]',              Health: 40,              PersistenceRequired: 1b,              Attributes: [                {                  Name: "generic.max_health",                  Base: 40.0f                }              ]            },            display: {              Name: '[{"text":"Creeper LVL 2","italic":false,"color":"green"}]',              Lore: ['[{"text":"+ ","italic":false,"color":"green"},{"text":"Less Fuse","color":"gray"},{"text":"","color":"dark_purple"}]','[{"text":"- ","italic":false,"color":"red"},{"text":"Less ExplosionRadius","color":"gray"}]']            },            CanPlaceOn: ["minecraft:grass_block"]          }        }      }    ]  }}
execute as @r at @s if score level settings matches 1 if block 168 65 177 minecraft:soul_torch if score egun torch matches ..1 run summon minecraft:villager 168 64 170 {  VillagerData: {    type: "plains",    profession: "shepherd",    level: 99  },  Invulnerable: 1b,  Silent: 1,  Tags: ["egun"],  Offers: {    Recipes: [      {        maxUses: 999999,        rewardExp: 0b,        buy: {          id: "paper",          Count: 25        },        buyB: {          id: "gunpowder",          Count: 20        },        sell: {          id: "minecraft:ghast_spawn_egg",          Count: 1,          tag: {            EntityTag: {              ExplosionPower: 2,              CustomName: '[{"text":"Ghast ","color":"gray"},{"text":"1","color":"gray"}]',              Health: 15,              PersistenceRequired: 1b,              Attributes: [                {                  Name: "generic.max_health",                  Base: 15f                }              ]            },            display: {              Name: '[{"text":"Ghast LVL 1","italic":false,"color":"white"}]',              Lore: ['[{"text":"+","italic":false,"color":"green"},{"text":" ExplosionPower","color":"gray"}]']            },            CanPlaceOn: ["minecraft:grass_block"]          }        }      },      {        maxUses: 999999,        rewardExp: 0b,        buy: {          id: "paper",          Count: 45        },        buyB: {          id: "gunpowder",          Count: 15        },        sell: {          id: "minecraft:ghast_spawn_egg",          Count: 1,          tag: {            EntityTag: {              ExplosionPower: 2,              CustomName: '[{"text":"Ghast ","color":"gray"},{"text":"2","color":"red"}]',              Health: 7,              PersistenceRequired: 1b,              Attributes: [                {                  Name: "generic.max_health",                  Base: 7f                }              ]            },            display: {              Name: '[{"text":"Ghast LVL 2","italic":false,"color":"white"}]',              Lore: ['[{"text":"-","italic":false,"color":"red"},{"text":" ","color":"green"},{"text":"ExplosionPower","color":"gray"},{"text":"","color":"dark_purple"}]', '[{"text":"-","italic":false,"color":"red"},{"text":" ","color":"green"},{"text":"Health","color":"gray"}]']            },            CanPlaceOn: ["minecraft:grass_block"]          }        }      }    ]  }}
execute as @r at @s if score level settings matches 1 if block 168 65 179 minecraft:soul_torch if score egun torch matches ..2 run kill @e[tag=egun]
execute as @r at @s if score level settings matches 1 if block 168 65 179 minecraft:soul_torch if score egun torch matches ..2 run summon minecraft:villager 168 64 156 {  VillagerData: {    type: "plains",    profession: "shepherd",    level: 99  },  Invulnerable: 1b,  Silent: 1b,  Tags: ["egun"],  Offers: {    Recipes: [      {        maxUses: 999999,        rewardExp: 0b,        buy: {          id: "minecraft:paper",          Count: 4b        },        buyB: {          id: "minecraft:gunpowder",          Count: 3b        },        sell: {          id: "minecraft:creeper_spawn_egg",          Count: 1b,          tag: {            EntityTag: {              CustomName: '{"text":"Creeper ","color":"green","extra":[{"text":"1","color":"red"}]}',              Health: 40,              PersistenceRequired: 1b,              Attributes: [                {                  Name: "generic.max_health",                  Base: 40.0f                }              ]            },            display: {              Name: '{"text":"Creeper LVL 1","italic":false,"color":"green"}',              Lore: ['{"text":"- Regular","italic":false,"color":"gray"}']            },            CanPlaceOn: ["minecraft:grass_block"]          }        }      },      {        maxUses: 999999,        rewardExp: 0b,        buy: {          id: "minecraft:paper",          Count: 10b        },        buyB: {          id: "minecraft:gunpowder",          Count: 2b        },        sell: {          id: "minecraft:creeper_spawn_egg",          Count: 1b,          tag: {            EntityTag: {              Fuse: 20,              ExplosionRadius: 2,              CustomName: '[{"text":"Creeper ","color":"green"},{"text":"2","color":"red"}]',              Health: 40,              PersistenceRequired: 1b,              Attributes: [                {                  Name: "generic.max_health",                  Base: 40.0f                }              ]            },            display: {              Name: '[{"text":"Creeper LVL 2","italic":false,"color":"green"}]',              Lore: ['[{"text":"+ ","italic":false,"color":"green"},{"text":"Less Fuse","color":"gray"},{"text":"","color":"dark_purple"}]','[{"text":"- ","italic":false,"color":"red"},{"text":"Less ExplosionRadius","color":"gray"}]']            },            CanPlaceOn: ["minecraft:grass_block"]          }        }      },      {        maxUses: 999999,        rewardExp: 0b,        buy: {          id: "minecraft:paper",          Count: 7b        },        buyB: {          id: "minecraft:gunpowder",          Count: 10b        },        sell: {          id: "minecraft:creeper_spawn_egg",          Count: 1b,          tag: {            EntityTag: {              Fuse: 45,              ExplosionRadius: 6,              CustomName: '[{"text":"Creeper ","color":"green"},{"text":"3","color":"red"}]',              Health: 40,              PersistenceRequired: 1b,              Attributes: [                {                  Name: "generic.max_health",                  Base: 40.0f                }              ]            },            display: {              Name: '[{"text":"Creeper LVL 3","italic":false,"color":"green"}]',              Lore: ['[{"text":"+ ","italic":false,"color":"green"},{"text":"Long ExplosionRadius","color":"gray"},{"text":"","color":"dark_purple"}]','[{"text":"- ","italic":false,"color":"red"},{"text":"Long Fuse","color":"gray"}]']            },            CanPlaceOn: ["minecraft:grass_block"]          }        }      }    ]  }}
execute as @r at @s if score level settings matches 1 if block 168 65 179 minecraft:soul_torch if score egun torch matches ..2 run summon minecraft:villager 168 64 170 {  VillagerData: {    type: "plains",    profession: "shepherd",    level: 99  },  Invulnerable: 1b,  Silent: 1,  Tags: ["egun"],  Offers: {    Recipes: [      {        maxUses: 999999,        rewardExp: 0b,        buy: {          id: "paper",          Count: 25        },        buyB: {          id: "gunpowder",          Count: 20        },        sell: {          id: "minecraft:ghast_spawn_egg",          Count: 1,          tag: {            EntityTag: {              ExplosionPower: 2,              CustomName: '[{"text":"Ghast ","color":"gray"},{"text":"1","color":"gray"}]',              Health: 15,              PersistenceRequired: 1b,              Attributes: [                {                  Name: "generic.max_health",                  Base: 15f                }              ]            },            display: {              Name: '[{"text":"Ghast LVL 1","italic":false,"color":"white"}]',              Lore: ['[{"text":"+","italic":false,"color":"green"},{"text":" ExplosionPower","color":"gray"}]']            },            CanPlaceOn: ["minecraft:grass_block"]          }        }      },      {        maxUses: 999999,        rewardExp: 0b,        buy: {          id: "paper",          Count: 45        },        buyB: {          id: "gunpowder",          Count: 15        },        sell: {          id: "minecraft:ghast_spawn_egg",          Count: 1,          tag: {            EntityTag: {              ExplosionPower: 2,              CustomName: '[{"text":"Ghast ","color":"gray"},{"text":"2","color":"red"}]',              Health: 7,              PersistenceRequired: 1b,              Attributes: [                {                  Name: "generic.max_health",                  Base: 7f                }              ]            },            display: {              Name: '[{"text":"Ghast LVL 2","italic":false,"color":"white"}]',              Lore: ['[{"text":"-","italic":false,"color":"red"},{"text":" ","color":"green"},{"text":"ExplosionPower","color":"gray"},{"text":"","color":"dark_purple"}]', '[{"text":"-","italic":false,"color":"red"},{"text":" ","color":"green"},{"text":"Health","color":"gray"}]']            },            CanPlaceOn: ["minecraft:grass_block"]          }        }      },      {        maxUses: 999999,        rewardExp: 0b,        buy: {          id: "paper",          Count: 35        },        buyB: {          id: "gunpowder",          Count: 55        },        sell: {          id: "minecraft:ghast_spawn_egg",          Count: 1,          tag: {            EntityTag: {              ExplosionPower: 3,              CustomName: '[{"text":"Ghast ","color":"gray"},{"text":"3","color":"red"}]',              Health: 25,              PersistenceRequired: 1b,              Attributes: [                {                  Name: "generic.max_health",                  Base: 25f                }              ]            },            display: {              Name: '[{"text":"Ghast LVL 3","italic":false,"color":"white"}]',              Lore: ['[{"text":"++","italic":false,"color":"green"},{"text":" "},{"text":"ExplosionPower","color":"gray"},{"text":"","color":"dark_purple"}]', '[{"text":"+","italic":false,"color":"green"},{"text":" "},{"text":"Health","color":"gray"}]']            },            CanPlaceOn: ["minecraft:grass_block"]          }        }      }    ]  }}

execute as @r at @s if score level settings matches 1 if block 166 65 186 minecraft:soul_torch if score ebone torch matches ..1 run kill @e[tag=ebone]
execute as @r at @s if score level settings matches 1 if block 166 65 186 minecraft:soul_torch if score ebone torch matches ..1 run summon minecraft:villager 168 64 158 {    VillagerData: {        type: "plains",        profession: "shepherd",        level: 99    },    Invulnerable: 1b,    Silent: 1,    Tags: ["ebone"],    Offers: {        Recipes: [            {                maxUses: 999999,                rewardExp: 0b,                buy: { id: "paper", Count: 6 },                buyB: { id: "bone", Count: 3 },                sell: {           id: "skeleton_spawn_egg",           Count: 1,           tag: {             EntityTag: {               CustomName: '{"text":"Skeleton LVL 1","italic":false,"color":"white"}',               Health: 20,               PersistenceRequired: 1b,               Attributes: [                 {                   Name: "generic.max_health",                   Base: 20f                 }               ]             },             display: {               Name: '{"text":"Skeleton LVL 1","italic":false,"color":"white"}',               Lore: ['{"text":"- Regular","italic":false,"color":"gray"}']             },             CanPlaceOn: ["minecraft:grass_block"]           }         }       },      {                maxUses: 999999,                rewardExp: 0b,                buy: { id: "paper", Count: 10 },                buyB: { id: "bone", Count: 6 },                sell: {           id: "skeleton_spawn_egg",           Count: 1,           tag: {             EntityTag: {               CustomName: '[{"text":"Skeleton ","color":"gray"},{"text":"2","color":"red"}]',               Health: 20,               PersistenceRequired: 1b,               ArmorItems: [                { id: "leather_boots", Count: 1 },                { id: "leather_leggings", Count: 1 },                { id: "leather_chestplate", Count: 1 },                { id: "leather_helmet", Count: 1 }              ],              ArmorDropChances: [0f, 0f, 0f, 0f],              Attributes: [                { Name: "generic.max_health", Base: 20f }              ]             },             display: {               Name: '[{"text":"Skeleton LVL 2","italic":false,"color":"white"}]',               Lore: ['[{"text":"+ ","italic":false,"color":"green"},{"text":"Leather Armor","color":"gray"}]']             },             CanPlaceOn: ["minecraft:grass_block"]           }         }       }      ]    }}
execute as @r at @s if score level settings matches 1 if block 166 65 186 minecraft:soul_torch if score ebone torch matches ..1 run summon minecraft:villager 158 64 166 {    VillagerData: {        type: "plains",        profession: "shepherd",        level: 99    },    Invulnerable: 1b,    Silent: 1b,    Tags: ["ebone"],    Offers: {        Recipes: [            {                maxUses: 999999,                rewardExp: 0b,                buy: {                    id: "minecraft:paper",                    Count: 14                },                buyB: {                    id: "minecraft:bone",                    Count: 10                },                sell: {                    id: "minecraft:witch_spawn_egg",                    Count: 1b,                    tag: {                        EntityTag: {                            CustomName: '{"text":"Witch ","color":"dark_purple","extra":[{"text":"1","color":"red"}]}',                            Health: 26,                            PersistenceRequired: 1b,                            Attributes: [                                {                                    Name: "generic.max_health",                                    Base: 20f                                }                            ]                        },                        display: {                            Name: '{"text":"Witch LVL 1","italic":false,"color":"dark_purple"}',                            Lore: ['{"text":"- Regular","italic":false,"color":"gray"}']},                            CanPlaceOn: ["minecraft:grass_block"]                                            }                }            },            {                maxUses: 999999,                rewardExp: 0b,                buy: {                    id: "minecraft:paper",                    Count: 20                },                buyB: {                    id: "minecraft:bone",                    Count: 15                },                sell: {                    id: "minecraft:witch_spawn_egg",                    Count: 1b,                    tag: {                        EntityTag: {                            CustomName: '[{"text":"Witch ","color":"dark_purple"},{"text":"2","color":"red"}]',                            Health: 32,                            PersistenceRequired: 1b,                            Attributes: [                                {                                    Name: "generic.max_health",                                    Base: 32f                                }                            ]                        },                        display: {                            Name: '[{"text":"Witch LVL 2","italic":false,"color":"dark_purple"}]',                            Lore: ['[{"text":"+ ","italic":false,"color":"green"},{"text":"Health ","color":"gray"}]']                        },                            CanPlaceOn: ["minecraft:grass_block"]                    }                }            }        ]    }}
execute as @r at @s if score level settings matches 1 if block 164 65 186 minecraft:soul_torch if score ebone torch matches ..2 run kill @e[tag=ebone]
execute as @r at @s if score level settings matches 1 if block 164 65 186 minecraft:soul_torch if score ebone torch matches ..2 run summon minecraft:villager 168 64 158 {    VillagerData: {        type: "plains",        profession: "shepherd",        level: 99    },    Invulnerable: 1b,    Silent: 1,    Tags: ["ebone"],    Offers: {        Recipes: [            {                maxUses: 999999,                rewardExp: 0b,                buy: { id: "paper", Count: 6 },                buyB: { id: "bone", Count: 3 },                sell: {           id: "skeleton_spawn_egg",           Count: 1,           tag: {             EntityTag: {               CustomName: '{"text":"Skeleton LVL 1","italic":false,"color":"white"}',               Health: 20,               PersistenceRequired: 1b,               Attributes: [                 {                   Name: "generic.max_health",                   Base: 20f                 }               ]             },             display: {               Name: '{"text":"Skeleton LVL 1","italic":false,"color":"white"}',               Lore: ['{"text":"- Regular","italic":false,"color":"gray"}']             },             CanPlaceOn: ["minecraft:grass_block"]           }         }       },      {                maxUses: 999999,                rewardExp: 0b,                buy: { id: "paper", Count: 10 },                buyB: { id: "bone", Count: 6 },                sell: {           id: "skeleton_spawn_egg",           Count: 1,           tag: {             EntityTag: {               CustomName: '[{"text":"Skeleton ","color":"gray"},{"text":"2","color":"red"}]',               Health: 20,               PersistenceRequired: 1b,               ArmorItems: [                { id: "leather_boots", Count: 1 },                { id: "leather_leggings", Count: 1 },                { id: "leather_chestplate", Count: 1 },                { id: "leather_helmet", Count: 1 }              ],              ArmorDropChances: [0f, 0f, 0f, 0f],              Attributes: [                { Name: "generic.max_health", Base: 20f }              ]             },             display: {               Name: '[{"text":"Skeleton LVL 2","italic":false,"color":"white"}]',               Lore: ['[{"text":"+ ","italic":false,"color":"green"},{"text":"Leather Armor","color":"gray"}]']             },             CanPlaceOn: ["minecraft:grass_block"]           }         }       },      {                maxUses: 999999,                rewardExp: 0b,                buy: { id: "paper", Count: 20 },                buyB: { id: "bone", Count: 12 },                sell: {           id: "skeleton_spawn_egg",           Count: 1,           tag: {             EntityTag: {               CustomName: '[{"text":"Skeleton ","color":"gray"},{"text":"3","color":"red"}]',               Health: 20,               PersistenceRequired: 1b,               HandItems: [                { id: "bow", Count: 1, tag: { Enchantments: [{ id: "minecraft:power", lvl: 1 }] } }              ],              ArmorItems: [                { id: "iron_boots", Count: 1 },                { id: "iron_leggings", Count: 1 },                { id: "iron_chestplate", Count: 1 },                { id: "iron_helmet", Count: 1 }              ],              HandDropChances: [0f],              ArmorDropChances: [0f, 0f, 0f, 0f],              Attributes: [                { Name: "generic.max_health", Base: 20f }              ]             },             display: {               Name: '[{"text":"Skeleton LVL 3","italic":false,"color":"white"}]',               Lore: [                '[{"text":"+ ","italic":false,"color":"green"},{"text":"Iron Armor","color":"gray"},{"text":"","color":"dark_purple"}]',                '[{"text":"+ ","italic":false,"color":"green"},{"text":"Power 1","color":"gray"}]'              ]             },             CanPlaceOn: ["minecraft:grass_block"]           }         }       }      ]    }}
execute as @r at @s if score level settings matches 1 if block 164 65 186 minecraft:soul_torch if score ebone torch matches ..2 run summon minecraft:villager 158 64 166 {    VillagerData: {        type: "plains",        profession: "shepherd",        level: 99    },    Invulnerable: 1b,    Silent: 1b,    Tags: ["ebone"],    Offers: {        Recipes: [            {                maxUses: 999999,                rewardExp: 0b,                buy: {                    id: "minecraft:paper",                    Count: 14                },                buyB: {                    id: "minecraft:bone",                    Count: 10                },                sell: {                    id: "minecraft:witch_spawn_egg",                    Count: 1b,                    tag: {                        EntityTag: {                            CustomName: '{"text":"Witch ","color":"dark_purple","extra":[{"text":"1","color":"red"}]}',                            Health: 26,                            PersistenceRequired: 1b,                            Attributes: [                                {                                    Name: "generic.max_health",                                    Base: 20f                                }                            ]                        },                        display: {                            Name: '{"text":"Witch LVL 1","italic":false,"color":"dark_purple"}',                            Lore: ['{"text":"- Regular","italic":false,"color":"gray"}']},                            CanPlaceOn: ["minecraft:grass_block"]                                           }                }            },            {                maxUses: 999999,                rewardExp: 0b,                buy: {                    id: "minecraft:paper",                    Count: 20                },                buyB: {                    id: "minecraft:bone",                    Count: 15                },                sell: {                    id: "minecraft:witch_spawn_egg",                    Count: 1b,                    tag: {                        EntityTag: {                            CustomName: '[{"text":"Witch ","color":"dark_purple"},{"text":"2","color":"red"}]',                            Health: 32,                            PersistenceRequired: 1b,                            Attributes: [                                {                                    Name: "generic.max_health",                                    Base: 32f                                }                            ]                        },                        display: {                            Name: '[{"text":"Witch LVL 2","italic":false,"color":"dark_purple"}]',                            Lore: ['[{"text":"+ ","italic":false,"color":"green"},{"text":"Health ","color":"gray"}]']},                            CanPlaceOn: ["minecraft:grass_block"]                                           }                }            },            {                maxUses: 999999,                rewardExp: 0b,                buy: {                    id: "minecraft:paper",                    Count: 40                },                buyB: {                    id: "minecraft:bone",                    Count: 30                },                sell: {                    id: "minecraft:witch_spawn_egg",                    Count: 1b,                    tag: {                        EntityTag: {                            CustomName: '[{"text":"Witch ","color":"dark_purple"},{"text":"3","color":"red"}]',                            Health: 40,                            PersistenceRequired: 1b,                            Attributes: [                                {                                    Name: "generic.max_health",                                    Base: 40f                                }                            ]                        },                        display: {                            Name: '[{"text":"Witch LVL 3","italic":false,"color":"dark_purple"}]',                            Lore: ['[{"text":"++ ","italic":false,"color":"green"},{"text":"Health ","color":"gray"}]']},                            CanPlaceOn: ["minecraft:grass_block"]                                           }                }            }        ]    }}

execute as @r at @s if score level settings matches 1 if block 168 65 181 minecraft:soul_torch if score eeye torch matches ..1 run kill @e[type=!armor_stand,tag=eeye]
execute as @r at @s if score level settings matches 1 if block 168 65 181 minecraft:soul_torch if score eeye torch matches ..1 run summon minecraft:villager 168 64 162 {     VillagerData: {         type: "plains",         profession: "shepherd",         level: 99     },     Invulnerable: 1b,     Silent: 1,     Tags: ["eeye"],     Offers: {         Recipes: [             {                 maxUses: 999999,                 rewardExp: 0b,                 buy: {                     id: "paper",                     Count: 6                 },                 buyB: {                     id: "spider_eye",                     Count: 3                 },                 sell: {                     id: "minecraft:spider_spawn_egg",                     Count: 1,                     tag: {                         EntityTag: {                             CustomName: '[{"text":"SPIDER ","color":"dark_red"},{"text":"1","color":"red"}]',                             PersistenceRequired: 1b                         },                         display: {                             Name: '[{"text":"SPIDER LVL 1","italic":false,"color":"dark_red"}]',                             Lore: ['[{"text":"- Regular","italic":false,"color":"gray"}]']},                             CanPlaceOn: ["minecraft:grass_block"]                                              }                 }             },            {                 maxUses: 999999,                 rewardExp: 0b,                 buy: {                     id: "paper",                     Count: 8                 },                 buyB: {                     id: "spider_eye",                     Count: 5                 },                 sell: {                     id: "minecraft:spider_spawn_egg",                     Count: 1,                     tag: {                         EntityTag: {                             CustomName: '[{"text":"SPIDER ","color":"dark_red"},{"text":"2","color":"red"}]',                             PersistenceRequired: 1b,                             Attributes: [{Name:"generic.movement_speed",Base:0.4f}]                         },                         display: {                             Name: '[{"text":"SPIDER LVL 2","italic":false,"color":"dark_red"}]',                             Lore: ['[{"text":"+ ","italic":false,"color":"green"},{"text":"Faster","color":"gray"}]']} ,                             CanPlaceOn: ["minecraft:grass_block"]                                             }                 }             }        ]     }}
execute as @r at @s if score level settings matches 1 if block 168 65 181 minecraft:soul_torch if score eeye torch matches ..1 run summon minecraft:villager 168 64 166 {  VillagerData: {    type: "plains",    profession: "shepherd",    level: 99  },  Invulnerable: 1b,  Silent: 1,  Tags: ["eeye"],  Offers: {    Recipes: [      {        maxUses: 999999,        rewardExp: 0b,        buy: { id: "paper", Count: 8 },        buyB: { id: "spider_eye", Count: 5 },        sell: {          id: "minecraft:slime_spawn_egg",          Count: 1,          tag: {            EntityTag: {              Size: 2,              wasOnGround: 1,              CustomName: '[{"text":"SLIME ","color":"green"},{"text":"1","color":"red"}]',              PersistenceRequired: 1b            },            display: {              Name: '[{"text":"SLIME LVL 1","italic":false,"color":"green"}]',              Lore: ['[{"text":"- Regular","italic":false,"color":"gray"}]']            },CanPlaceOn:["minecraft:grass_block"]          }        }      },      {        maxUses: 999999,        rewardExp: 0b,        buy: { id: "paper", Count: 14 },        buyB: { id: "spider_eye", Count: 9 },        sell: {          id: "minecraft:slime_spawn_egg",          Count: 1,          tag: {            EntityTag: {              Size: 3,              wasOnGround: 1,              CustomName: '[{"text":"SLIME ","color":"green"},{"text":"2","color":"red"}]',              PersistenceRequired: 1b            },            display: {              Name: '[{"text":"SLIME LVL 2","italic":false,"color":"green"}]',              Lore: ['[{"text":"+ ","italic":false,"color":"green"},{"text":"Bigger","color":"gray"}]']            },CanPlaceOn:["minecraft:grass_block"]          }        }      }    ]  }}
execute as @r at @s if score level settings matches 1 if block 168 65 181 minecraft:soul_torch if score eeye torch matches ..1 run summon minecraft:villager 168 64 160 {VillagerData:{type:"plains",profession:"shepherd",level:99},Silent:1b,Invulnerable:1b,Tags:["eeye"],Offers:{Recipes:[    {maxUses:999999,rewardExp:0b,buy:{id:"paper",Count:8},buyB:{id:"spider_eye",Count:5},sell:{id:"minecraft:guardian_spawn_egg",Count:1,tag:{EntityTag:{CustomName:'[{"text":"GUARDIAN ","color":"dark_aqua"},{"text":"1","color":"red"}]',Health:15,PersistenceRequired:1b,Attributes:[{Name:"generic.max_health",Base:15f}]},display:{Name:'[{"text":"Guardian LVL 1","italic":false,"color":"dark_aqua"}]',Lore:['[{"text":"--","italic":false,"color":"red"},{"text":" Less Health","color":"gray"}]']},CanPlaceOn:["minecraft:grass_block"]}}},    {maxUses:999999,rewardExp:0b,buy:{id:"paper",Count:18},buyB:{id:"spider_eye",Count:12},sell:{id:"minecraft:guardian_spawn_egg",Count:1,tag:{EntityTag:{CustomName:'[{"text":"GUARDIAN ","color":"dark_aqua"},{"text":"2","color":"red"}]',Health:22,PersistenceRequired:1b,Attributes:[{Name:"generic.max_health",Base:22f}]},display:{Name:'[{"text":"Guardian LVL 2","italic":false,"color":"dark_aqua"}]',Lore:['[{"text":"-","italic":false,"color":"red"},{"text":" Less Health","color":"gray"}]']},CanPlaceOn:["minecraft:grass_block"]}}}]}}
execute as @r at @s if score level settings matches 1 if block 168 65 183 minecraft:soul_torch if score eeye torch matches ..2 run kill @e[type=!armor_stand,tag=eeye]
execute as @r at @s if score level settings matches 1 if block 168 65 183 minecraft:soul_torch if score eeye torch matches ..2 run summon minecraft:villager 168 64 162 {    VillagerData: {        type: "plains",        profession: "shepherd",        level: 99    },    Invulnerable: 1b,    Silent: 1,    Tags: ["eeye"],    Offers: {        Recipes: [            {                maxUses: 999999,                rewardExp: 0b,                buy: {                    id: "paper",                    Count: 6                },                buyB: {                    id: "spider_eye",                    Count: 3                },                sell: {                    id: "minecraft:spider_spawn_egg",                    Count: 1,                    tag: {                        EntityTag: {                            CustomName: '[{"text":"SPIDER ","color":"dark_red"},{"text":"1","color":"red"}]',                            PersistenceRequired: 1b                        },                        display: {                            Name: '[{"text":"SPIDER LVL 1","italic":false,"color":"dark_red"}]',                            Lore: ['[{"text":"- Regular","italic":false,"color":"gray"}]']},                            CanPlaceOn: ["minecraft:grass_block"]                                            }                }            },            {                maxUses: 999999,                rewardExp: 0b,                buy: {                    id: "paper",                    Count: 8                },                buyB: {                    id: "spider_eye",                    Count: 5                },                sell: {                    id: "minecraft:spider_spawn_egg",                    Count: 1,                    tag: {                        EntityTag: {                            CustomName: '[{"text":"SPIDER ","color":"dark_red"},{"text":"2","color":"red"}]',                            PersistenceRequired: 1b,                            Attributes: [{ Name: "generic.movement_speed", Base: 0.4f }]                        },                        display: {                            Name: '[{"text":"SPIDER LVL 2","italic":false,"color":"dark_red"}]',                            Lore: ['[{"text":"+ ","italic":false,"color":"green"},{"text":"Faster","color":"gray"}]']},                            CanPlaceOn: ["minecraft:grass_block"]                                           }                }            },            {                maxUses: 999999,                rewardExp: 0b,                buy: {                    id: "paper",                    Count: 15                },                buyB: {                    id: "spider_eye",                    Count: 10                },                sell: {                    id: "minecraft:spider_spawn_egg",                    Count: 1,                    tag: {                        EntityTag: {                            CustomName: '[{"text":"SPIDER ","color":"dark_red"},{"text":"3","color":"red"}]',                            PersistenceRequired: 1b,                            Attributes: [{ Name: "generic.movement_speed", Base: 0.5f }]                        },                        display: {                            Name: '[{"text":"SPIDER LVL 3","italic":false,"color":"dark_red"}]',                            Lore: ['[{"text":"++ ","italic":false,"color":"green"},{"text":"Faster","color":"gray"}]']},                            CanPlaceOn: ["minecraft:grass_block"]                                           }                }            }        ]    }}
execute as @r at @s if score level settings matches 1 if block 168 65 183 minecraft:soul_torch if score eeye torch matches ..2 run summon minecraft:villager 168 64 166 {  VillagerData: {    type: "plains",    profession: "shepherd",    level: 99  },  Invulnerable: 1b,  Silent: 1,  Tags: ["eeye"],  Offers: {    Recipes: [      {        maxUses: 999999,        rewardExp: 0b,        buy: { id: "paper", Count: 8 },        buyB: { id: "spider_eye", Count: 5 },        sell: {          id: "minecraft:slime_spawn_egg",          Count: 1,          tag: {            EntityTag: {              Size: 2,              wasOnGround: 1,              CustomName: '[{"text":"SLIME ","color":"green"},{"text":"1","color":"red"}]',              PersistenceRequired: 1b            },            display: {              Name: '[{"text":"SLIME LVL 1","italic":false,"color":"green"}]',              Lore: ['[{"text":"- Regular","italic":false,"color":"gray"}]']            }  ,CanPlaceOn:["minecraft:grass_block"]        }        }      },      {        maxUses: 999999,        rewardExp: 0b,        buy: { id: "paper", Count: 14 },        buyB: { id: "spider_eye", Count: 9 },        sell: {          id: "minecraft:slime_spawn_egg",          Count: 1,          tag: {            EntityTag: {              Size: 3,              wasOnGround: 1,              CustomName: '[{"text":"SLIME ","color":"green"},{"text":"2","color":"red"}]',              PersistenceRequired: 1b            },            display: {              Name: '[{"text":"SLIME LVL 2","italic":false,"color":"green"}]',              Lore: ['[{"text":"+ ","italic":false,"color":"green"},{"text":"Bigger","color":"gray"}]']            },CanPlaceOn:["minecraft:grass_block"]          }        }      },      {        maxUses: 999999,        rewardExp: 0b,        buy: { id: "paper", Count: 22 },        buyB: { id: "spider_eye", Count: 15 },        sell: {          id: "minecraft:slime_spawn_egg",          Count: 1,          tag: {            EntityTag: {              Size: 5,              wasOnGround: 1,              CustomName: '[{"text":"SLIME ","color":"green"},{"text":"3","color":"red"}]',              PersistenceRequired: 1b            },            display: {              Name: '[{"text":"SLIME LVL 3","italic":false,"color":"green"}]',              Lore: ['[{"text":"++ ","italic":false,"color":"green"},{"text":"Bigger","color":"gray"}]']            } ,CanPlaceOn:["minecraft:grass_block"]         }        }      }    ]  }}
execute as @r at @s if score level settings matches 1 if block 168 65 183 minecraft:soul_torch if score eeye torch matches ..2 run summon minecraft:villager 168 64 160 {VillagerData:{type:"plains",profession:"shepherd",level:99},Silent:1b,Invulnerable:1b,Tags:["eeye"],Offers:{Recipes:[    {maxUses:999999,rewardExp:0b,buy:{id:"paper",Count:8},buyB:{id:"spider_eye",Count:5},sell:{id:"minecraft:guardian_spawn_egg",Count:1,tag:{EntityTag:{CustomName:'[{"text":"GUARDIAN ","color":"dark_aqua"},{"text":"1","color":"red"}]',Health:15,PersistenceRequired:1b,Attributes:[{Name:"generic.max_health",Base:15f}]},display:{Name:'[{"text":"Guardian LVL 1","italic":false,"color":"dark_aqua"}]',Lore:['[{"text":"--","italic":false,"color":"red"},{"text":" Less Health","color":"gray"}]']},CanPlaceOn:["minecraft:grass_block"]}}},    {maxUses:999999,rewardExp:0b,buy:{id:"paper",Count:18},buyB:{id:"spider_eye",Count:12},sell:{id:"minecraft:guardian_spawn_egg",Count:1,tag:{EntityTag:{CustomName:'[{"text":"GUARDIAN ","color":"dark_aqua"},{"text":"2","color":"red"}]',Health:22,PersistenceRequired:1b,Attributes:[{Name:"generic.max_health",Base:22f}]},display:{Name:'[{"text":"Guardian LVL 2","italic":false,"color":"dark_aqua"}]',Lore:['[{"text":"-","italic":false,"color":"red"},{"text":" Less Health","color":"gray"}]']},CanPlaceOn:["minecraft:grass_block"]}}},    {maxUses:999999,rewardExp:0b,buy:{id:"paper",Count:28},buyB:{id:"spider_eye",Count:20},sell:{id:"minecraft:guardian_spawn_egg",Count:1,tag:{EntityTag:{CustomName:'[{"text":"GUARDIAN ","color":"dark_aqua"},{"text":"3","color":"red"}]',Health:30,PersistenceRequired:1b,Attributes:[{Name:"generic.max_health",Base:30f}]},display:{Name:'[{"text":"Guardian LVL 3","italic":false,"color":"dark_aqua"}]',Lore:['[{"text":"- Regular","italic":false,"color":"gray"}]']},CanPlaceOn:["minecraft:grass_block"]}}}]}}


#Upgrades room
execute as @a at @s if block 98 65 162 minecraft:soul_torch if score cmonster torch matches ..1 run fill 95 62 173 96 62 173 minecraft:redstone_torch
execute as @a at @s if block 98 65 162 minecraft:soul_torch if score cmonster torch matches ..1 run fill 96 65 161 96 65 161 air
execute as @a at @s if block 96 65 162 minecraft:soul_torch if score cmonster torch matches ..2 run fill 94 62 169 95 62 169 minecraft:redstone_torch


execute as @a at @s if block 160 65 175 minecraft:soul_torch if score emonster torch matches ..1 run fill 163 62 164 162 62 164 minecraft:redstone_torch
execute as @a at @s if block 162 65 175 minecraft:soul_torch if score emonster torch matches ..2 run fill 164 62 168 163 62 168 minecraft:redstone_torch

execute as @a at @s if block 98 65 162 minecraft:soul_torch if score cmonster torch matches ..1 run playsound minecraft:entity.player.levelup ambient @s 95 65 157
execute as @r at @s if block 98 65 162 minecraft:soul_torch if score cmonster torch matches ..1 run function mi:between
execute as @r at @s if block 98 65 162 minecraft:soul_torch if score cmonster torch matches ..1 run tellraw @a ["",{"text":"CreeperCorp, now has Level ","color":"dark_green"},{"text":"2 ","bold":true,"color":"green"},{"text":"Monsters","color":"gold"},{"text":"!","color":"dark_green"}]
execute as @a at @s if block 96 65 162 minecraft:soul_torch if score cmonster torch matches ..2 run playsound minecraft:entity.player.levelup ambient @s 95 65 157
execute as @r at @s if block 96 65 162 minecraft:soul_torch if score cmonster torch matches ..2 run function mi:between
execute as @r at @s if block 96 65 162 minecraft:soul_torch if score cmonster torch matches ..2 run tellraw @a ["",{"text":"CreeperCorp, now has Level ","color":"dark_green"},{"text":"3 ","bold":true,"color":"green"},{"text":"Monsters","color":"gold"},{"text":"!","color":"dark_green"}]


execute as @a at @s if block 90 65 160 minecraft:soul_torch if score cgun torch matches ..1 run playsound minecraft:entity.player.levelup ambient @s 95 65 157
execute as @a at @s if block 90 65 160 minecraft:soul_torch if score cgun torch matches ..1 run fill 91 65 158 91 65 158 air
execute as @r at @s if block 90 65 160 minecraft:soul_torch if score cgun torch matches ..1 run function mi:between
execute as @r at @s if block 90 65 160 minecraft:soul_torch if score cgun torch matches ..1 run tellraw @a ["",{"text":"CreeperCorp ","color":"dark_green"},{"text":"Gunpowder Generator ","color":"gray"},{"text":"is now Level ","color":"dark_green"},{"text":"2","bold":true,"color":"green"},{"text":"!","color":"dark_green"}]
execute as @a at @s if block 90 65 158 minecraft:soul_torch if score cgun torch matches ..2 run playsound minecraft:entity.player.levelup ambient @s 95 65 157
execute as @r at @s if block 90 65 158 minecraft:soul_torch if score cgun torch matches ..2 run function mi:between
execute as @r at @s if block 90 65 158 minecraft:soul_torch if score cgun torch matches ..2 run tellraw @a ["",{"text":"CreeperCorp ","color":"dark_green"},{"text":"Gunpowder Generator ","color":"gray"},{"text":"is now Level ","color":"dark_green"},{"text":"3","bold":true,"color":"green"},{"text":"!","color":"dark_green"}]

execute as @a at @s if block 90 65 156 minecraft:soul_torch if score ceye torch matches ..1 run playsound minecraft:entity.player.levelup ambient @s 95 65 157
execute as @a at @s if block 90 65 156 minecraft:soul_torch if score ceye torch matches ..1 run fill 91 65 154 91 65 154 air
execute as @r at @s if block 90 65 156 minecraft:soul_torch if score ceye torch matches ..1 run function mi:between
execute as @r at @s if block 90 65 156 minecraft:soul_torch if score ceye torch matches ..1 run tellraw @a ["",{"text":"CreeperCorp ","color":"dark_green"},{"text":"Spider Eye Generator ","color":"dark_red"},{"text":"is now Level ","color":"dark_green"},{"text":"2","bold":true,"color":"green"},{"text":"!","color":"dark_green"}]
execute as @a at @s if block 90 65 154 minecraft:soul_torch if score ceye torch matches ..2 run playsound minecraft:entity.player.levelup ambient @s 95 65 157
execute as @r at @s if block 90 65 154 minecraft:soul_torch if score ceye torch matches ..2 run function mi:between
execute as @r at @s if block 90 65 154 minecraft:soul_torch if score ceye torch matches ..2 run tellraw @a ["",{"text":"CreeperCorp ","color":"dark_green"},{"text":"Spider Eye Generator ","color":"dark_red"},{"text":"is now Level ","color":"dark_green"},{"text":"3","bold":true,"color":"green"},{"text":"!","color":"dark_green"}]

execute as @a at @s if block 92 65 151 minecraft:soul_torch if score cbone torch matches ..1 run playsound minecraft:entity.player.levelup ambient @s 95 65 157
execute as @a at @s if block 92 65 151 minecraft:soul_torch if score cbone torch matches ..1 run fill 94 65 152 94 65 152 air
execute as @r at @s if block 92 65 151 minecraft:soul_torch if score cbone torch matches ..1 run function mi:between
execute as @r at @s if block 92 65 151 minecraft:soul_torch if score cbone torch matches ..1 run tellraw @a ["",{"text":"CreeperCorp ","color":"dark_green"},{"text":"Bone Generator ","color":"white"},{"text":"is now Level ","color":"dark_green"},{"text":"2","bold":true,"color":"green"},{"text":"!","color":"dark_green"}]
execute as @a at @s if block 94 65 151 minecraft:soul_torch if score cbone torch matches ..2 run playsound minecraft:entity.player.levelup ambient @s 95 65 157
execute as @r at @s if block 94 65 151 minecraft:soul_torch if score cbone torch matches ..2 run function mi:between
execute as @r at @s if block 94 65 151 minecraft:soul_torch if score cbone torch matches ..2 run tellraw @a ["",{"text":"CreeperCorp ","color":"dark_green"},{"text":"Bone Generator ","color":"white"},{"text":"is now Level ","color":"dark_green"},{"text":"3","bold":true,"color":"green"},{"text":"!","color":"dark_green"}]

execute as @a at @s if block 96 65 151 minecraft:soul_torch if score ccoal torch matches ..1 run playsound minecraft:entity.player.levelup ambient @s 95 65 157
execute as @a at @s if block 96 65 151 minecraft:soul_torch if score ccoal torch matches ..1 run fill 98 65 152 98 65 152 air
execute as @r at @s if block 96 65 151 minecraft:soul_torch if score ccoal torch matches ..1 run function mi:between
execute as @r at @s if block 96 65 151 minecraft:soul_torch if score ccoal torch matches ..1 run tellraw @a ["",{"text":"CreeperCorp ","color":"dark_green"},{"text":"Coal Generator ","color":"dark_gray"},{"text":"is now Level ","color":"dark_green"},{"text":"2","bold":true,"color":"green"},{"text":"!","color":"dark_green"}]
execute as @a at @s if block 98 65 151 minecraft:soul_torch if score ccoal torch matches ..2 run playsound minecraft:entity.player.levelup ambient @s 95 65 157
execute as @r at @s if block 98 65 151 minecraft:soul_torch if score ccoal torch matches ..2 run function mi:between
execute as @r at @s if block 98 65 151 minecraft:soul_torch if score ccoal torch matches ..2 run tellraw @a ["",{"text":"CreeperCorp ","color":"dark_green"},{"text":"Coal Generator ","color":"dark_gray"},{"text":"is now Level ","color":"dark_green"},{"text":"3","bold":true,"color":"green"},{"text":"!","color":"dark_green"}]


execute as @a at @s if block 160 65 175 minecraft:soul_torch if score emonster torch matches ..1 run playsound minecraft:entity.player.levelup ambient @s 163 65 180
execute as @a at @s if block 160 65 175 minecraft:soul_torch if score emonster torch matches ..1 run fill 162 65 176 162 65 176 air
execute as @r at @s if block 160 65 175 minecraft:soul_torch if score emonster torch matches ..1 run function mi:between
execute as @r at @s if block 160 65 175 minecraft:soul_torch if score emonster torch matches ..1 run tellraw @a ["",{"text":"EnderEnterprises, now has Level ","color":"dark_purple"},{"text":"2 ","bold":true,"color":"light_purple"},{"text":"Monsters","color":"gold"},{"text":"!","color":"dark_purple"}]
execute as @a at @s if block 162 65 175 minecraft:soul_torch if score emonster torch matches ..2 run playsound minecraft:entity.player.levelup ambient @s 163 65 180
execute as @r at @s if block 162 65 175 minecraft:soul_torch if score emonster torch matches ..2 run function mi:between
execute as @r at @s if block 162 65 175 minecraft:soul_torch if score emonster torch matches ..2 run tellraw @a ["",{"text":"EnderEnterprises, now has Level ","color":"dark_purple"},{"text":"3 ","bold":true,"color":"light_purple"},{"text":"Monsters","color":"gold"},{"text":"!","color":"dark_purple"}]

execute as @a at @s if block 168 65 177 minecraft:soul_torch if score egun torch matches ..1 run playsound minecraft:entity.player.levelup ambient @s 163 65 180
execute as @a at @s if block 168 65 177 minecraft:soul_torch if score egun torch matches ..1 run fill 167 65 179 167 65 179 air
execute as @r at @s if block 168 65 177 minecraft:soul_torch if score egun torch matches ..1 run function mi:between
execute as @r at @s if block 168 65 177 minecraft:soul_torch if score egun torch matches ..1 run tellraw @a ["",{"text":"EnderEnterprises ","color":"dark_purple"},{"text":"Gunpowder Generator ","color":"gray"},{"text":"is now Level ","color":"dark_purple"},{"text":"2","bold":true,"color":"light_purple"},{"text":"!","color":"dark_purple"}]
execute as @a at @s if block 168 65 179 minecraft:soul_torch if score egun torch matches ..2 run playsound minecraft:entity.player.levelup ambient @s 163 65 180
execute as @r at @s if block 168 65 179 minecraft:soul_torch if score egun torch matches ..2 run function mi:between
execute as @r at @s if block 168 65 179 minecraft:soul_torch if score egun torch matches ..2 run tellraw @a ["",{"text":"EnderEnterprises ","color":"dark_purple"},{"text":"Gunpowder Generator ","color":"gray"},{"text":"is now Level ","color":"dark_purple"},{"text":"3","bold":true,"color":"light_purple"},{"text":"!","color":"dark_purple"}]

execute as @a at @s if block 168 65 181 minecraft:soul_torch if score eeye torch matches ..1 run playsound minecraft:entity.player.levelup ambient @s 163 65 180
execute as @a at @s if block 168 65 181 minecraft:soul_torch if score eeye torch matches ..1 run fill 167 65 183 167 65 183 air
execute as @r at @s if block 168 65 181 minecraft:soul_torch if score eeye torch matches ..1 run function mi:between
execute as @r at @s if block 168 65 181 minecraft:soul_torch if score eeye torch matches ..1 run tellraw @a ["",{"text":"EnderEnterprises ","color":"dark_purple"},{"text":"Spider Eye Generator ","color":"dark_red"},{"text":"is now Level ","color":"dark_purple"},{"text":"2","bold":true,"color":"light_purple"},{"text":"!","color":"dark_purple"}]
execute as @a at @s if block 168 65 183 minecraft:soul_torch if score eeye torch matches ..2 run playsound minecraft:entity.player.levelup ambient @s 163 65 180
execute as @r at @s if block 168 65 183 minecraft:soul_torch if score eeye torch matches ..2 run function mi:between
execute as @r at @s if block 168 65 183 minecraft:soul_torch if score eeye torch matches ..2 run tellraw @a ["",{"text":"EnderEnterprises ","color":"dark_purple"},{"text":"Spider Eye Generator ","color":"dark_red"},{"text":"is now Level ","color":"dark_purple"},{"text":"3","bold":true,"color":"light_purple"},{"text":"!","color":"dark_purple"}]

execute as @a at @s if block 166 65 186 minecraft:soul_torch if score ebone torch matches ..1 run playsound minecraft:entity.player.levelup ambient @s 163 65 180
execute as @a at @s if block 166 65 186 minecraft:soul_torch if score ebone torch matches ..1 run fill 164 65 185 164 65 185 air
execute as @r at @s if block 166 65 186 minecraft:soul_torch if score ebone torch matches ..1 run function mi:between
execute as @r at @s if block 166 65 186 minecraft:soul_torch if score ebone torch matches ..1 run tellraw @a ["",{"text":"EnderEnterprises ","color":"dark_purple"},{"text":"Bone Generator ","color":"white"},{"text":"is now Level ","color":"dark_purple"},{"text":"2","bold":true,"color":"light_purple"},{"text":"!","color":"dark_purple"}]
execute as @a at @s if block 164 65 186 minecraft:soul_torch if score ebone torch matches ..2 run playsound minecraft:entity.player.levelup ambient @s 163 65 180
execute as @r at @s if block 164 65 186 minecraft:soul_torch if score ebone torch matches ..2 run function mi:between
execute as @r at @s if block 164 65 186 minecraft:soul_torch if score ebone torch matches ..2 run tellraw @a ["",{"text":"EnderEnterprises ","color":"dark_purple"},{"text":"Bone Generator ","color":"white"},{"text":"is now Level ","color":"dark_purple"},{"text":"3","bold":true,"color":"light_purple"},{"text":"!","color":"dark_purple"}]

execute as @a at @s if block 162 65 186 minecraft:soul_torch if score ecoal torch matches ..1 run playsound minecraft:entity.player.levelup ambient @s 163 65 180
execute as @a at @s if block 162 65 186 minecraft:soul_torch if score ecoal torch matches ..1 run fill 160 65 185 160 65 185 air
execute as @r at @s if block 162 65 186 minecraft:soul_torch if score ecoal torch matches ..1 run function mi:between
execute as @r at @s if block 162 65 186 minecraft:soul_torch if score ecoal torch matches ..1 run tellraw @a ["",{"text":"EnderEnterprises ","color":"dark_purple"},{"text":"Coal Generator ","color":"dark_gray"},{"text":"is now Level ","color":"dark_purple"},{"text":"2","bold":true,"color":"light_purple"},{"text":"!","color":"dark_purple"}]
execute as @a at @s if block 160 65 186 minecraft:soul_torch if score ecoal torch matches ..2 run playsound minecraft:entity.player.levelup ambient @s 163 65 180
execute as @r at @s if block 160 65 186 minecraft:soul_torch if score ecoal torch matches ..2 run function mi:between
execute as @r at @s if block 160 65 186 minecraft:soul_torch if score ecoal torch matches ..2 run tellraw @a ["",{"text":"EnderEnterprises ","color":"dark_purple"},{"text":"Coal Generator ","color":"dark_gray"},{"text":"is now Level ","color":"dark_purple"},{"text":"3","bold":true,"color":"light_purple"},{"text":"!","color":"dark_purple"}]


execute as @a at @s if block 98 65 162 minecraft:soul_torch if score cmonster torch matches ..1 run fill 96 65 162 96 65 162 air
execute as @a at @s if block 98 65 162 minecraft:soul_torch if score cmonster torch matches ..1 run scoreboard players set cmonster torch 2
execute as @a at @s if block 96 65 162 minecraft:soul_torch if score cmonster torch matches ..2 run scoreboard players set cmonster torch 3

execute as @a at @s if block 90 65 160 minecraft:soul_torch if score cgun torch matches ..1 run fill 90 65 158 90 65 158 air
execute as @a at @s if block 90 65 160 minecraft:soul_torch if score cgun torch matches ..1 run scoreboard players set cgun torch 2
execute as @a at @s if block 90 65 158 minecraft:soul_torch if score cgun torch matches ..2 run scoreboard players set cgun torch 3

execute as @a at @s if block 90 65 156 minecraft:soul_torch if score ceye torch matches ..1 run fill 90 65 154 90 65 154 air
execute as @a at @s if block 90 65 156 minecraft:soul_torch if score ceye torch matches ..1 run scoreboard players set ceye torch 2
execute as @a at @s if block 90 65 154 minecraft:soul_torch if score ceye torch matches ..2 run scoreboard players set ceye torch 3

execute as @a at @s if block 92 65 151 minecraft:soul_torch if score cbone torch matches ..1 run fill 94 65 151 94 65 151 air
execute as @a at @s if block 92 65 151 minecraft:soul_torch if score cbone torch matches ..1 run scoreboard players set cbone torch 2
execute as @a at @s if block 94 65 151 minecraft:soul_torch if score cbone torch matches ..2 run scoreboard players set cbone torch 3

execute as @a at @s if block 96 65 151 minecraft:soul_torch if score ccoal torch matches ..1 run fill 98 65 151 98 65 151 air
execute as @a at @s if block 96 65 151 minecraft:soul_torch if score ccoal torch matches ..1 run scoreboard players set ccoal torch 2
execute as @a at @s if block 98 65 151 minecraft:soul_torch if score ccoal torch matches ..2 run scoreboard players set ccoal torch 3


execute as @a at @s if block 160 65 175 minecraft:soul_torch if score emonster torch matches ..1 run fill 162 65 175 162 65 175 air
execute as @a at @s if block 160 65 175 minecraft:soul_torch if score emonster torch matches ..1 run scoreboard players set emonster torch 2
execute as @a at @s if block 162 65 175 minecraft:soul_torch if score emonster torch matches ..2 run scoreboard players set emonster torch 3

execute as @a at @s if block 168 65 177 minecraft:soul_torch if score egun torch matches ..1 run fill 168 65 179 168 65 179 air
execute as @a at @s if block 168 65 177 minecraft:soul_torch if score egun torch matches ..1 run scoreboard players set egun torch 2
execute as @a at @s if block 168 65 179 minecraft:soul_torch if score egun torch matches ..2 run scoreboard players set egun torch 3

execute as @a at @s if block 168 65 181 minecraft:soul_torch if score eeye torch matches ..1 run fill 168 65 183 168 65 183 air
execute as @a at @s if block 168 65 181 minecraft:soul_torch if score eeye torch matches ..1 run scoreboard players set eeye torch 2
execute as @a at @s if block 168 65 183 minecraft:soul_torch if score eeye torch matches ..2 run scoreboard players set eeye torch 3

execute as @a at @s if block 166 65 186 minecraft:soul_torch if score ebone torch matches ..1 run fill 164 65 186 164 65 186 air
execute as @a at @s if block 166 65 186 minecraft:soul_torch if score ebone torch matches ..1 run scoreboard players set ebone torch 2
execute as @a at @s if block 164 65 186 minecraft:soul_torch if score ebone torch matches ..2 run scoreboard players set ebone torch 3


execute as @a at @s if block 162 65 186 minecraft:soul_torch if score ecoal torch matches ..1 run fill 160 65 186 160 65 186 air
execute as @a at @s if block 162 65 186 minecraft:soul_torch if score ecoal torch matches ..1 run scoreboard players set ecoal torch 2
execute as @a at @s if block 160 65 186 minecraft:soul_torch if score ecoal torch matches ..2 run scoreboard players set ecoal torch 3


#Tasks
execute as @a at @s if block ~ ~-2 ~ minecraft:coarse_dirt run function mi:task/cgun
execute as @a at @s if block ~ ~-3 ~ minecraft:mangrove_roots run function mi:task/ceye
fill 118 65 138 118 65 138 minecraft:tripwire_hook[facing=east]
execute as @e[type=!player] at @s if block ~ ~-2 ~ spruce_wood run tp @s 138 64 192
execute as @e[type=!player] at @s if block ~ ~-2 ~ acacia_planks run tp @s 144 64 192

execute if block 120 65 199 minecraft:stone_pressure_plate[powered=false] run fill 120 66 202 120 66 202 air
execute if block 120 65 199 minecraft:stone_pressure_plate[powered=true] run scoreboard players add ccoal task 1
execute if block 120 65 199 minecraft:stone_pressure_plate[powered=false] run scoreboard players set ccoal task 0
execute at @e[type=armor_stand,tag=cc] as @p if score ccoal task matches 1 run function mi:task/ccoal

execute if block 114 67 200 minecraft:lever[powered=true] run scoreboard players add cbone task 1
execute if block 114 67 200 minecraft:lever[powered=false] run scoreboard players set cbone task 0
execute at @e[type=armor_stand,tag=cbonee] as @p if score cbone task matches 1 run function mi:task/cbone



execute as @a at @s if block ~ ~-2 ~ minecraft:acacia_planks run function mi:task/egun
execute as @a at @s if block ~ ~-3 ~ minecraft:mangrove_leaves run function mi:task/eeye
fill 140 65 199 140 65 199 minecraft:tripwire_hook[facing=west]
execute as @e[type=!player] at @s if block ~ ~-2 ~ birch_wood run tp @s 120 64 145
execute as @e[type=!player] at @s if block ~ ~-2 ~ coarse_dirt run tp @s 114 64 145

execute if block 138 65 139 minecraft:stone_pressure_plate[powered=false] run fill 138 66 136 138 66 136 air
execute if block 138 65 139 minecraft:stone_pressure_plate[powered=true] run scoreboard players add ecoal task 1
execute if block 138 65 139 minecraft:stone_pressure_plate[powered=false] run scoreboard players set ecoal task 0
execute at @e[type=armor_stand,tag=ec] as @p if score ecoal task matches 1 run function mi:task/ecoal

execute if block 144 67 137 minecraft:lever[powered=true] run scoreboard players add ebone task 1
execute if block 144 67 137 minecraft:lever[powered=false] run scoreboard players set ebone task 0
execute at @e[type=armor_stand,tag=ebonee] as @p if score ebone task matches 1 run function mi:task/ebone



#gate
execute if block 132 7 444 lever[powered=true] if score gate gate matches 0 run function mi:gate/gate1
execute if block 132 7 444 lever[powered=false] if score gate gate matches 1 run function mi:gate/gate4
fill 132 6 444 132 6 444 minecraft:oak_fence_gate[facing=west]


#Teleporting system
execute as @a at @s if block ~ ~-2 ~ acacia_wood run tp @s 129 33 168
execute as @a at @s if block ~ ~-2 ~ carved_pumpkin run tp @s 130.00 86.00 168.00

#Death
execute as @a[team=Creeper] if score @s Death matches 1 if score game settings matches 1 run function mi:cdeath
execute as @a[team=Enderman] if score @s Death matches 1 if score game settings matches 1 run function mi:edeath

#Pressureplate paper
execute if block 140 64 175 minecraft:stone_pressure_plate[powered=true] run scoreboard players add e1 press 1
execute if block 140 64 175 minecraft:stone_pressure_plate[powered=false] run scoreboard players set e1 press 0

execute if block 140 64 171 minecraft:stone_pressure_plate[powered=true] run scoreboard players add e2 press 1
execute if block 140 64 171 minecraft:stone_pressure_plate[powered=false] run scoreboard players set e2 press 0

execute if block 140 64 166 minecraft:stone_pressure_plate[powered=true] run scoreboard players add e3 press 1
execute if block 140 64 166 minecraft:stone_pressure_plate[powered=false] run scoreboard players set e3 press 0

execute if block 140 64 162 minecraft:stone_pressure_plate[powered=true] run scoreboard players add e4 press 1
execute if block 140 64 162 minecraft:stone_pressure_plate[powered=false] run scoreboard players set e4 press 0


execute if block 118 64 162 minecraft:stone_pressure_plate[powered=true] run scoreboard players add c1 press 1
execute if block 118 64 162 minecraft:stone_pressure_plate[powered=false] run scoreboard players set c1 press 0

execute if block 118 64 166 minecraft:stone_pressure_plate[powered=true] run scoreboard players add c2 press 1
execute if block 118 64 166 minecraft:stone_pressure_plate[powered=false] run scoreboard players set c2 press 0

execute if block 118 64 171 minecraft:stone_pressure_plate[powered=true] run scoreboard players add c3 press 1
execute if block 118 64 171 minecraft:stone_pressure_plate[powered=false] run scoreboard players set c3 press 0

execute if block 118 64 175 minecraft:stone_pressure_plate[powered=true] run scoreboard players add c4 press 1
execute if block 118 64 175 minecraft:stone_pressure_plate[powered=false] run scoreboard players set c4 press 0


execute at @e[type=armor_stand,tag=e1] as @p if score e1 press matches 1 run function mi:paper/e1
execute at @e[type=armor_stand,tag=e2] as @p if score e2 press matches 1 run function mi:paper/e1
execute at @e[type=armor_stand,tag=e3] as @p if score e3 press matches 1 run function mi:paper/e1
execute at @e[type=armor_stand,tag=e4] as @p if score e4 press matches 1 run function mi:paper/e1


execute at @e[type=armor_stand,tag=c1] as @p if score c1 press matches 1 run function mi:paper/e1
execute at @e[type=armor_stand,tag=c2] as @p if score c2 press matches 1 run function mi:paper/e1
execute at @e[type=armor_stand,tag=c3] as @p if score c3 press matches 1 run function mi:paper/e1
execute at @e[type=armor_stand,tag=c4] as @p if score c4 press matches 1 run function mi:paper/e1


#Slaves Pressureplates
execute if block 151 62 139 minecraft:stone_pressure_plate[powered=true] run scoreboard players add e1 pressSlave 1
execute if block 151 62 139 minecraft:stone_pressure_plate[powered=false] run scoreboard players set e1 pressSlave 0

execute if block 152 62 139 minecraft:stone_pressure_plate[powered=true] run scoreboard players add e2 pressSlave 1
execute if block 152 62 139 minecraft:stone_pressure_plate[powered=false] run scoreboard players set e2 pressSlave 0

execute if block 153 62 139 minecraft:stone_pressure_plate[powered=true] run scoreboard players add e3 pressSlave 1
execute if block 153 62 139 minecraft:stone_pressure_plate[powered=false] run scoreboard players set e3 pressSlave 0

execute if block 154 62 139 minecraft:stone_pressure_plate[powered=true] run scoreboard players add e4 pressSlave 1
execute if block 154 62 139 minecraft:stone_pressure_plate[powered=false] run scoreboard players set e4 pressSlave 0

execute if block 155 62 139 minecraft:stone_pressure_plate[powered=true] run scoreboard players add e5 pressSlave 1
execute if block 155 62 139 minecraft:stone_pressure_plate[powered=false] run scoreboard players set e5 pressSlave 0


execute if block 107 62 198 minecraft:stone_pressure_plate[powered=true] run scoreboard players add c1 pressSlave 1
execute if block 107 62 198 minecraft:stone_pressure_plate[powered=false] run scoreboard players set c1 pressSlave 0

execute if block 106 62 198 minecraft:stone_pressure_plate[powered=true] run scoreboard players add c2 pressSlave 1
execute if block 106 62 198 minecraft:stone_pressure_plate[powered=false] run scoreboard players set c2 pressSlave 0

execute if block 105 62 198 minecraft:stone_pressure_plate[powered=true] run scoreboard players add c3 pressSlave 1
execute if block 105 62 198 minecraft:stone_pressure_plate[powered=false] run scoreboard players set c3 pressSlave 0

execute if block 104 62 198 minecraft:stone_pressure_plate[powered=true] run scoreboard players add c4 pressSlave 1
execute if block 104 62 198 minecraft:stone_pressure_plate[powered=false] run scoreboard players set c4 pressSlave 0

execute if block 103 62 198 minecraft:stone_pressure_plate[powered=true] run scoreboard players add c5 pressSlave 1
execute if block 103 62 198 minecraft:stone_pressure_plate[powered=false] run scoreboard players set c5 pressSlave 0

execute if score e1 pressSlave matches 1 run effect give @e[tag=Crep] minecraft:levitation 1 2 true

execute if score e1 pressSlave matches 1 run summon item 138 66 169.5 {Item:{id:"minecraft:paper",Count:1b}}
execute if score e2 pressSlave matches 1 run summon item 138 66 168.5 {Item:{id:"minecraft:paper",Count:1b}}
execute if score e3 pressSlave matches 1 run summon item 138 66 169.5 {Item:{id:"minecraft:paper",Count:1b}}
execute if score e4 pressSlave matches 1 run summon item 138 66 168.5 {Item:{id:"minecraft:paper",Count:1b}}
execute if score e5 pressSlave matches 1 run summon item 138 66 168.5 {Item:{id:"minecraft:paper",Count:1b}}


execute if score c1 pressSlave matches 1 run effect give @e[tag=z] minecraft:levitation 1 2 true

execute if score c1 pressSlave matches 1 run summon item 120 66 168.5 {Item:{id:"minecraft:paper",Count:1b}}
execute if score c2 pressSlave matches 1 run summon item 120 66 169.5 {Item:{id:"minecraft:paper",Count:1b}}
execute if score c3 pressSlave matches 1 run summon item 120 66 168.5 {Item:{id:"minecraft:paper",Count:1b}}
execute if score c4 pressSlave matches 1 run summon item 120 66 169.5 {Item:{id:"minecraft:paper",Count:1b}}
execute if score c5 pressSlave matches 1 run summon item 120 66 169.5 {Item:{id:"minecraft:paper",Count:1b}}
