Skocz do zawartości

dbahshgbf


morgentaszek

Rekomendowane odpowiedzi

command /toolsbench <player>:
    trigger:
        wait 3 ticks
        open chest with 3 rows named "          &9&lTools Bench" to the arg-1
#WOOD
        if argument 1 has 10 Oak Wood Plank:
            if argument 1 has 2 Stick:
                format slot 0 of argument 1 with Wood Pickaxe named "&7[&6Wood Pickaxe&7]" with lore "&cCraftable: &aTrue||&cNeeded:|| ||&6x10 Wood||&6x2 Stick" to close then run "craft %arg-1% woodpickaxe"
        else:
            format slot 0 of argument 1 with Wood Pickaxe named "&7[&6Wood Pickaxe&7]" with lore "&cCraftable: &4False||&cNeeded:|| ||&6x10 Wood||&6x2 Stick" to be unstealable
        if argument 1 has 15 Oak Wood Plank:
            if argument 1 has 2 Stick:
                format slot 1 of argument 1 with Wood Sword named "&7[&6Wood Sword&7]" with lore "&cCraftable: &aTrue||&cNeeded:|| ||&6x15 Wood||&6x2 Stick" to close then run "craft %arg-1% woodsword"
        else:
            format slot 1 of argument 1 with Wood Sword named "&7[&6Wood Sword&7]" with lore "&cCraftable: &4False||&cNeeded:|| ||&6x15 Wood||&6x2 Stick" to be unstealable
        if argument 1 has 8 Oak Wood Plank:
            if argument 1 has 2 Stick:
                format slot 2 of argument 1 with Wood Axe named "&7[&6Wood Axe&7]" with lore "&cCraftable: &aTrue||&cNeeded:|| ||&6x8 Wood||&6x2 Stick" to close then run "craft %arg-1% woodaxe"
        else:
            format slot 2 of argument 1 with Wood Axe named "&7[&6Wood Axe&7]" with lore "&cCraftable: &4False||&cNeeded:|| ||&6x8 Wood||&6x2 Stick" to be unstealable
#STONE            
        if argument 1 has 10 Stone:
            if argument 1 has 2 Stick:
                format slot 9 of argument 1 with Stone Pickaxe named "&7[&6Stone Pickaxe&7]" with lore "&cCraftable: &aTrue||&cNeeded:|| ||&6x10 Stone||&6x2 Stick" to close then run "craft %arg-1% stonepickaxe"
        else:
            format slot 9 of argument 1 with Stone Pickaxe named "&7[&6Stone Pickaxe&7]" with lore "&cCraftable: &4False||&cNeeded:|| ||&6x10 Stone||&6x2 Stick" to be unstealable
        if argument 1 has 15 Stone:
            if argument 1 has 2 Stick:
                format slot 10 of argument 1 with Stone Sword named "&7[&6Stone Sword&7]" with lore "&cCraftable: &aTrue||&cNeeded:|| ||&6x15 Stone||&6x2 Stick" to close then run "craft %arg-1% stonesword"
        else:
            format slot 10 of argument 1 with Stone Sword named "&7[&6Stone Sword&7]" with lore "&cCraftable: &4False||&cNeeded:|| ||&6x15 Stone||&6x2 Stick" to be unstealable
        if argument 1 has 8 Stone:
            if argument 1 has 2 Stick:
                format slot 11 of argument 1 with Stone Axe named "&7[&6Stone Axe&7]" with lore "&cCraftable: &aTrue||&cNeeded:|| ||&6x8 Stone||&6x2 Stick" to close then run "craft %arg-1% stoneaxe"
        else:
            format slot 11 of argument 1 with Stone Axe named "&7[&6Stone Axe&7]" with lore "&cCraftable: &4False||&cNeeded:|| ||&6x8 Stone||&6x2 Stick" to be unstealable
#LEATHER ARMOR
        if argument 1 has 5 Leather:
            if argument 1 has 5 Tall Grass:
                format slot 18 of argument 1 with Leather Helmet named "&7[&6Leather Helmet&7]" with lore "&cCraftable: &aTrue||&cNeeded:|| ||&6x5 Leather||&6x5 Grass" to close then run "craft %arg-1% leatherhelmet"
        else:
            format slot 18 of argument 1 with Leather Helmet named "&7[&6Leather Helmet&7]" with lore "&cCraftable: &4False||&cNeeded:|| ||&6x5 Leather||&6x5 Grass" to be unstealable
        if argument 1 has 8 Leather:
            if argument 1 has 8 Tall Grass:
                format slot 19 of argument 1 with Leather Chestplate named "&7[&6Leather Chestplate&7]" with lore "&cCraftable: &aTrue||&cNeeded:|| ||&6x8 Leather||&6x8 Grass" to close then run "craft %arg-1% leatherchestplate"
        else:
            format slot 19 of argument 1 with Leather Chestplate named "&7[&6Leather Chestplate&7]" with lore "&cCraftable: &4False||&cNeeded:|| ||&6x8 Leather||&6x8 Grass" to be unstealable
        if argument 1 has 7 Leather:
            if argument 1 has 7 Tall Grass:
                format slot 20 of argument 1 with Leather Leggings named "&7[&6Leather Leggings&7]" with lore "&cCraftable: &aTrue||&cNeeded:|| ||&6x7 Leather||&6x7 Grass" to close then run "craft %arg-1% leatherleggings"
        else:
            format slot 20 of argument 1 with Leather Leggings named "&7[&6Leather Leggings&7]" with lore "&cCraftable: &4False||&cNeeded:|| ||&6x7 Leather||&6x7 Grass" to be unstealable
        if argument 1 has 4 Leather:
            if argument 1 has 4 Tall Grass:
                format slot 21 of argument 1 with Leather Boots named "&7[&6Leather Boots&7]" with lore "&cCraftable: &aTrue||&cNeeded:|| ||&6x4 Leather||&6x4 Grass" to close then run "craft %arg-1% leatherboots"
        else:
            format slot 21 of argument 1 with Leather Boots named "&7[&6Leather Boots&7]" with lore "&cCraftable: &4False||&cNeeded:|| ||&6x4 Leather||&6x4 Grass" to be unstealable
#SEPARATOR
        format slot 4 of argument 1 with Gray Stained Glass Pane named " " to be unstealable
        format slot 7 of argument 1 with Gray Stained Glass Pane named " " to be unstealable
        format slot 16 of argument 1 with Gray Stained Glass Pane named " " to be unstealable
        format slot 13 of argument 1 with Gray Stained Glass Pane named " " to be unstealable
        format slot 22 of argument 1 with Gray Stained Glass Pane named " " to be unstealable
        format slot 25 of argument 1 with Gray Stained Glass Pane named " " to be unstealable
#OTHER
        if argument 1 has 2 Oak Wood Plank:
            format slot 5 of argument 1 with Stick named "&7[&6Stick&7]" with lore "&cCraftable: &aTrue||&cNeeded:|| ||&6x2 Wood" to close then run "craft %arg-1% stick"
        else:
            format slot 5 of argument 1 with Stick named "&7[&6Stick&7]" with lore "&cCraftable: &4False||&cNeeded:|| ||&6x2 Wood" to be unstealable
        if argument 1 has 2 Stick:
            if argument 1 has 2 Coal:
                format slot 6 of argument 1 with Torch named "&7[&6Torch&7]" with lore "&cCraftable: &aTrue||&cNeeded:|| ||&6x2 Stick||&6x2 Coal" to close then run "craft %arg-1% torch"
        else:
            format slot 6 of argument 1 with Torch named "&7[&6Torch&7]" with lore "&cCraftable: &4False||&cNeeded:|| ||&6x2 Stick||&6x2 Coal" to be unstealable
#STORAGE
        if {blueprints.%argument 1%.chest} is "Unlocked":
            if argument 1 has 30 Oak Wood Plank:
                if argument 1 has 10 Leather:
                    if argument 1 has 2 Iron Ingot:
                        if argument 1 has 4 Stick:
                            format slot 14 of argument 1 with Chest named "&7[&9Storage&7]" with lore "&cCraftable: &aTrue||&6BluePrint: &aUnlocked||&cNeeded:|| ||&6x30 Wood||&6x10 Leather||&6x2 Iron||&6x4 Stick" to close then run "craft %arg-1% chest"
            else:
                format slot 14 of argument 1 with Chest named "&7[&9Storage&7]" with lore "&cCraftable: &4False||&6BluePrint: &aUnlocked||&cNeeded:|| ||&6x30 Wood||&6x10 Leather||&6x2 Iron||&6x4 Stick" to be unstealable
        if {blueprints.%argument 1%.chest} isn't set:
            format slot 14 of argument 1 with Chest named "&7[&9Storage&7]" with lore "&cCraftable: &4False||&6BluePrint: &cLocked||&cNeeded:|| ||&6x30 Wood||&6x10 Leather||&6x2 Iron||&6x4 Stick" to be unstealable
#TNT            
        if {blueprints.%argument 1%.tnt} is "Unlocked":
            if argument 1 has 30 Coal:
                if argument 1 has 40 Stone:
                    if argument 1 has 10 Iron Ingot:
                        if argument 1 has 10 Stick:
                            format slot 15 of argument 1 with tnt named "&7[&9TNT&7]" with lore "&cCraftable: &aTrue||&6BluePrint: &aUnlocked||&cNeeded:|| ||&6x30 Coal||&6x40 Stone||&6x10 Iron||&6x10 Stick" to close then run "craft %arg-1% tnt"
            else:
                format slot 15 of argument 1 with tnt named "&7[&9TNT&7]" with lore "&cCraftable: &4False||&6BluePrint: &aUnlocked||&cNeeded:|| ||&6x30 Coal||&6x40 Stone||&6x10 Iron||&6x10 Stick" to be unstealable
        if {blueprints.%argument 1%.tnt} isn't set:
            format slot 15 of argument 1 with tnt named "&7[&9TNT&7]" with lore "&cCraftable: &4False||&6BluePrint: &cLocked||&cNeeded:|| ||&6x30 Coal||&6x40 Stone||&6x10 Iron||&6x10 Stick" to be unstealable
#HOUSE
        if argument 1 has 30 Oak Wood Plank:
            if argument 1 has 12 Stick:
                format slot 23 of player with Wooden Door Item named "&7[&6Wooden Door&7]" with lore "&cCraftable: &aTrue||&cNeeded:|| ||&6x30 Wood||&6x12 Stick||&7You can break enemy door only with Iron Axe !" to close then run "craft %argument 1% woodendoor"
        else:
            format slot 23 of player with Wooden Door Item named "&7[&6Wooden Door&7]" with lore "&cCraftable: &4False||&cNeeded:|| ||&6x30 Wood||&6x12 Stick||&7You can break enemy door only with Iron Axe !" to be unstealable
#MEDIC
        if {blueprints.%argument 1%.bandage} is "Unlocked":
            if argument 1 has 10 Leather:
                if argument 1 has 2 Redstone:
                    if argument 1 has 2 Tall Grass:
                        format slot 8 of argument 1 with Paper named "&7[&9Bandage&7]" with lore "&cCraftable: &aTrue||&6BluePrint: &aUnlocked||&cNeeded:|| ||&6x10 Leather||&6x2 Blood||&6x2 Grass" to close then run "craft %arg-1% bandage"
            else:
                format slot 8 of argument 1 with Paper named "&7[&9Bandage&7]" with lore "&cCraftable: &4False||&6BluePrint: &aUnlocked||&cNeeded:|| ||&6x10 Leather||&6x2 Blood||&6x2 Grass" to be unstealable
        if {blueprints.%argument 1%.bandage} isn't set:
            format slot 8 of argument 1 with Paper named "&7[&9Bandage&7]" with lore "&cCraftable: &4False||&6BluePrint: &cLocked||&cNeeded:|| ||&6x10 Leather||&6x2 Blood||&6x2 Grass" to be unstealable
            
on rightclick on crafting table:
    event-world is "%{world}%"
    cancel event
    make player execute command "/toolsbench %player%"

 

Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...