Pyrotech

Pyrotech

1M Downloads

Missing flammability / encouragement in many blocks

eightyfoahh opened this issue ยท 1 comments

commented

I noticed some blocks don't burn at all in Pyrotech.

While making a modpack, I used Controlled Burn to add custom values.
I would like to share them with you, if they could lighten the work somehow.

PYROTECH - missing flammability blocks.txt

I also noticed that Drying Racks and Living Tar DO burn.

Is it because of using (at BlockDryingRack.java):

public BlockDryingRack() { ... }

  @Override
  public int getFlammability(IBlockAccess world, BlockPos pos, EnumFacing face) {

    return 150;
  }

(at BlockLivingTar.java)

 @Override
  public boolean isFireSource(@Nonnull World world, BlockPos pos, EnumFacing side) {

    return (side == EnumFacing.UP);
  }

  @Override
  public int getFlammability(IBlockAccess world, BlockPos pos, EnumFacing face) {

    return 0;
  }

  @Override
  public int getFireSpreadSpeed(IBlockAccess world, BlockPos pos, EnumFacing face) {

    return 0;
  }

Instead of? (at BlockThatch.java):

public static final String NAME = "thatch";

  public BlockThatch() {

    super(Material.GRASS);
    this.setSoundType(SoundType.PLANT);
    this.setHardness(0.5F);
    this.setHarvestLevel(null, 0);
    Blocks.FIRE.setFireInfo(this, 60, 100); // this line here!
  }
commented

Thanks! I will have to look into this when I get my dev environment set back up.