Name of dropped item

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

MateoxPL

Active Member
Jan 27, 2018
116
0
0
25
Hello
how to make a script that will display the name of the dropped item (for kill mobs)?
Example:
5af62d67af02315ec03c6401d5546236ca8ebd66


Best Regards
[doublepost=1542290712,1542124437][/doublepost]Ref
 
code_language.skript:
on drop:
    Add "{CustomName:""%name of dropped item%"",CustomNameVisible:1}" to nbt of dropped item

need skstuff
 
code_language.skript:
on drop:
    if "%name of dropped item%" isn't "<none>":
        Add "{CustomName:""%name of dropped item%"",CustomNameVisible:1}" to nbt of dropped item       
    else:
        Add "{CustomName:""%dropped item%"",CustomNameVisible:1}" to nbt of dropped item
 
Item names don't transfer onto item entities. Use the NBT data of the dropped item and look for the Display:{Name:"<actual item name>"} NBT tag.
 
code_language.skript:
on drop:
    Add "{CustomName:""%name of dropped item%"",CustomNameVisible:1}" to nbt of dropped item

need skstuff
This is correct


Just replace %name of dropped item% with %name of event-entity%
 
This is correct


Just replace %name of dropped item% with %name of event-entity%

Thanks this works fine
do you know how to do when you kill zombies, the name of the item will be displayed?
at the moment only what the player will drop is displayed
[doublepost=1545565858,1544967480][/doublepost]refresh
 
Status
Not open for further replies.