
reload

gamemode adventure @a[team=Creeper]
gamemode adventure @a[team=Enderman]
gamemode spectator @a[team=!Creeper,team=!Enderman]

#Game on
scoreboard players set game settings 1
scoreboard objectives setdisplay sidebar Stock_Values


team join Creeper CreeperCorp
team join Enderman EnderEnterprises

clear @a
effect clear @a
effect give @a blindness 3 100 true
effect give @a slowness 3 100 true
effect give @a jump_boost 3 150 true
effect give @a saturation 1 100 true
effect give @a instant_health 1 100 true
kill @e[type=cat]
xp set @a 0
xp set @a 0 levels

schedule function mi:c/3 1s

#Reset hoppers
fill 120 65 168 120 65 169 hopper
fill 138 65 169 138 65 168 hopper

#Sign settings
execute as @a at @s if score gentle settings matches 1 if score difficulty settings matches 1 run clone 98 74 168 98 74 168 102 71 169
execute as @a at @s if score gentle settings matches 1 if score difficulty settings matches 2 run clone 98 74 167 98 74 167 102 71 169
execute as @a at @s if score gentle settings matches 1 if score difficulty settings matches 3 run clone 98 74 166 98 74 166 102 71 169
execute if score gentle settings matches 0 run fill 102 71 169 102 71 169 air

execute as @a at @s if score gentle settings matches 1 if score difficulty settings matches 1 run clone 160 74 169 160 74 169 156 71 168
execute as @a at @s if score gentle settings matches 1 if score difficulty settings matches 2 run clone 160 74 170 160 74 170 156 71 168
execute as @a at @s if score gentle settings matches 1 if score difficulty settings matches 3 run clone 160 74 171 160 74 171 156 71 168
execute if score gentle settings matches 0 run fill 156 71 168 156 71 168 air




#death reseets
scoreboard players set @a Death 0

#remove item
kill @e[type=item]

#summon villers
kill @e[type=minecraft:villager]

#CreeperCorp
#torch
summon minecraft:villager 93 64 163 {VillagerData:{type:"plains",profession:"farmer",level:99},Invulnerable:1b,Silent:1,Offers:{Recipes:[{maxUses:10,buy:{id:"paper",Count:64},sell:{id:"minecraft:soul_torch",Count:1,tag:{HideFlags:16,CanPlaceOn:["minecraft:red_concrete","minecraft:light_gray_concrete","minecraft:light_gray_terracotta","minecraft:white_concrete","minecraft:coal_block"]}}}]}}

#food and potions
summon minecraft:villager 100 64 179 {VillagerData:{profession:"farmer",level:99,type:"plains"},Invulnerable:1b,Silent:1b,Offers:{Recipes:[{buy:{id:"paper",Count:3},sell:{id:"cooked_beef",Count:1},maxUses:100},{buy:{id:"paper",Count:32},sell:{id:"golden_apple",Count:1},maxUses:100}]}}
summon minecraft:villager 100 64 177 {    VillagerData: {        type: "plains",        profession: "shepherd",        level: 99    },    Silent: 1,    Invulnerable: 1,    Tags: ["ccoal"],    Offers: {        Recipes: [            {                maxUses: 999999,                rewardExp: 0b,                buy: { id: "minecraft:paper", Count: 64 },buyB: { id: "minecraft:paper", Count: 32 },                sell: {                    id: "minecraft:potion",                    Count: 1,                    tag: {                        CustomPotionEffects: [                            { Id: 5, Amplifier: 4, Duration: 160, ShowParticles: 0b },                            { Id: 22, Amplifier: 1, Duration: 160, ShowParticles: 0b }                        ],                        CustomPotionColor: 9634038,                        display: {                            Name: '{"text":"HerculeanDraft","color":"#800080","bold":true}',                            Lore: [                                '{"text":"Herculean pulse awakens, elixir\'s fleeting strength embraced with glee.","color":"red"}',                                '{"text":"Duration: 10 seconds","color":"gray"}'                            ]                        },                        HideFlags: 63                    }                }            },            {                maxUses: 999999,                rewardExp: 0b,                buy: { id: "minecraft:paper", Count: 32 },                sell: {                    id: "minecraft:splash_potion",                    Count: 1,                    tag: {                        CustomPotionEffects: [                            { Id: 1, Duration: 1200, ShowParticles: 0b },                            { Id: 30, Duration: 1200, ShowParticles: 0b }                        ],                        CustomPotionColor: 4063193,                        display: {                            Name: '{"text":"","extra":[{"text":"Lightning","color":"yellow","bold":true},{"text":"Speed","color":"gold","bold":true}]}',                            Lore: [                                '{"text":"Bolting through time and space, the elixir bestows lightning\'s swiftness upon you.","color":"red"}',                                '{"text":"Duration: 60 seconds","color":"gray"}'                            ]                        },                        HideFlags: 63                    }                }            }        ]    }}

#armour
summon minecraft:villager 97 64 186 {VillagerData:{profession:"armorer",level:99,type:"plains"},Invulnerable:1b,Silent:1,Offers:{Recipes:[{buy:{id:"paper",Count:7},sell:{id:"leather_helmet",Count:1},maxUses:100},{buy:{id:"paper",Count:17},sell:{id:"leather_chestplate",Count:1},maxUses:100},{buy:{id:"paper",Count:12},sell:{id:"leather_leggings",Count:1},maxUses:100},{buy:{id:"paper",Count:6},sell:{id:"leather_boots",Count:1},maxUses:100}]}}
summon minecraft:villager 95 64 186 {VillagerData:{profession:"armorer",level:99,type:"plains"},Invulnerable:1b,Silent:1,Offers:{Recipes:[{buy:{id:"paper",Count:14},sell:{id:"iron_helmet",Count:1},maxUses:100},{buy:{id:"paper",Count:36},sell:{id:"iron_chestplate",Count:1},maxUses:100},{buy:{id:"paper",Count:30},sell:{id:"iron_leggings",Count:1},maxUses:100},{buy:{id:"paper",Count:13},sell:{id:"iron_boots",Count:1},maxUses:100}]}}

#weapon
summon minecraft:villager 93 64 186 {VillagerData:{profession:"weaponsmith",level:99,type:"plains"},Invulnerable:1b,Silent:1,Offers:{Recipes:[{buy:{id:"paper",Count:10},sell:{id:"wooden_sword",Count:1},maxUses:100},{buy:{id:"paper",Count:20},sell:{id:"stone_sword",Count:1},maxUses:100},{buy:{id:"paper",Count:35},sell:{id:"iron_sword",Count:1},maxUses:100}]}}

#egg PODZOL
#zombie
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"]}}}]}}
#creeper
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"]}}}]}}
#skeleton
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"] } }      }    ]  }}
#guardian
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"]}}}]}}
#spider
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"]                                            }                }            }        ]    }}
#witch
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"]                 }                }            }        ]    },   }
#slime
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"]}}}]}}
#blaze
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:"minecraft: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"]}}}]}}
#ghast
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"]}}}]}}



#EnderEnterprises
#torch
summon minecraft:villager 165 64 174 {VillagerData:{type:"plains",profession:"farmer",level:99},Invulnerable:1b,Silent:1,Offers:{Recipes:[{maxUses:10,buy:{id:"paper",Count:64},sell:{id:"minecraft:soul_torch",Count:1,tag:{HideFlags:16,CanPlaceOn:["minecraft:red_concrete","minecraft:light_gray_concrete","minecraft:light_gray_terracotta","minecraft:white_concrete","minecraft:coal_block"]}}}]}}

#food and potions
summon minecraft:villager 158 64 158 {VillagerData:{profession:"farmer",level:99,type:"plains"},Invulnerable:1b,Silent:1b,Offers:{Recipes:[{buy:{id:"paper",Count:3},sell:{id:"cooked_beef",Count:1},maxUses:100},{buy:{id:"paper",Count:32},sell:{id:"golden_apple",Count:1},maxUses:100}]}}
summon minecraft:villager 158 64 160 {    VillagerData: {        type: "plains",        profession: "shepherd",        level: 99    },    Silent: 1,    Invulnerable: 1,    Tags: ["ccoal"],    Offers: {        Recipes: [            {                maxUses: 999999,                rewardExp: 0b,                buy: { id: "minecraft:paper", Count: 64 },buyB: { id: "minecraft:paper", Count: 32 },                sell: {                    id: "minecraft:potion",                    Count: 1,                    tag: {                        CustomPotionEffects: [                            { Id: 5, Amplifier: 4, Duration: 160, ShowParticles: 0b },                            { Id: 22, Amplifier: 1, Duration: 160, ShowParticles: 0b }                        ],                        CustomPotionColor: 9634038,                        display: {                            Name: '{"text":"HerculeanDraft","color":"#800080","bold":true}',                            Lore: [                                '{"text":"Herculean pulse awakens, elixir\'s fleeting strength embraced with glee.","color":"red"}',                                '{"text":"Duration: 10 seconds","color":"gray"}'                            ]                        },                        HideFlags: 63                    }                }            },            {                maxUses: 999999,                rewardExp: 0b,                buy: { id: "minecraft:paper", Count: 32 },                sell: {                    id: "minecraft:splash_potion",                    Count: 1,                    tag: {                        CustomPotionEffects: [                            { Id: 1, Duration: 1200, ShowParticles: 0b },                            { Id: 30, Duration: 1200, ShowParticles: 0b }                        ],                        CustomPotionColor: 4063193,                        display: {                            Name: '{"text":"","extra":[{"text":"Lightning","color":"yellow","bold":true},{"text":"Speed","color":"gold","bold":true}]}',                            Lore: [                                '{"text":"Bolting through time and space, the elixir bestows lightning\'s swiftness upon you.","color":"red"}',                                '{"text":"Duration: 60 seconds","color":"gray"}'                            ]                        },                        HideFlags: 63                    }                }            }        ]    }}

#armour
summon minecraft:villager 161 64 151 {VillagerData:{profession:"armorer",level:99,type:"plains"},Invulnerable:1b,Silent:1,Offers:{Recipes:[{buy:{id:"paper",Count:7},sell:{id:"leather_helmet",Count:1},maxUses:100},{buy:{id:"paper",Count:17},sell:{id:"leather_chestplate",Count:1},maxUses:100},{buy:{id:"paper",Count:12},sell:{id:"leather_leggings",Count:1},maxUses:100},{buy:{id:"paper",Count:6},sell:{id:"leather_boots",Count:1},maxUses:100}]}}
summon minecraft:villager 163 64 151 {VillagerData:{profession:"armorer",level:99,type:"plains"},Invulnerable:1b,Silent:1,Offers:{Recipes:[{buy:{id:"paper",Count:14},sell:{id:"iron_helmet",Count:1},maxUses:100},{buy:{id:"paper",Count:36},sell:{id:"iron_chestplate",Count:1},maxUses:100},{buy:{id:"paper",Count:30},sell:{id:"iron_leggings",Count:1},maxUses:100},{buy:{id:"paper",Count:13},sell:{id:"iron_boots",Count:1},maxUses:100}]}}

#weapon
summon minecraft:villager 165 64 151 {VillagerData:{profession:"weaponsmith",level:99,type:"plains"},Invulnerable:1b,Silent:1,Offers:{Recipes:[{buy:{id:"paper",Count:10},sell:{id:"wooden_sword",Count:1},maxUses:100},{buy:{id:"paper",Count:20},sell:{id:"stone_sword",Count:1},maxUses:100},{buy:{id:"paper",Count:35},sell:{id:"iron_sword",Count:1},maxUses:100}]}}

#egg GRASS
#zombie
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"]}}}]}}
#creeper
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"]          }        }      }    ]  }}
#skeleton
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"] } }      }    ]  }}
#guardian
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"]}}}]}}
#spider
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"]                                            }                }            }        ]    }}
#witch
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"]                 }                }            }        ]    },   }
#slime
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"]}}}]}}
#blaze
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:"minecraft: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"]}}}]}}
#ghast
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"]}}}]}}

#book replace
clone 82 73 166 82 73 166 106 71 173
clone 176 74 170 176 74 170 152 71 164

#Teleport at stone_pressure_plate
execute as @a[team=Creeper] run tp @s 103 64 151
execute as @a[team=Enderman] run tp @s 155 64 186

#Spawnpoint
execute as @a[team=Creeper] run spawnpoint @s 103 64 151
execute as @a[team=Enderman] run spawnpoint @s 155 64 186 180.00

#Reset Stock Values
scoreboard players set CreeperCorp Stock_Values 0
scoreboard players set EnderEnterprises Stock_Values 0

#Reset slave amount
fill 102 65 192 102 65 192 minecraft:oak_button[facing=east]
fill 156 65 145 156 65 145 minecraft:oak_button[facing=west]
kill @e[tag=Crep]
kill @e[tag=End]
scoreboard players set #Creeper slaves 0
scoreboard players set #Enderman slaves 0

#Reset chest
clone 100 74 167 100 74 168 120 64 168
clone 158 74 170 158 74 169 138 64 168

clone 100 74 169 99 74 169 103 71 173
clone 158 74 168 159 74 168 154 71 164

clone 104 71 171 103 71 173 153 71 173
clone 154 71 164 155 71 164 104 71 164

clone 174 74 170 174 74 170 151 64 163
clone 84 73 166 84 73 166 107 64 174


#Reset tags and scoreboard
scoreboard players set @e Walker 0
tag @a remove Walker
tag @a remove loser
kill @e[tag=EWalker]
kill @e[tag=CWalker]
tag @a remove EWalker
tag @a remove CWalker

#tatic buttons
fill 152 66 194 155 66 194 minecraft:oak_button
fill 103 66 143 106 66 143 minecraft:oak_button[facing=south]

#Reset iron_bars
fill 100 64 156 100 66 154 air
fill 158 66 181 158 64 183 air

#Reset water
fill 103 69 159 103 68 159 minecraft:dark_oak_planks
fill 103 69 178 103 68 178 minecraft:dark_oak_planks

fill 155 69 178 155 68 178 minecraft:spruce_planks
fill 155 69 159 155 68 159 minecraft:spruce_planks

#Upgrade room
fill 160 65 175 160 65 175 air
fill 162 65 175 162 65 175 minecraft:light_gray_terracotta
fill 162 65 176 162 65 176 minecraft:barrier

fill 168 65 177 168 65 177 air
fill 168 65 179 168 65 179 minecraft:light_gray_concrete
fill 167 65 179 167 65 179 minecraft:barrier


fill 168 65 181 168 65 181 air
fill 168 65 183 168 65 183 minecraft:red_concrete
fill 167 65 183 167 65 183 minecraft:barrier

fill 166 65 186 166 65 186 air
fill 164 65 186 164 65 186 minecraft:white_concrete
fill 164 65 185 164 65 185 minecraft:barrier

fill 162 65 186 162 65 186 air
fill 160 65 186 160 65 186 coal_block
fill 160 65 185 160 65 185 minecraft:barrier

fill 98 65 162 98 65 162 air
fill 96 65 162 96 65 162 minecraft:light_gray_terracotta
fill 96 65 161 96 65 161 minecraft:barrier

fill 90 65 160 90 65 160 air
fill 90 65 158 90 65 158 minecraft:light_gray_concrete
fill 91 65 158 91 65 158 minecraft:barrier

fill 90 65 156 90 65 156 air
fill 90 65 154 90 65 154 minecraft:red_concrete
fill 91 65 154 91 65 154 minecraft:barrier

fill 92 65 151 92 65 151 air
fill 94 65 151 94 65 151 minecraft:white_concrete
fill 94 65 152 94 65 152 minecraft:barrier

fill 96 65 151 96 65 151 air
fill 98 65 151 98 65 151 coal_block
fill 98 65 152 98 65 152 minecraft:barrier



#Upgrade room scoreboard
scoreboard players set cmonster torch 1
scoreboard players set cgun torch 1
scoreboard players set ceye torch 1
scoreboard players set cbone torch 1
scoreboard players set ccoal torch 1

scoreboard players set emonster torch 1
scoreboard players set egun torch 1
scoreboard players set eeye torch 1
scoreboard players set ebone torch 1
scoreboard players set ecoal torch 1

scoreboard players set cgun task 1
scoreboard players set egun task 1


#Door
clone 100 69 151 100 70 151 103 64 153
clone 158 69 186 158 70 186 155 64 184

#lights
fill 104 68 145 104 68 145 minecraft:redstone_block
fill 105 68 144 105 68 144 minecraft:redstone_block
fill 103 68 156 103 68 156 minecraft:redstone_block
fill 94 68 156 94 68 157 minecraft:redstone_block
fill 105 68 166 105 68 166 minecraft:redstone_block
fill 105 68 171 105 68 171 minecraft:redstone_block
fill 103 68 181 103 68 181 minecraft:redstone_block
fill 105 76 168 105 76 169 minecraft:redstone_block

fill 163 68 180 163 68 181 minecraft:redstone_block
fill 155 68 181 155 68 181 minecraft:redstone_block
fill 153 68 171 153 68 171 minecraft:redstone_block
fill 153 68 166 153 68 166 minecraft:redstone_block
fill 155 68 156 155 68 156 minecraft:redstone_block
fill 153 76 169 153 76 168 minecraft:redstone_block
fill 153 68 193 153 68 193 minecraft:redstone_block
fill 154 68 192 154 68 192 minecraft:redstone_block

fill 120 85 167 120 85 168 minecraft:redstone_block
fill 120 87 166 120 87 166 minecraft:redstone_block
fill 120 87 169 120 87 169 minecraft:redstone_block
fill 139 87 168 139 86 167 minecraft:redstone_block

fill 163 68 170 163 68 170 minecraft:redstone_block
fill 163 68 166 163 68 166 minecraft:redstone_block
fill 163 68 160 163 68 160 minecraft:redstone_block
fill 163 68 156 163 68 156 minecraft:redstone_block

fill 95 68 167 95 68 167 minecraft:redstone_block
fill 95 68 171 95 68 171 minecraft:redstone_block
fill 95 68 177 95 68 177 minecraft:redstone_block
fill 95 68 181 95 68 181 minecraft:redstone_block

#fix bug
fill 154 71 175 154 71 175 minecraft:spruce_stairs[facing=east]
fill 153 71 175 153 71 175 air
fill 154 71 174 153 71 174 nether_bricks
clone 100 74 169 99 74 169 153 71 173

#Reset door buy monsters
fill 163 62 164 162 62 164 air
fill 164 62 168 163 62 168 air

fill 95 62 173 96 62 173 air
fill 94 62 169 95 62 169 air

#Reset jail timer
scoreboard players set enderman jail 0
scoreboard players set creeper jail 0

#win statment
scoreboard players set win win 0


#Start replace button (NEEDS TO BE LAST :)
fill 126 86 167 126 86 167 air
fill 126 86 168 126 86 168 air