Custom rubber tree generation algorithm, tress now spawn with sap, and they dont clip other tress. They also have a spike

This commit is contained in:
modmuss50 2016-02-21 13:40:20 +00:00
parent aad0da93cc
commit b9f3d9c60a
4 changed files with 160 additions and 22 deletions

View file

@ -8,6 +8,7 @@ import net.minecraft.item.ItemStack;
import net.minecraft.util.BlockPos;
import net.minecraft.world.World;
import techreborn.client.TechRebornCreativeTabMisc;
import techreborn.world.RubberTreeGenerator;
import techreborn.world.TreeGenerator;
import java.util.List;
@ -30,7 +31,7 @@ public class BlockRubberSapling extends BlockSapling {
return;
}
worldIn.setBlockToAir(pos);
TreeGenerator.treeGenerator.generate(worldIn, rand, pos);
new RubberTreeGenerator(false).generate(worldIn, rand, pos);
}
@Override