Solved Cancel fire spreading?

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

dudle

Active Member
Jan 31, 2017
135
0
16
I tried to do on spread if event-block is fire cancel it but that didn't work. It didn't give me any errors but just continued to spread. How can I do it?

Thanks
 
I tried to do on spread if event-block is fire cancel it but that didn't work. It didn't give me any errors but just continued to spread. How can I do it?

Thanks
@dudle
To disable the fire:
code_language.skript:
on ignition:
    cancel event
To disable just the combust of entities like zombies:
code_language.skript:
on combust:
    if event-entity is a zombie:
        cancel the event
To disable just the destroying of the block:
code_language.skript:
on burn of any wood:
    cancel the event
 
1) Yes but the thing I want is for example be able to put fire on a block, for example using flint and steel, but so it won't spread, only stay on the block I placed it, because that's what it do in vanilla mc - it spreads no matter which block is next to it. How to cancel that?

2) How to change the durability of an item? For example, I rightclick on a block holding diamond sword and it would decrease its durability by X?

Thanks
[doublepost=1490205305,1490200169][/doublepost]Nvm just fixed it myself
 
Status
Not open for further replies.