Discord Thread Help giving named items through console.

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

This thread came from the skUnity Discord. You can't reply to it here but if you join the skUnity Discord, you'll be able to post a reply there. The thread link is part of the thread's message.
Status
Not open for further replies.

skUnity Discord

Site Manager
Aug 5, 2023
12,755
1
0
The skUnity Discord
discord.gg
I have this code so far

on swap hand items:
if {cd.%player%1} is not set:
set {cd.%player%1} to true
event-player's tool is a light blue dye named "&3&lTest"
execute console command "/give %player% diamond_pickaxe{display:{Name:'[{"text":"test pickaxe","italic":false}]',Lore:['[{"text":"Test Lore","italic":false}]']}} 1"
wait 300 seconds
delete {cd.%player%1}

but Skript doesn't understand the condition/effect of this line: execute console command "/give %player% diamondpickaxe{display:{Name:'[{"text":"test pickaxe","italic":false}]',Lore:['[{"text":"Test Lore","italic":false}]']}} 1" but it can understand "/give %player% diamondpickaxe"

Posted by: Underrated_Fishy from the skUnity Discord. View the thread on skUnity Discord here
 
will that work with enchantments too? and enchantments that go over the normal limits?
I tried to add on "enchanted with "fortune 5"" and it says that "fortune 5" is not a nbt compound. Do you know how to add enchantments to the item?
Nevermind! I figured it out! Thank you for your help with the name and the lore!

Posted by: Underrated_Fishy from the skUnity Discord.
 
Status
Not open for further replies.