Nbt Drop item from monster

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

Status
Not open for further replies.

MateoxPL

Active Member
Jan 27, 2018
116
0
16
Hello
I try create skript that the item that dropped out will be displayed

code (there are no errors but it does not work):

Code:
on death:
        clear drops 
        if name of victim contains "Zombie":
              chance of 100%:
                    drop stone with custom nbt "{CustomNameVisible:1,CustomName:""&2Pistolet&cV2""}" at victim
 
1) Change of 100? WHY
2) Which addon are you using for NBT?
 
ah, im not quite sure how SkStuff deals with NBT, but you could try creating an item in a variable, add NBT to the variable, and then dropping the variable
 
I tried it but it does not work
Code:
            set {_drop} to iron block
            add "{CustomName:""%player%"",CustomNameVisible:1}" to nbt of {_drop} parsed as item
            drop {_drop} at target block
 
Status
Not open for further replies.