Jump to content

NiCoMaCz

Member
  • Posts

    10
  • Joined

  • Last visited

Posts posted by NiCoMaCz

  1. Can Anyone Help Me Fix This Compresse/Uncompress skript (its quite old), so basically the skript goes like this

    options:
        # Just add them in order, and be carefully that you dont mess up 😄
        # in this example:     64 coal = 2 coal blocks || 64 Iron ingot = 1 Iron block....
        # seperated by "," and the last comma has to be "and"
        # it will always upgrade with the item at the same position!
        
        
        BlocksToCompress: 9 diamond, 9 gold, 9 iron, 9 coal, 9 lapis
        # Enchanted Items: 1 of glowing %item%
        # named item: 1 of %item% named "Name"
        # lore: 1 of %item% named "name" with lore "Lore 1", "Lore 2" and "lore 3"
        UpgradedVersion: 1 Light Blue Glazed Terracotta named "&bCompressed Diamond", Yellow Glazed Terracotta named "&6Compressed Gold", 1 Light Gray Glazed Terracotta named "&7Compressed Iron", 1 Gray Glazed Terracotta named "&8Compressed Coal", 1 Blue Glazed Terracotta named "&1Compressed Lapis", 
        
    command /compress:
        trigger:
            compress(player)
    command /decompress:
        trigger:
            decompress(player)
        
    function compress(p:player):
        set {_n::*} to {@BlocksToCompress}
        set {_m::*} to {@UpgradedVersion}
        loop {_n::*}:
            while {_p} has loop-value:
                remove loop-value from {_p}'s inventory
                give {_p} {_m::%loop-index%}
                set {_s} to true
        send "&bYou have no blocks to compress." to {_p} if {_s} is not set
        
    function decompress(p:player):
        set {_n::*} to {@BlocksToCompress}
        set {_m::*} to {@UpgradedVersion}
        loop {_m::*}:
            while {_p} has loop-value:
                if {_p} can hold {_n::%loop-index%}:
                    remove loop-value from {_p}'s inventory
                    give {_p} {_n::%loop-index%}
        send "&bYou have no blocks to decompress." to {_p} if {_s} is not set

    its quite old, so yes and the bugs are 

    image.png.715b7a9f216a4a8597e06fdfe8b200cc.png
    image.png.d660072174aac905e47ca90f93946aa9.png

  2. basically its a prismarine shard
    that if in offhand, it acts like a totem of undying and gets removed and then it revives you with all of your items and also (idk you can add a special animation)
    but this will be only 20% chance of actually saving your life
    if it wont happen then youll just die and your totem will be removed
    but to increase this chance if you stack more prismarine shards the higher the chance will go up

×
×
  • Create New...