Item Damage

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

Zakkeagle

New Member
Oct 20, 2017
5
0
0
24
How would I prevent items from burning in lava or fire?

Here's what I have:
code_language.skript:
on damage of entity:
    event-entity is item:
        damage was caused by burn:
            cancel the event

I've gotten no errors from it either, and I can't find anything on it
 
My suggestion:
code_language.skript:
on damage of a entity:
   if "%victim%" is "dropped item":
       if "%damage type%" is "burning" or "lava" or "fire":
           cancel event

I think, dropped items normally don't get any damage. Lava/Magma are the only one, right?

EDIT: This way, only lava damages would get blocked.
 
Last edited:
Status
Not open for further replies.