Setting fire on block

Discussion in 'Plugin Development' started by PureGolded, Jan 31, 2021.

Thread Status:
Not open for further replies.
  1. Offline

    PureGolded

    Hi, I'm super new to plugin development, and I can't find solution to my problem. The problem is, I want to place fire (set block on fire) with my hand. That means, I want to light up block I'm looking at.

    I tried action equals right click block, but I didn't figured out how to place block on that right-clicked block.
     
  2. Offline

    Newdel

  3. Offline

    Kars

    So you have the interacted block already?

    PlayerInteractEvent#getBlockFace to get the side from which you interacted, and set that block to fire if it's air.
     
    Last edited: Feb 1, 2021
Thread Status:
Not open for further replies.

Share This Page