on death drop sword with name

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

kamilleon

Member
Nov 18, 2017
48
0
6
24
I have this little bit of code here:
code_language.skript:
on death:
  if event-entity is a zombie:
    if event-entity's name is "&c&lDurva &e&lBoss":
      drop 1 diamond at event-entity sword named "&e&lOmgi, such good" with sharpness 10
but i don' know whats the problem in the last line.
 
Which sword? (Diamond, Iron, stone, woood....) Btw did you try debugs? (Im not sure if event-entity works)
 
just broadcasting after "if" code, are you getting broadcasting?
I fixed the code a little bit, the drop now works, but how do i add enchants?

code_language.skript:
on death of zombie:
  if zombie's name is "&c&lDurva &e&lBoss":
    add 1 diamond sword named "&e&l2ez4me" to drops
 
I fixed the code a little bit, the drop now works, but how do i add enchants?

code_language.skript:
on death of zombie:
  if zombie's name is "&c&lDurva &e&lBoss":
    add 1 diamond sword named "&e&l2ez4me" to drops
code_language.skript:
on death of zombie:
  if zombie's name is "&c&lDurva &e&lBoss":
    add 1 diamond sword of unbreaking 1 named "&e&l2ez4me" to drops
 
Status
Not open for further replies.