Creating a PvP trophy system. Need a hero!

  • 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.

MintyMonster

Member
May 3, 2020
2
0
0
Hello guys and girls,
This is my first post here and looking for some help with Ender chests.

I simply want to add a named item to a certain player's Ender Chest.

Code:
command /tgive15 [<player>]:
    permission: skript.trophies.give15
    description: Give player trophy for 15 Killstreak.
    trigger:
        add 1 paper named "&c15 Killstreak!" to %player% ender chest

This is what I have, but it's throwing errors.

Any help is great!

Thanks!
 
Hello guys and girls,
This is my first post here and looking for some help with Ender chests.

I simply want to add a named item to a certain player's Ender Chest.

Code:
command /tgive15 [<player>]:
    permission: skript.trophies.give15
    description: Give player trophy for 15 Killstreak.
    trigger:
        add 1 paper named "&c15 Killstreak!" to %player% ender chest

This is what I have, but it's throwing errors.

Any help is great!

Thanks!
Try:
code_language.skript:
command /tgive15 [<player>]:
    permission: skript.trophies.give15
    permission message: §4No permissions.
    description: Give player trophy for 15 Killstreak.
    trigger:
        add 1 paper named "&c15 Killstreak!" to the player's enderchest
#if this dont work, remove 'the'
 
Last edited:
Try:
code_language.skript:
command /tgive15 [<player>]:
    permission: skript.trophies.give15
    permission message: §4No permissions.
    description: Give player trophy for 15 Killstreak.
    trigger:
        add 1 paper named "&c15 Killstreak!" to the player's enderchest
#if this dont work, remove 'the'

Awesome man! This worked great!

Was just wondering, if you know anything about renaming enderchest's inventory? Like, is there an addon that can do that, or a skript that can?

Thanks a lot!
 
I don't know how to rename Ender chests, so if you want, you can make a GUI for their trophies like this (btw I'm using TuSKe GUIs):
Code:
on first join:
   set {%player%.t15} to false

command /tgive15 [<player>]:
# the code you already wrote up there
set {%player%.t15} to true

command /trophies:
   trigger:
      open virtual chest inventory with 5 rows named "&8&lTROPHIES" to player
      if {%player%.t15} is true:
         format gui slot 10 of player with paper named "&c&l15 Killstreak" with lore "&7&oYou got a 15 player killstreak!"
Then again, that's just how I'd do it. You can still try it and see if you like it.
 
Status
Not open for further replies.