on script load: import "org.bukkit.inventory.ItemFlag" get expression hide (0¦attributes|1¦destroy[s]|2¦enchant[s]|3¦(placed|built|build) [on]|4¦potion effects|5¦unbreakable): switch parse mark: case 0: continue returning {ItemFlag}.HIDE_ATTRIBUTES! case 1: continue returning {ItemFlag}.HIDE_DESTROYS! case 2: continue returning {ItemFlag}.HIDE_ENCHANTS! case 3: continue returning {ItemFlag}.HIDE_PLACED_ON! case 4: continue returning {ItemFlag}.HIDE_POTION_EFFECTS! case 5: continue returning {ItemFlag}.HIDE_UNBREAKABLE! get expression %itemstack% with [item] flag[s] %objects%: set {_item} to first element out of (try ((expression 1).getRandom()) and expression 1) set {_stack} to {_item}.clone() set {_meta} to {_stack}.getItemMeta() {_meta}.addItemFlags([expressions 2 as {ItemFlag}]); {_stack}.setItemMeta({_meta}); continue returning {_stack}