Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function compress(p: player, oldamount: integer, old: item, new: item):
- if {_p} has {_old}:
- loop {_p}'s inventory:
- if loop-value's type = {_old}'s type:
- if name of loop-value is not set:
- if amount of loop-value in {_p}'s inventory >= {_oldamount}:
- broadcast {_oldamount}
- broadcast amount of loop-value in {_p}'s inventory to {_p}
- send "1" to {_p}
- remove {_oldamount} of loop-value from {_p}'s inventory
- send "2" to {_p}
- drop dropped {_new} to {_p}
- send {_new} to {_p}
- send "3" to {_p}
- command compress:
- permission: compress.use
- trigger:
- if {compress::%player's uuid%} is not set:
- set {compress::%player's uuid%} to true
- send "&aEnabled compressing!"
- else:
- delete {compress::%player's uuid%}
- send "&cDisabled compressing!"
- on break:
- if {compress::%player's uuid%} is set:
- compress(player, 64, coal ore, coal of mending 1 named "&8Enchanted Coal" with enchants flag hidden) # Works
- compress(player, 64, iron ore, raw Iron of mending 1 named "&fEnchanted Iron" with enchants flag hidden) # Works
- compress(player, 64, Gold ore, raw Gold of mending 1 named "&6Enchanted Gold" with enchants flag hidden) # Works
- compress(player, 64, Diamond ore, Diamond of mending 1 named "&bEnchanted Diamond" with enchants flag hidden) # Works
- compress(player, 64, Emerald ore, Emerald of mending 1 named "&aEnchanted Emerald" with enchants flag hidden) # Works
- compress(player, 64, Redstone ore, Redstone of mending 1 named "&4Enchanted Redstone" with enchants flag hidden) # Work
- compress(player, 64, Oak Log, Oak log of mending 1 named "&7Enchanted Oak Wood" with enchants flag hidden)
- compress(player, 64, Blue Concrete, Blue concrete of mending 1 named "&9Enchanted Blue Concrete" with enchants flag hidden)
- compress(player, 64, Red Concrete, Red concrete of mending 1 named "&4Enchanted Red Concrete" with enchants flag hidden)
- compress(player, 64, Slime Block, slimeball of mending 1 named "&2Enchanted Slime" with enchants flag hidden)
- #Over World Done ------------------------
- compress(player, 64, Nether Quartz ore, Nether Quartz ore of mending 1 named "&fNether Quartz Ore" with enchants flag hidden)
- compress(player, 64, Obsidian, Obsidian of mending 1 named "&8Obsidian" with enchants flag hidden)
- compress(player, 64, Gilded Blackstone, Gilded Blackstone of mending 1 named "&7Gilded Blackstone" with enchants flag hidden)
- compress(player, 64, Blackstone, Blackstone of mending 1 named "&7Blackstone" with enchants flag hidden)
- compress(player, 64, Crying Obsidian, Crying Obsidian of mending 1 named "&dCrying Obsidian" with enchants flag hidden)
- compress(player, 64, Polished Blackstone, Polished Blackstone of mending 1 named "&7Polished Blackstone" with enchants flag hidden)
- compress(player, 64, Stripped Crimson Hyphae, Stripped Crimson Hyphae of mending 1 named "&cStripped Crimson Hyphae" with enchants flag hidden)
- compress(player, 64, Stripped Warped Hyphae, Stripped Warped Hyphae of mending 1 named "&bStripped Warped Hyphae" with enchants flag hidden)
- #Nether Done ------------------------
- #For End World compress(player, 64, End Stone, End Stone of mending 1 named "&eEnd Stone" with enchants flag hidden)
- #For End World compress(player, 16, Beacon, Beacon of mending 1 named "&bBeacon" with enchants flag hidden)
- #For End World compress(player, 8, Ender Pearl, Ender Pearl of mending 1 named "&bEnder Pearl" with enchants flag hidden)
- #For End World compress(player, 2, Dragon Egg, Dragon Egg of mending 1 named "&5Dragon Egg" with enchants flag hidden)
- #For End World compress(player, 3, Dragon Head, Dragon Head of mending 1 named "&bPhantom" with enchants flag hidden)
- #For End World compress(player, 64, Dark Prismarine, Dark Prismarine of mending 1 named "&2Dark Prismarine" with enchants flag hidden)
- #For End World compress(player, 64, Prismarine Bricks, Prismarine Bricks of mending 1 named "&bPrismarine Bricks" with enchants flag hidden)
- #For End World compress(player, 64, Blue Ice, Blue Ice of mending 1 named "&bBlue Ice" with enchants flag hidden)
- #For End World compress(player, 64, Prismarine, Prismarine of mending 1 named "&bPrismarine" with enchants flag hidden)
- #For End World compress(player, 24, prismarine named "&bPrismarine", Prismarine shard of mending 1 named "&bPrismarine Shard" with enchants flag hidden)
Advertisement
Add Comment
Please, Sign In to add comment