Sorbon Posted February 13, 2020 Share Posted February 13, 2020 (edited) Small Skript by Sorbon Usuage: You add the amount + base item in @BlocksToCompress and the upgraded version in @UpgradedVersion, it willit will always upgrade with the item, in the same position! options: # Just add them in order, and be carefully that you dont mess up :D # 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: 64 coal, 64 iron ingot and 64 diamond # 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: 2 coal block named "lol", 1 of glowing iron block and 1 of stone named "name" with lore "Lore 1", "Lore 2" and "lore 3" 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 Edited February 14, 2020 by Sorbon 1 1 Link to comment Share on other sites More sharing options...
IronAnt2000 Posted July 13, 2021 Share Posted July 13, 2021 how to use Link to comment Share on other sites More sharing options...
ItsKirby Posted July 13, 2021 Share Posted July 13, 2021 17 hours ago, IronAnt2000 said: how to use I wouldn't reply to a post that is made from 1 year ago. Requesting to lock post Yo who actually reads these [Vip] - 12/29/2020[Pro] - 1/25/2022 Link to comment Share on other sites More sharing options...
StickFigure98 Posted August 29, 2021 Share Posted August 29, 2021 it drop my tps alot Link to comment Share on other sites More sharing options...
CobaltDreamer Posted August 30, 2021 Share Posted August 30, 2021 Hi StickFigure98, Kindly refrain from replying to threads that have been inactive for more than a month. It's necroposting and not allowed. We'll be now locking this thread. Hope you still have a great day. Link to comment Share on other sites More sharing options...
Recommended Posts