Solved Need help; drop by mob with custom name doesn't work

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

Estebon5

New Member
May 6, 2021
5
0
1
27
I've tried:

on death:
if victim's name is "Lv1 Pig":
clear drops
set {_drop} to iron ingot named "&fBasic Iron Ingot"
drop {_drop} to the location 1 meter above the attacker

on death:
if victim's display name is "Lv1 Pig":
clear drops
set {_drop} to iron ingot named "&fBasic Iron Ingot"
drop {_drop} to the location 1 meter above the attacker

on death:
victim's name is "Lv1 Pig":
clear drops
set {_drop} to iron ingot named "&fBasic Iron Ingot"
drop {_drop} to the location 1 meter above the attacker

on death:
if victim's name "Lv1 Pig":
clear drops
set {_drop} to iron ingot named "&fBasic Iron Ingot"
drop {_drop} to the location 1 meter above the attacker

etc...
I've tried to find solution 2 hours ago ;(. Im new at skript.
 
on death:
if victim is "Lv1 Pig":
clear drops
drop a iron ingot named "&fBasic Iron Ingot" 1 meter above the attacker

Try that, I'm new so apologies if that doesn't work - is there any reason you wanted to set it under {_drop} ?
 
any errors when reloading?
Thank you! i finally fixed it
For all with this problem:

0on death:
2if victim's display name is "Lv1 Pig":
4clear the drops
4set {_drop} to iron ingot named "&fBasic Iron Ingot"
4drop {_drop} at victim's location
4give 1 xp to the attacker
the number is the spaces, don't put it
If doesn't work uninstall and reinstall skript plugin
 
Last edited:
Status
Not open for further replies.