opens fine but it breaks

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

dankmemes

Member
Jan 27, 2019
15
0
1
24
me and a friend are trying to play but when one of us join we can't click anything in the chest it just doesn't work. but when its just me it works just fine how do i fix it
in short form:
1 player can use /quickcraft
2 player cant use /quickcraft
idk what to do
Code:
function quickcraft(p: player):
    open virtual chest inventory with size 6 named "&6&lQuickCraft" to {_p}
    format gui slot 0 of {_p} with oak wood planks named "&6&lPlanks" with lore "Items &c&lNeeded&7" and "&615 &4&lOak Logs" to run:
        if player's inventory contains 15 oak log:
            remove 15 oak log from player's inventory
            add 2 oak wood planks named "&6&lPlanks" to player's inventory
            message "&4&lCrafting"
    format gui slot 1 of {_p} with 5 GunPowder named "&6&lGun Powder" with lore "Items &c&lNeeded&7" and "&630 &4&lCharCoal&7" and "&610 &4&lSulfur" to run:
        if players's inventory contains 10 gold ingot named "&6&lSulfur" and 30 coal named "&6&lCharCoal":
            remove 10 gold ingot named "&6&lSulfur" and 30 coal named "&6&lCharCoal" from player's inventory
            add 5 gunpowder named "&6&lGun Powder" to player's inventory
            message "&4&lCrafting"
    format gui slot 2 of {_p} with oak door named "&6&lWood Door" with lore "Items &c&lNeeded&7" and "&6100 &4&lWood&7" to run:
        if players's inventory contains 100 oak wood log:
            remove 100 oak wood log from player's inventory
            add 1 oak door named "&6&lWood Door" to player's inventory
            message "&4&lCrafting"
    format gui slot 3 of {_p} with feather named "&6&lLow Grade" with lore "Items &c&lNeeded&7" and "&61 &4&lCloth&7" and "&63 &6&lAnimal Fat" to run:
        if players's inventory contains 1 wheat named "&6&lCloth" and 3 red dye named "&6&lAnimal Fat":
            remove 1 wheat named "&6&lCloth" and 3 red dye named "&6&lAnimal Fat" from player's inventory
            add 1 feather named "&6&lLow Grade" to player's inventory
            message "&4&lCrafting"
    format gui slot 4 of {_p} with 5 ladder item named "&6&lLadder" with lore "Items &c&lNeeded&7" and "&625 &4&lWood&7" to run:
        if players's inventory contains 25 oak wood log:
            remove 25 oak wood log from player's inventory
            add 5 ladder item named "&6&lLadder" to player's inventory
            message "&4&lCrafting"
    format gui slot 5 of {_p} with wooden shovel named "&6&lDirtiest Shovel" with lore "Items &c&lNeeded&7" and "&610 &4&lWood&7" and "&65 &6&lCobbleStone" to run:
        if players's inventory contains 10 oak wood log and 5 CobbleStone:
            remove 10 oak wood log and 5 CobbleStone from player's inventory
            add 1 wooden shovel named "&6&lDirtiest Shovel" to player's inventory
            message "&4&lCrafting"
    format gui slot 6 of {_p} with wooden sword named "&6&lBat with Nails" with lore "Items &c&lNeeded&7" and "&65 &4&lWood&7" and "&62 &6&lMetal Frags" to run:
        if players's inventory contains 5 oak wood log and 2 iron ingot named "&6&lMetal Frags":
            remove 5 oak wood log and 2 iron ingot named "&6&lMetal Frags" from player's inventory
            add 1 wooden sword named "&6&lBat with Nails" to player's inventory
            message "&4&lCrafting"
    format gui slot 7 of {_p} with golden sword named "&6&lRusty Knife" with lore "Items &c&lNeeded&7" and "&65 &6&lMetal Frags" to run:
        if players's inventory contains 5 iron ingot named "&6&lMetal Frags":
            remove 5 iron ingot named "&6&lMetal Frags" from player's inventory
            add 1 golden sword named "&6&lRusty Knife" to player's inventory
            message "&4&lCrafting"
    format gui slot 8 of {_p} with 3 redstone block named "&6&lCrack StoneBrick" with lore "Items  &c&lNeeded&7" and "&615 &6&lCobbleStone" to run:
        if players's inventory contains 15 CobbleStone:
            remove 15 CobbleStone from player's inventory
            add 3 redstone block named "&6&lCrack StoneBrick" to player's inventory
            message "&4&lCrafting"
    format gui slot 9 of {_p} with 2 chest named "&6&lChest" with lore "Items &c&lNeeded&7" and "&625 &6&lOak Logs" to run:
        if players's inventory contains 15 oak log:
            remove 15 oak log from player's inventory
            add 2 chest named "&6&lChest" to player's inventory
            message "&4&lCrafting"
    format gui slot 10 of {_p} with iron axe named "&6&lIron Axe" with lore "Items &c&lNeeded&7" and "&610 &6&lOak Logs" and "&65 &6&lMetal Frags" to run:
        if players's inventory contains 5 iron ingot named "&6&lMetal Frags" and 10 oak log:
            remove 10 oak log and 5 iron ingot named "&6&lMetal Frags" from player's inventory
            add 1 iron axe named "&6&lIron Axe" to player's inventory
            message "&4&lCrafting"
    format gui slot 11 of {_p} with iron pickaxe named "&6&lIron PickAxe" with lore "Items &c&lNeeded&7" and "&610 &6&lOak Logs" and "&610 &6&lMetal Frags" to run:
        if players's inventory contains 10 iron ingot named "&6&lMetal Frags" and 10 oak log:
            remove 10 oak log and 10 iron ingot named "&6&lMetal Frags" from player's inventory
            add 1 Iron PickAxe named "&6&lIron PickAxe" to player's inventory
            message "&4&lCrafting"
    format gui slot 12 of {_p} with 5 redstone named "&6&lPistol Round" with lore "Items &c&lNeeded&7" and "&65 &6&lGun Powder" and "&63 &6&lMetal Frags" to run:
        if players's inventory contains 3 iron ingot named "&6&lMetal Frags" and 5 GunPowder named "&6&lGun Powder":
            remove 5 GunPowder named "&6&lGun Poder" and 3 iron ingot named "&6&lMetal Frags" from player's inventory
            add 5 redstone named "&6&lPistol Round" to player's inventory
            message "&4&lCrafting"
    format gui slot 13 of {_p} with 2 web named "&6&lBarbed Wire" with lore "Items &c&lNeeded&7" and "&625 &6&lMetal Frags" to run:
        if players's inventory contains 25 iron ingot named "&6&lMetal Frags":
            remove 25 iron ingot named "&6&lMetal Frags" from player's inventory
            add 2 web named "&6&lBarbed Wire" to player's inventory
            message "&4&lCrafting"
    format gui slot 14 of {_p} with 2 Stone Brick named "&6&lStone" with lore "Items &c&lNeeded&7" and "&625 &6&lCobbleStone" to run:
        if players's inventory contains 25 CobbleStone:
            remove 25 CobbleStone from player's inventory
            add 2 Stone Brick named "&6&lStone Brick" to player's inventory
            message "&4&lCrafting"
    format gui slot 15 of {_p} with Anvil named "&6&lAnvil" with lore "Items &c&lNeeded&7" and "&6200 &6&lMetal Frags" to run:
        if players's inventory contains 200 iron ingot named "&6&lMetal Frags":
            remove 200 iron ingot named "&6&lMetal Frags" from player's inventory
            add 1 Anvil named "&6&lAnvil" to player's inventory
            message "&4&lCrafting"
    format gui slot 16 of {_p} with Stone sword named "&6&lMachete" with lore "Items &c&lNeeded&7" and "&620 &6&lMetal Frags" to run:
        if players's inventory contains 20 iron ingot named "&6&lMetal Frags":
            remove 20 iron ingot named "&6&lMetal Frags" from player's inventory
            add 1 Stone sword named "&6&lMachete" to player's inventory
            message "&4&lCrafting"
    format gui slot 17 of {_p} with iron helmet named "&6&lRiot Helmet" with lore "Items &c&lNeeded&7" and "&664 &6&lMetal Frags" to run:
        if players's inventory contains 64 iron ingot named "&6&lMetal Frags":
            remove 64 iron ingot named "&6&lMetal Frags" from player's inventory
            add 1 iron helmet named "&6&lRiot Helmet" to player's inventory
            message "&4&lCrafting"
    format gui slot 18 of {_p} with iron Chestplate named "&6&lRiot ChestPlate" with lore "Items &c&lNeeded&7" and "&6158 &6&lMetal Frags" to run:
        if players's inventory contains 158 iron ingot named "&6&lMetal Frags":
            remove 158 iron ingot named "&6&lMetal Frags" from player's inventory
            add 1 iron Chestplate named "&6&lRiot ChestPlate" to player's inventory
            message "&4&lCrafting"
    format gui slot 19 of {_p} with iron Leggings named "&6&lRiot Leggings" with lore "Items &c&lNeeded&7" and "&678 &6&lMetal Frags" to run:
        if players's inventory contains 78 iron ingot named "&6&lMetal Frags":
            remove 78 iron ingot named "&6&lMetal Frags" from player's inventory
            add 1 iron Leggings named "&6&lRiot Leggings" to player's inventory
            message "&4&lCrafting"
    format gui slot 20 of {_p} with iron Boots named "&6&lRiot Boots" with lore "Items &c&lNeeded&7" and "&625 &6&lMetal Frags" to run:
        if players's inventory contains 25 iron ingot named "&6&lMetal Frags":
            remove 25 iron ingot named "&6&lMetal Frags" from player's inventory
            add 1 iron Boots named "&6&lRiot Boots" to player's inventory
            message "&4&lCrafting"
    format gui slot 21 of {_p} with 5 arrow named "&6&lLazzer Rounds" with lore "Items &c&lNeeded&7" and "&625 &6&lMetal Frags" and "&65 &6&lExplosives" to run:
        if players's inventory contains 25 iron ingot named "&6&lMetal Frags" and 5 sugar cane named "&6&lExplosives":
            remove 25 iron ingot named "&6&lMetal Frags" and 5 sugar cane named "&6&lExplosives" from player's inventory
            add 5 arrow named "&6&lLazzer Rounds" to player's inventory
            message "&4&lCrafting"
    format gui slot 22 of {_p} with iron sword named "&6&lBig Sword" with lore "Items &c&lNeeded&7" and "&650 &6&lMetal Frags" to run:
        if players's inventory contains 50 iron ingot named "&6&lMetal Frags":
            remove 50 iron ingot named "&6&lMetal Frags" from player's inventory
            add 1 iron sword named "&6&lBig Sword" to player's inventory
            message "&4&lCrafting"
    format gui slot 23 of {_p} with golden shovel named "&6&lLittle Macintosh" with lore "Items &c&lNeeded&7" and "&66 &6&lMetal Frags" and "&610 &6&lOak Logs" to run:
        if players's inventory contains 6 iron ingot named "&6&lMetal Frags" and 10 oak Logs:
            remove 6 iron ingot named "&6&lMetal Frags" and 10 oak logs from player's inventory
            Execute console command "/shot give %player% lil"
            message "&4&lCrafting"
    format gui slot 24 of {_p} with diamond shovel named "&6&lP90" with lore "Items &c&lNeeded&7" and "&617 &6&lMetal Frags" and "&64 &6&lSMG Body" and "&61 &6&lSemi Automatic Body" and "&63 &6&lHigh Quality Metal" to run:
        if player's inventory contains 17 iron ingot named "&6&lMetal Frags" and 3 nether quartz named "&6&lHigh quality metal" and 1 pink dye named "&6&lSemi Automatic Body" and 4 grey dye named "&6&lSMG Body":
            remove 17 iron ingot named "&6&lMetal Frags" and 3 nether quartz named "&6&lHigh quality metal" and 1 pink dye named "&6&lSemi Automatic Body" and 4 grey dye named "&6&lSMG Body" from player's inventory
            Execute console command "/shot give %player% P90"
            message "&4&lCrafting"
    format gui slot 25 of {_p} with stone hoe named "&6&lCrosman" with lore "Items &c&lNeeded&7" and "&624 &6&lMetal Frags" to run:
        if players's inventory contains 24 iron ingot named "&6&lMetal Frags":
            remove 24 iron ingot named "&6&lMetal Frags" from player's inventory
            Execute console command "/shot give %player% Crosman"
            message "&4&lCrafting"
    format gui slot 26 of {_p} with Furnaces named "&6&lFurnace" with lore "Items &c&lNeeded&7" and "&615 &6&lCobbleStone" and "&65 &6&lLow Grade" to run:
        if players's inventory contains 15 CobbleStone and 5 feather named "&6&lLow Grade":
            remove 15 cobblestone and 5 feather named "&6&lLow Grade" from player's inventory
            add 1 Furnaces to player's inventory
            message "&4&lCrafting"
    format gui slot 27 of {_p} with Stone Pickaxe named "&6&lAxe" with lore "Items &c&lNeeded&7" and "&650 &6&lCobbleStone" and "&610 &6&loak log" to run:
        if players's inventory contains 50 CobbleStone and 10 oak log:
            remove 50 CobbleStone and 10 oak log from player's inventory
            add 1 Stone Pickaxe to player's inventory
            message "&4&lCrafting"
    format gui slot 28 of {_p} with Stone Axe named "&6&lAxe" with lore "Items &c&lNeeded&7" and "&650 &6&lCobbleStone" and "&65 &6&loak log" to run:
        if players's inventory contains 50 CobbleStone and 5 oak log:
            remove 50 CobbleStone and 5 oak log from player's inventory
            add 1 Stone Axe to player's inventory
            message "&4&lCrafting"
    format gui slot 30 of {_p} with oak slab named "&6&lWood Slab" with lore "Items &c&lNeeded&7" and "&625 &6&lWood Logs" to run:
        if players's inventory contains 25 oak log:
            remove 25 oak log from player's inventory
            add 1 oak slab to player's inventory
            message "&4&lCrafting"
    format gui slot 29 of {_p} with stonebrick slab named "&6&lStoneBrick Slab" with lore "Items &c&lNeeded&7" and "&625 &6&lCobbleStone" to run:
        if players's inventory contains 25 CobbleStone:
            remove 25 CobbleStone from player's inventory
            add 1 stonebrick slab to player's inventory
            message "&4&lCrafting"
    format gui slot 31 of {_p} with 5 torch named "&6&lJust 5 torch" with lore "Items &c&lNeeded&7" and "&62 &6&lWood Logs" to run:
        if players's inventory contains 2 oak log:
            remove 2 oak log from player's inventory
            add 5 torch named "&6&lJust a torch" to player's inventory
            message "&4&lCrafting"
#crafting 2 code below
    format gui slot 47 of {_p} with Anvil named "&6&lLvL2Crafter" with lore "&4&lYOU NEED TO BE CLOSE TO ANVIL" to run:
        loop blocks in radius 5 of player:
            if loop-block is Anvil:
                quickcraft2(player)
    format gui slot 48 of {_p} with enchantment table named "&6&lLvL3Crafter" with lore "&4&lYOU NEED TO BE CLOSE TO ENCHANTMENT TABLE" to run:
        loop blocks in radius 5 of player:
            if loop-block is enchantment table:
                quickcraft3(player)

command /quickcraft:
    trigger:
        quickcraft(player)
#crafting LvL2Crafter below
command /quickcraft2:
    trigger:
        quickcraft2(player)
function quickcraft2(p: player):
#add items to LvL2 below
    open virtual chest inventory with size 6 named "&6&lLvL2Crafter" to {_p}
    format gui slot 0 of {_p} with trapdoor named "&6&lHatch" with lore "Items &c&lNeeded" and "&6&l30 &6&lWood" to run:
        if player's inventory contains 30 oak wood log:
            remove 30 oak wood log from player's inventory
            add 1 trapdoor named "&6&lHatch" to player's inventory
            message "&4&lCrafting"
    format gui slot 1 of {_p} with sugar cane named "&6&lExplosives" with lore "Items &c&lNeeded" and "&620 &6&lGun Powder" and "&610 &6&lMetal Frags" and "&6&l110 &6&lSulfur" and "&6&l1 &6&lLow Grade" and "&6&l150 &6&lCharCoal" to run:
        if players's inventory contains 20 GunPowder named "&6&lGun Powder" and 10 iron ingot named "&6&lMetal Frags" and 110 gold ingot named "&6&lSulfur" and 1 feather named "&6&lLow Grade" and 150 Coal named "&6&lCharCoal":
            remove 20 GunPowder named "&6&lGun Powder" and 10 iron ingot named "&6&lMetal Frags" and 110 gold ingot named "&6&lSulfur" and 1 feather named "&6&lLow Grade" and 150 Coal named "&6&lCharCoal" from player's inventory
            add 1 sugar cane named "&6&lExplosives" to player's inventory
            message "&4&lCrafting"
    format gui slot 2 of {_p} with silverfish chiseled stone brick named "&6&lReinforced Stone Brick" with lore "Items &c&lNeeded" and "&6&l1 &6&lStoneBrick" and "&6&l100 &6&lMetal Frags" to run:
        if player's inventory contains 1 Stone Brick named "StoneBrick" and 100 iron ingot named "&6&lMetal Frags":
            remove 1 Stone Brick named "StoneBrick" and iron ingot named "&6&lMetal Frags" from player's inventory
            add 1 silverfish chiseled stone brick named "&6&lReinforced Stone Brick" to player's inventory
            message "&4&lCrafting"
    format gui slot 3 of {_p} with golden hoe named "&6&lUMP" with lore "Items &c&lNeeded&7" and "&648 &6&lMetal Frags" and "*62 &6&lSMG Body" to run:
        if players's inventory contains 48 iron ingot named "&6&lMetal Frags" and 2 gray dye named "&6&lSMG Body":
            remove 48 iron ingot named "&6&lMetal Frags" and 2 gray dye named "&6&lSMG Body" from player's inventory
            Execute console command "/shot give %player% UMP"
            message "&4&lCrafting"
    format gui slot 4 of {_p} with golden axe named "&6&lSCAR" with lore "Items &c&lNeeded&7" and "&6148 &6&lMetal Frags" and "&64 &6&lSemi Automatic Body" and "&62 &6&lRifle Body" to run:
        if players's inventory contains 148 iron ingot named "&6&lMetal Frags" and 4 pink dye named "&6&lSemi Automatic Body" and 2 Magenta dye named "&6&lRifle Body":
            remove 148 iron ingot named "&6&lMetal Frags" and 4 pink dye named "&6&lSemi Automatic Body" and 2 Magenta Dye named "&6&lRifle Body" from player's inventory
            Execute console command "/shot give %player% SCAR"
            message "&4&lCrafting"
    format gui slot 5 of {_p} with golden apple named "&6&lHydra" with lore "Items &c&lNeeded" and "&650 &6&lExplosives" and "&625 &6&lLow Grade" to run:
        if player's inventory contains 50 iron ingot named "&6&lMetal Frags" and 25 feather named "&6&lLow Grade" and 50 sugar cane named "&6&lExplosives":
            remove 50 iron ingot named "&6&lMetal Frags" and 25 feather named "&6&lLow Grade" from player's inventory
            add 1 golden apple named "&6&lHydra" to player's inventory
            message "&4&lCrafting"
    format gui slot 6 of {_p} with 5 diamond named "&6Shot Gun Shell" with lore "Items &c&lNeeded&7" and "&625 &6&lGun Powder" and "&613 &6&lMetal Frags" to run:
        if players's inventory contains 13 iron ingot named "&6&lMetal Frags" and 25 GunPowder named "&6&lGun Powder":
            remove 25 GunPowder named "&6&lGun Poder" and 13 iron ingot named "&6&lMetal Frags" from player's inventory
            add 5 diamond named "&6&lPistol Round" to player's inventory
            message "&4&lCrafting"
    format gui slot 7 of {_p} with 5 sugar named "&6&l5.56 Rounds" with lore "Items &c&lNeeded&7" and "&635 &6&lGun Powder" and "&628 &6&lMetal Frags" to run:
        if players's inventory contains 28 iron ingot named "&6&lMetal Frags" and 35 GunPowder named "&6&lGun Powder":
            remove 35 GunPowder named "&6&lGun Poder" and 28 iron ingot named "&6&lMetal Frags" from player's inventory
            add 5 sugar named "&6&l5.56 Rounds" to player's inventory
            message "&4&lCrafting"
    format gui slot 8 of {_p} with iron shovel named "&6&lA Shovel" with lore "Items &c&lNeeded&7" and "&615 &6&lCobbleStone" and "&628 &6&lMetal Frags" to run:
        if players's inventory contains 28 iron ingot named "&6&lMetal Frags" and 15 CobbleStone:
            remove 15 CobbleStone and 28 iron ingot named "&6&lMetal Frags" from player's inventory
            add 1 iron shovel named "&6&lA Shovel" to player's inventory
            message "&4&lCrafting"
    format gui slot 9 of {_p} with obsidian named "&6&lReinforced Wood" with lore "Items &c&lNeeded&7" and "&615 &6&lWood Plank" and "&628 &6&lMetal Frags" to run:
        if players's inventory contains 28 iron ingot named "&6&lMetal Frags" and 1 oak wood planks:
            remove 1 oak wood planks and 28 iron ingot named "&6&lMetal Frags" from player's inventory
            add 1 oak wood planks to player's inventory
            message "&4&lCrafting"
#    format gui slot 10 of {_p} with gold helmet named "&6&lNo Rads" with lore "Items &c&lNeeded&7" and "&625 &6&lCloth" and "&65 &6&lMetal Frags" to run:
#        if players's inventory contains 5 iron ingot named "&6&lMetal Frags" and 25 wheat named "&6&lCloth":
#            remove 25 wheat named "&6&lCloth" and 5 iron ingot named "&6&lMetal Frags" from player's inventory
#            add 1 gold helmet named "&cNo Rad" to player's inventory
#            message "&4&lCrafting"
    format gui slot 11 of {_p} with tnt named "&6&lBomb" with lore "Items &c&lNeeded&7" and "&625 &6&lExplosives" and "&65 &6&lCloth" to run:
        if players's inventory contains 5 sugar cane named "&6&lExplosives":
            remove 5 sugar cane named "&6&lExplosives" from player's inventory
            add 1 tnt named "&6&lBomb" to player's inventory
            message "&4&lCrafting"
    format gui slot 12 of {_p} with iron door named "&6&lIron Door" with lore "Items &c&lNeeded&7" and "&650 &4&lWood&7" and "&6&lMetal Frags" to run:
        if players's inventory contains 50 oak wood log and 100 iron ingot named "&6&lMetal Frags":
            remove 50 oak wood log and 100 iron ingot named "&6&lMetal Frags" from player's inventory
            add 1 iron door named "&6&lIron Door" to player's inventory
            message "&4&lCrafting"
    format gui slot 13 of {_p} with enchantment table named "&6&lLvL3Crafter" with lore "Items &c&lNeeded&7" and "&6500 &6&lMetal Frags" to run:
        if players's inventory contains 500 iron ingot named "&6&lMetal Frags":
            remove 500 iron ingot named "&6&lMetal Frags" from player's inventory
            add 1 enchantment table named "&6&lLvL3Crafter" to player's inventory
            message "&4&lCrafting"
    format gui slot 46 of {_p} with dirt named "&6&lLvL1Crafter" to run:
        loop blocks in radius 5 of player:
            if loop-block is air:
                quickcraft(player)
    format gui slot 48 of {_p} with enchantment table named "&6&lLvL3Crafter" with lore "&4&lYOU NEED TO BE CLOSE TO ENCHANTMENT TABLE" to run:
        loop blocks in radius 5 of player:
            if loop-block is enchantment table:
                quickcraft3(player)
command /quickcraft3:
    trigger:
        quickcraft3(player)
function quickcraft3(p: player):
#add items to LvL2 below
    open virtual chest inventory with size 6 named "&6&lLvL3Crafter" to {_p}
    format gui slot 0 of {_p} with diamond block named "&6&lSTEEL" with lore "Items &c&lNeeded" and "&6250 &6&lMetal Frags" and "&61 &6&lReinforced Stone Brick" to run:
        if player's inventory contains 250 iron ingot named "&6&lMetal Frags" and 1 silverfish chiseled stone brick named "&6&lReinforced Stone Brick":
            remove 250 iron ingot named "&6&lMetal Frags" and 1 silverfish chiseled stone brick named "&6&lReinforced Stone Brick" from player's inventory
            add 1 diamond block named "&6&lSTEEL" to player's inventory
            message "&4&lCrafting"
    format gui slot 1 of {_p} with record stal named "&6&lBale Fire Egg" with lore "Items &c&lNeeded" and "&650 &6&lExplosives" and "&625 &6&lCloth" to run:
        if player's inventory contains 50 sugar cane named "&6&lExplosives" and 25 ghast tear named "&6&lCloth":
            remove 50 sugar cane named "&6&lExplosives" and 25 ghast tear named "&6&lCloth" from player's inventory
            add 1 record stal named "&6&lBale Fire Egg" to player's inventory
            message "&4&lCrafting"
    format gui slot 2 of {_p} with diamond helmet named "&6&lPower Armor helmet" with lore "Items &c&lNeeded" and "&6250 &6&lMetal Frags" to run:
        if player's inventory contains 250 iron ingot named "&6&lMetal":
            remove 250 iron ingot named "&6&lMetal Frags" from player's inventory
            add 1 diamond helmet named "&6&lPower Armor helmet" to player's inventory
            message "&4&lCrafting"
    format gui slot 3 of {_p} with diamond Chestplate named "&6&lPower Armor Chestplate" with lore "Items &c&lNeeded" and "&6500 &6&lMetal Frags" to run:
        if player's inventory contains 500 iron ingot named "&6&lMetal Frags":
            remove 500 iron ingot named "&6&lMetal Frags" from player's inventory
            add 1 diamond Chestplate named "&6&lPower armor Chestplate" to player's inventory
            message "&4&lCrafting"
    format gui slot 4 of {_p} with diamond Leggings named "&6&lPower Armor Leggings" with lore "Items &c&lNeeded" and "&6350 &6&lMetal Frags" to run:
        if player's inventory contains 350 iron ingot named "&6&lMetal Frags":
            remove 350 iron ingot named "&6&lMetal Frags" from player's inventory
            add 1 diamond Leggings named "&6&lPower Armor Leggings" to player's inventory
            message "&4&lCrafting"
    format gui slot 5 of {_p} with diamond Boots named "&6&lPower Armor Boots" with lore "Items &c&lNeeded" and "&6150 &6&lMetal Frags" to run:
        if player's inventory contains 150 iron ingot named "&6&lMetal Frags":
            remove 150 iron ingot named "&6&lMetal Frags" from player's inventory
            add 1 diamond Boots named "&6&lPower Armor Boots" to player's inventory
            message "&4&lCrafting"
    format gui slot 6 of {_p} with iron hoe named "&6&lAK47" with lore "Items &c&lNeeded" and "&611 &6&lMetal Frags" and "&630 &6&lHigh Quality Metal" and "&67 &6&lRifle Body" and "&650 &6&loak log" to run:
        if player's inventory contains 11 iron ingot named "&6&lMetal Frags" and 30 nether quartz named "&6&lHigh Quality Metal" and 7 Magenta dye named "&6&lRifle Body" and 50 oak log:
            remove 11 iron ingot named "&6&lMetal Frags" and 30 nether quartz named "&6&lHigh Quality Metal" and 7 Magenta dye named "&6&lRifle Body" and 50 oak log from player's inventory
            Execute console command "/shot give %player% ak47"
            message "&4&lCrafting"
    format gui slot 7 of {_p} with golden PickAxe named "&6&lINTERVENTION" with lore "Items &c&lNeeded" and "&66 &6&lMetal Frags" and "&664 &6&lHigh Quality Metal" and "&65 &6&lRifle Body" and "&65 &6&lSemi Automatic Body" to run:
        if player's inventory contains iron ingot named "&6&lMetal Frags" and 64 nether quartz named "&6&lHigh Quality Metal" and 5 Magenta dye named "&6&lRifle Body" and 5 pink dye named "&6&lSemi Automatic Body":
            remove 6 iron ingot named "&6&lMetal Frags" and 64 nether quartz named "&6&lHigh Quality Metal" and 5 Magenta dye named "&6&lRifle Body" and 5 pink dye named "&6&lSemi Automatic Body" from player's inventory
            Execute console command "/shot give %player% INTERVENTION"
            message "&4&lCrafting"
    format gui slot 8 of {_p} with wooden axe named "&6&lL118A" with lore "Items &c&lNeeded" and "&614 &6&lMetal Frags" and "&664 &6&lHigh Quality Metal" and "&63 &6&lRifle Body" and "&63 &6&lSemi Automatic Body" and "&6&l50 &6&lOak Logs" to run:
        if player's inventory contains 14 iron ingot named "&6&lMetal Frags" and 64 nether quartz named "&6&lHigh Quality Metal" and 3 Magenta dye named "&6&lRifle Body" and 3 pink dye named "&6&lSemi Automatic Body" and 50 oak log:
            remove 14 iron ingot named "&6&lMetal Frags" and 64 nether quartz named "&6&lHigh Quality Metal" and 3 Magenta dye named "&6&lRifle Body" and 3 pink dye named "&6&lSemi Automatic Body" and 50 oak log from player's inventory
            Execute console command "/shot give %player% L118A"
            message "&4&lCrafting"
    format gui slot 9 of {_p} with diamond hoe named "&6&lGalil" with lore "Items &c&lNeeded" and "&625 &6&lMetal Frags" and "&664 &6&lHigh Quality Metal" and "&63 &6&lRifle Body" and "&63 &6&lSemi Automatic Body" to run:
        if player's inventory contains 25 iron ingot named "&6&lMetal Frags" and 5 nether quartz named "&6&lHigh Quality Metal" and 3 Magenta dye named "&6&lRifle Body" and 3 pink dye named "&6&lSemi Automatic Body":
            remove 25 iron ingot named "&6&lMetal Frags" and 5 nether quartz named "&6&lHigh Quality Metal" and 3 Magenta dye named "&6&lRifle Body" and 3 pink dye named "&6&lSemi Automatic Body" from player's inventory
            Execute console command "/shot give %player% Galil"
            message "&4&lCrafting"
    format gui slot 13 of {_p} with diamond axe named "&6&lRPG" with lore "Items &c&lNeeded" and "&664 &6&lMetal Frags" and "&664 &6&lHigh Quality Metal" and "&610 &6&lSemi Automatic Body" and "&664 &6&lSulfur" to run:
        if player's inventory contains 64 iron ingot and 64 nether quartz and 10 pink dye and 64 gold ingot:
            remove 64 iron ingot and 64 nether quartz and 10 pink dye and 64 gold ingot from player's inventory
            Execute console command "/shot give %player% RPG"
            message "&4&lCrafting"
    format gui slot 10 of {_p} with record wait named "&6&lLazzer" with lore "Items &c&lNeeded" and "&632 &6&lMetal Frags" and "&66 &6&lHigh Quality Metal" and "&66 &6&lRifle Body" and "&616 &6&lExplosives" to run:
        if player's inventory contains 32 iron ingots named "&6&lMetal Frags" and 6 nether quartz named "&6&lHigh Quality Metal" and 6 Magenta dye named "&6&lRifle Body" and 25 sugar cane named "&6&lExplosives":
            remove 32 iron ingots named "&6&lMetal Frags" and 6 nether quartz named "&6&lHigh Quality Metal" and 6 Magenta dye named "&6&lRifle Body" and 25 sugar cane named "&6&lExplosives" from player's inventory
            Execute console command "/shot give %player% Lazzer"
            message "&4&lCrafting"
    format gui slot 11 of {_p} with enchanted golden apple named "&6&lBetter Hydra" with lore "Items &c&lNeeded" and "&650 &6&lMetal Frags" and "&6250 &6&lLow Grade" to run:
        if player's inventory contains 50 iron ingot named "&6&lMetal Frags" and 250 feather named "&6&lLow Grade":
            remove 50 iron ingot named "&6&lMetal Frags" and 250 feather named "&6&lLow Grade" from player's inventory
            add 1 enchanted golden apple named "&6&lBetter Hydra" to player's inventory
            message "&4&lCrafting"
    format gui slot 47 of {_p} with Anvil named "&6&lLvL2Crafter" with lore "&4&lYOU NEED TO BE CLOSE TO ANVIL" to run:
        loop blocks in radius 5 of player:
            if loop-block is Anvil:
                quickcraft2(player)
    format gui slot 46 of {_p} with dirt named "&6&lLvL1Crafter" to run:
        loop blocks in radius 5 of player:
            if loop-block is air:
                quickcraft(player)
    format gui slot 47 of {_p} with Anvil named "&6&lLvL2Crafter" with lore "&4&lYOU NEED TO BE CLOSE TO ANVIL" to run:
        loop blocks in radius 5 of player:
            if loop-block is Anvil:
                quickcraft2(player)
    format gui slot 12 of {_p} with Button named "&6&lBROKEN DONT CRAFT IM NOT REMOVING THIS" with lore "Items &c&lNeeded" and "&65 &6&lCloth" and "&62 &6&lTech Trash" and "&620 &6&lExplosives" to run:
#        if player's inventory contains 5 wheat named "&6&lCloth" and 2 green dye named "&6&lTech Trash" and 20 sugar cane named "&6&lExplosives":
#            remove 5 wheat named "&6&lCloth" and 2 green dye named "&6&lTech Trash" and 20 sugar cane named "&6&lExplosives" from player's inventory
#            add 1 Button named "&6&lC4" to player's inventory
#            message "&4&lCrafting"
[doublepost=1554058883,1553892394][/doublepost]i put players im stupid
 
Status
Not open for further replies.