Vanilla Item Name

  • 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 comminuty!

    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.

LeStegii

Member
Mar 18, 2019
3
0
0
21
Hey, im currently creating a custom enchantments Script without using Tuske and i'm having a problem.

Spigot: 1.12.2
Plugins: Tuske, Skript
Skript: 2.4-alpha3
Tuske: 1.8.2-Pikachu-Patch-3

Code:
command /enchantmytool:
    trigger:
        set {_name} to display name of player's held item
        set name of player's tool to "&b%{_name}%"

2019-06-25_19.17.34.png

The problem is, that the tool doesn't have a name/display name, so it will be called "<none>". Is there any way i can fix this without manually checking the item and setting a name for it?
 
Hey, im currently creating a custom enchantments Script without using Tuske and i'm having a problem.

Spigot: 1.12.2
Plugins: Tuske, Skript
Skript: 2.4-alpha3
Tuske: 1.8.2-Pikachu-Patch-3

Code:
command /enchantmytool:
    trigger:
        set {_name} to display name of player's held item
        set name of player's tool to "&b%{_name}%"

2019-06-25_19.17.34.png

The problem is, that the tool doesn't have a name/display name, so it will be called "<none>". Is there any way i can fix this without manually checking the item and setting a name for it?
You can check `if {_name} is set`
 
Status
Not open for further replies.