options:
prefix: &7[&eRewardChest&7]
command /rewardchest [<text>] [<text>]:
permission: rewardchest.create
trigger:
arg-1 is not set:
send "{@prefix} &c/rewardchest create [name]" to player
stop
if arg-1 is equal to "create":
if arg-2 is set:
give player 1 chest named "&eRewardChest" with lore "&c&l&o%arg-2%"
send "{@prefix} &cYou've got an RewardChest" to player
set {rewardchest.%arg-2%} to true
else:
send "{@prefix} &cYou need to enter a name on the chest!" to player
stop
else:
send "{@prefix} &c/rewardchest create [name]" to player
stop
on rightclick:
if clicked block is chest:
So hi! i wonder how i can make so when i create a chest with a specific lore it opens a gui with random stuff i can take. i only manage to make in unstealeble?
prefix: &7[&eRewardChest&7]
command /rewardchest [<text>] [<text>]:
permission: rewardchest.create
trigger:
arg-1 is not set:
send "{@prefix} &c/rewardchest create [name]" to player
stop
if arg-1 is equal to "create":
if arg-2 is set:
give player 1 chest named "&eRewardChest" with lore "&c&l&o%arg-2%"
send "{@prefix} &cYou've got an RewardChest" to player
set {rewardchest.%arg-2%} to true
else:
send "{@prefix} &cYou need to enter a name on the chest!" to player
stop
else:
send "{@prefix} &c/rewardchest create [name]" to player
stop
on rightclick:
if clicked block is chest:
So hi! i wonder how i can make so when i create a chest with a specific lore it opens a gui with random stuff i can take. i only manage to make in unstealeble?