how to replace a block of fire with air ?

Started by Norite113 on Fri, 01/11/2019 - 16:07

Topic category: Help with MCreator modding

Last seen on 12:56, 13. Jan 2019
Joined Jan 2018
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
how to replace a block of fire with air ?
Fri, 01/11/2019 - 16:07

I need a code that turns a block of fire into the air

Last seen on 12:56, 13. Jan 2019
Joined Jan 2018
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
I find if (world…
Fri, 01/11/2019 - 20:59

I find

if (world.getBlockState(new BlockPos(i + x, j + 1, k)).getBlock() == Blocks.FIRE) {
world.setBlockToAir(new BlockPos(i + x, j + 1, k));
}