Tree/Leaves Lighting on Fire

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

Chemically

New Member
Feb 27, 2019
7
0
0
24
Category: UHC

Suggested name: Deforestation

Spigot/Skript Version: Skript dev36

What I want: When a tree is chopped, there is a 1% chance that the tree will become completely engulfed in fire and when an anvil is used or a furnace is lit within 25 blocks of at least 1 leaf block, 20% of the leaf blocks in the 25 block radius will catch on fire.

Ideas for commands: /deforestation on/off/toggle

Ideas of permissions: uhc.host

When I'd like it by: In a week.
 
Code:
on mine:
  if event-block is log:
    loop all blocks in a radius of 25:
      if loop-block is log:
        stop loop
    chance of 5%:
      loop all blocks in a radius of 25:
        if loop-block is leaves:
          set block on fire