Jump to content

Can I give players items that have CustomDataModel in skript???


NoPulp

Recommended Posts

Is there any addons to give players a Item with customdatamodel in skript like I want to do something like this:
command /givepistol [<player>]:
    permission: op
    description: Gives gun
    trigger:
        execute "give %arg-1% minecraft:carrot_on_a_stick{CustomModelData:1,display:{Name:'{\"text\":\"Pistol\",\"color\":\"white\"}'}} 1"
         give 64 gold nuggets named "&6Pistol Ammo" to the player

Link to comment
Share on other sites

  • 2 weeks later...
command /givepistol [<player>]:
    permission: op
    description: Gives gun
    trigger:
        execute console command "give %arg-1% minecraft:carrot_on_a_stick{CustomModelData:1,display:{Name:'{\"text\":\"Pistol\",\"color\":\"white\"}'}} 1"
         give 64 gold nuggets named "&6Pistol Ammo" to the player

might work

Owner of WiredGens (wiredgens.minehut.gg)

 

Plugin Developer and Skripter

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...