Cannot give trident to player

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

PuskaJamal

Member
Nov 21, 2025
1
0
1
Minecraft 1.21.10
SkBee-3.13.2
Skript-2.13.1
skript-yaml-1.7.2
Paper 1.21.10 Build #113

I can't figure out how to give a trident to the player when trident is as a variable.

code that does not work:
command /trident:
trigger:
set {_item} to minecraft:trident
set slot 0 of player to {_item}
give {_item} to player

works fine with any other item

is there something different with tridents?
 
Try...
Code:
command /trident:
    trigger:
        set {_item} to 1 of trident
        set slot 0 of inventory of player to {_item}