Rewardchest

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Lukkeeh

Member
Jun 24, 2017
11
0
1
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?
 
Status
Not open for further replies.