Posted December 16, 20195 yr I used if (this.world.isAirBlock(blockpos) && this.element == SpellElement.FIRE) { this.world.setBlockState(blockpos, Blocks.FIRE.getDefaultState()); } to set fire to blocks, however this doesn't set fire to the block if it's hit from the side. How do i do that? Edited December 17, 20195 yr by nil
December 17, 20195 yr Author The issue is that if the block is hit from the side it will spawn a fire block which will then instantly disappear if there is no block beneath the air block which was set to fire, instead of setting the fire to be on the blocks side. Edited December 17, 20195 yr by nil
December 17, 20195 yr Author It always sets the air block to "vertical" fire. Not sure why, that's my question.
December 17, 20195 yr Author For some reason i had in memory that all blocks could be set on fire like flammable blocks can. Everything is fine.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.