give item with item model 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!

KobaltDraws

Member
Apr 19, 2025
1
0
1
Hello! I'm currently developing an rpg-type server, and i'm trying to give the player an item that has an item model in the texture pack i've made. However, i am unsure of how to go about this. This is my entire code:


Code:
on break:
    player's gamemode is not creative:
        player is in world "Grasslands":

            if event-block is oak wood:
                set {flevel} to level of fortune on player's tool
                set {drops} to {flevel} + 1
                set event-block to bedrock
                give {drops} of stick{item_model="custom:oak_bark_model"} to player
                wait 1 second
                set event-block to oak wood

This is the error:
 

Attachments

  • Screenshot 2025-04-18 192116.png
    Screenshot 2025-04-18 192116.png
    83 KB · Views: 147