how to replace a block of fire with air ?

Started by Norite113 on

Topic category: Help with modding (Java Edition)

Last seen on 12:59, 11. May 2019
Joined Jan 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to replace a block of fire with air ?

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

Last seen on 12:59, 11. May 2019
Joined Jan 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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));
}