1. 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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Furnace damage while smelting

Discussion in 'Requests' started by MEGATREX4, Aug 3, 2022.

  1. MEGATREX4

    MEGATREX4 Member

    Joined:
    Aug 3, 2022
    Messages:
    1
    Likes Received:
    0
    I want that while the furnace is melting it will deal damage to the player

    i tried using different triggers
    on smelt: - does not work
    on fuel burn: - does not work
    on join: - works all the time, even when it is not melting



    Code (Text):
    1. on smelt:
    2.     wait 1 tick
    3.     while player is alive:
    4.         loop all blocks in radius 1 around the player:
    5.             if loop-block is a furnace:
    6.                 damage player by 0.5
    7.         wait 1 second
     

Share This Page

Loading...