Just so you know, we don't know the file format for every file. If it's just a bunch of random characters, it's probably a .zip or .jar.
command /collections:
trigger:
open chest with 3 rows named "Collections" to player
if {collectionsunlocked.%player%} is 9:
set {collectionpercent.%player%} to 100
if {collectionsunlocked.%player%} is 8:
set {collectionpercent.%player%} to 88.8
if {collectionsunlocked.%player%} is 7:
set {collectionpercent.%player%} to 77.7
if {collectionsunlocked.%player%} is 6:
set {collectionpercent.%player%} to 66.6
if {collectionsunlocked.%player%} is 5:
set {collectionpercent.%player%} to 55.5
if {collectionsunlocked.%player%} is 4:
set {collectionpercent.%player%} to 44.4
if {collectionsunlocked.%player%} is 3:
set {collectionpercent.%player%} to 33.3
if {collectionsunlocked.%player%} is 2:
set {collectionpercent.%player%} to 22.2
if {collectionsunlocked.%player%} is 1:
set {collectionpercent.%player%} to 11.1
if {collectionsunlocked.%player%} is 0:
set {collectionpercent.%player%} to 0
format slot 0 of player with 160:7 named " " to be unstealable
format slot 1 of player with 160:7 named " " to be unstealable
format slot 2 of player with 160:7 named " " to be unstealable
format slot 3 of player with 160:7 named " " to be unstealable
if {collectionsunlocked.%player%} is 0:
format slot 4 of player with 321 named "&aCollections" with lore "&7Collection Unlocked: &e%{collectionpercent.%player%}%&6%%||&f-------------------- &e%{collectionsunlocked.%player%}%&6/&e9" to be unstealable
if {collectionsunlocked.%player%} is 1:
format slot 4 of player with 321 named "&aCollections" with lore "&7Collection Unlocked: &e%{collectionpercent.%player%}%&6%%||&2--&f------------------ &e%{collectionsunlocked.%player%}%&6/&e9" to be unstealable
if {collectionsunlocked.%player%} is 2:
format slot 4 of player with 321 named "&aCollections" with lore "&7Collection Unlocked: &e%{collectionpercent.%player%}%&6%%||&2----&f---------------- &e%{collectionsunlocked.%player%}%&6/&e9" to be unstealable
if {collectionsunlocked.%player%} is 3:
format slot 4 of player with 321 named "&aCollections" with lore "&7Collection Unlocked: &e%{collectionpercent.%player%}%&6%%||&2------&f-------------- &e%{collectionsunlocked.%player%}%&6/&e9" to be unstealable
if {collectionsunlocked.%player%} is 4:
format slot 4 of player with 321 named "&aCollections" with lore "&7Collection Unlocked: &e%{collectionpercent.%player%}%&6%%||&2--------&f------------ &e%{collectionsunlocked.%player%}%&6/&e9" to be unstealable
if {collectionsunlocked.%player%} is 5:
format slot 4 of player with 321 named "&aCollections" with lore "&7Collection Unlocked: &e%{collectionpercent.%player%}%&6%%||&2----------&f---------- &e%{collectionsunlocked.%player%}%&6/&e9" to be unstealable
if {collectionsunlocked.%player%} is 6:
format slot 4 of player with 321 named "&aCollections" with lore "&7Collection Unlocked: &e%{collectionpercent.%player%}%&6%%||&2------------&f-------- &e%{collectionsunlocked.%player%}%&6/&e9" to be unstealable
if {collectionsunlocked.%player%} is 7:
format slot 4 of player with 321 named "&aCollections" with lore "&7Collection Unlocked: &e%{collectionpercent.%player%}%&6%%||&2--------------&f------ &e%{collectionsunlocked.%player%}%&6/&e9" to be unstealable
if {collectionsunlocked.%player%} is 8:
format slot 4 of player with 321 named "&aCollections" with lore "&7Collection Unlocked: &e%{collectionpercent.%player%}%&6%%||&2----------------&f---- &e%{collectionsunlocked.%player%}%&6/&e9" to be unstealable
if {collectionsunlocked.%player%} is 9:
format slot 4 of player with 321 named "&aCollections" with lore "&7Collection Unlocked: &e%{collectionpercent.%player%}%&6%%||&2-------------------- &e%{collectionsunlocked.%player%}%&6/&e9" to be unstealable
format slot 5 of player with 160:7 named " " to be unstealable
format slot 6 of player with 160:7 named " " to be unstealable
format slot 7 of player with 160:7 named " " to be unstealable
format slot 8 of player with 160:7 named " " to be unstealable
if {string.%player%} is not set:
format slot 9 of player with 351:8 named "&cString" with lore "&7Find this item to add it to your||&7collection and unlock collection||&7rewards!" to run [execute player command "itemnotfound1"]
if {string.%player%} is true:
format slot 9 of player with 287 named "&eString" to be unstealable
else if {string.%player%} is false:
format slot 9 of player with 351:8 named "&cString" with lore "&7Find this item to add it to your||&7collection and unlock collection||&7rewards!" to run [execute player command "itemnotfound1"]
if {slimeball.%player%} is not set:
format slot 10 of player with 351:8 named "&cSlimeball" with lore "&7Find this item to add it to your||&7collection and unlock collection||&7rewards!" to run [execute player command "itemnotfound1"]
if {slimeball.%player%} is true:
format slot 10 of player with 341 named "&eSlimeball" to be unstealable
else if {string.%player%} is false:
format slot 10 of player with 351:8 named "&cSlimeball" with lore "&7Find this item to add it to your||&7collection and unlock collection||&7rewards!" to run [execute player command "itemnotfound1"]
if {rottenflesh.%player%} is not set:
format slot 11 of player with 351:8 named "&cRotten Flesh" with lore "&7Find this item to add it to your||&7collection and unlock collection||&7rewards!" to run [execute player command "itemnotfound1"]
else if {rottenflesh.%player%} is true:
format slot 11 of player with 367 named "&eRotten Flesh" to be unstealable
if {spidereye.%player%} is not set:
format slot 12 of player with 351:8 named "&cSpider Eye" with lore "&7Find this item to add it to your||&7collection and unlock collection||&7rewards!" to run [execute player command "itemnotfound1"]
else if {spidereye.%player%} is true:
format slot 12 of player with 375 named "&eSpider Eye" to be unstealable
format slot 18 of player with 160:7 named " " to be unstealable
format slot 19 of player with 160:7 named " " to be unstealable
format slot 20 of player with 160:7 named " " to be unstealable
format slot 21 of player with 160:7 named " " to be unstealable
format slot 22 of player with 160:7 named " " to be unstealable
format slot 23 of player with 160:7 named " " to be unstealable
format slot 24 of player with 160:7 named " " to be unstealable
format slot 25 of player with 160:7 named " " to be unstealable
format slot 26 of player with 160:7 named " " to be unstealable
on command:
if command is "itemnotfound1":
cancel event
message "&cYou haven't found this item yet!"
command /resetallcollections:
trigger:
delete {string.%player%}
set {collectionsunlocked.%player%} to 0
delete {slimeball.%player%}
delete {rottenflesh.%player%}
delete {spidereye.%player%}
message "&6All your collections were reset"
on pick up:
if item is string:
if player has permission "MarsCore.collection":
if {string.%player%} is not set:
set {string.%player%} to true
message " &6&lCOLLECTION UNLOCKED &eString" to player
add 1 to {collectionsunlocked.%player%}
stop
if {string.%player%} is true:
stop
if item is slimeball:
if player has permission "MarsCore.collection":
if {slimeball.%player%} is not set:
set {slimeball.%player%} to true
message " &6&lCOLLECTION UNLOCKED &eSlimeball" to player
add 1 to {collectionsunlocked.%player%}
stop
if {slimeball.%player%} is true:
stop
if item is rotten flesh:
if player has permission "MarsCore.collection":
if {rottenflesh.%player%} is not set:
set {rottenflesh.%player%} to true
message " &6&lCOLLECTION UNLOCKED &eRotten Flesh" to player
add 1 to {collectionsunlocked.%player%}
stop
if {rottenflesh.%player%} is true:
stop
if item is spider eye:
if player has permission "MarsCore.collection":
if {spidereye.%player%} is not set:
set {spidereye.%player%} to true
message " &6&lCOLLECTION UNLOCKED &eSpider Eye" to player
add 1 to {collectionsunlocked.%player%}
stop
if {spidereye.%player%} is true:
stop