Solved How can I use skript mirror? It doesn't working. I want to disable level drops of chickens.

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

Mani

Member
Mar 21, 2019
17
0
0
33
Code:
    if the attacker is a player:
        if the victim is a chicken:
            clear drops
            event.setExpToDrop(0)
 
Use:
import: org.bukkit.(event).(event) i think its like that
on death:
if the attacker is a player:
if the victim is a chicken:
clear drops
event.setExpToDrop(0)
 
Use:
import: org.bukkit.(event).(event) i think its like that
on death:
if the attacker is a player:
if the victim is a chicken:
clear drops
event.setExpToDrop(0)
These are the errors:
Code:
[18:37:54 ERROR]: invalid line - all code has to be put into triggers (OiC.sk, line 77: import: org.bukkit.(event).(event)')
[18:37:54 ERROR]: 'event.setExpToDrop(0)' is not a boolean (yes/no) (OiC.sk, line 83: event.setExpToDrop(0)')
And this are the skript:
Code:
import: org.bukkit.(event).(event)

on death:
    if the attacker is a player:
        if the victim is a chicken:
            clear drops
            event.setExpToDrop(0)
 
That method is only used in blockExp events and fishing events

Screen Shot 2019-03-23 at 11.28.07 am.png


this is the method you probably wanna use
setDroppedExp
 
  • Like
Reactions: Mani
Status
Not open for further replies.