made ancient bark also wood

Closes #20 (again)
This commit is contained in:
Ellpeck 2018-12-22 12:51:11 +01:00
parent 6adcc4a013
commit c868bf3789
3 changed files with 22 additions and 7 deletions

View file

@ -13,13 +13,16 @@ import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
public class BlockAncientLog extends BlockLog implements IModItem, ICreativeItem, IModelProvider {
public BlockAncientLog() {
private final String baseName;
public BlockAncientLog(String baseName) {
this.baseName = baseName;
ModRegistry.add(this);
}
@Override
public String getBaseName() {
return "ancient_log";
return this.baseName;
}
@Override

View file

@ -6,8 +6,8 @@ import net.minecraft.block.material.Material;
public final class ModBlocks {
public static final Block ANCIENT_LOG = new BlockAncientLog();
public static final Block ANCIENT_BARK = new BlockImpl("ancient_bark", Material.WOOD).setSoundType(SoundType.WOOD).setHardness(2F);
public static final Block ANCIENT_LOG = new BlockAncientLog("ancient_log");
public static final Block ANCIENT_BARK = new BlockAncientLog("ancient_bark");
public static final Block ANCIENT_PLANKS = new BlockImpl("ancient_planks", Material.WOOD).setSoundType(SoundType.WOOD).setHardness(2F);
public static final Block ANCIENT_STAIRS = new BlockStairsNA("ancient_stairs", ANCIENT_PLANKS.getDefaultState());
public static final Block ANCIENT_SLAB = BlockSlabsNA.makeSlab("ancient_slab", Material.WOOD, SoundType.WOOD, 1.5F);

View file

@ -1,14 +1,26 @@
{
"forge_marker": 1,
"defaults": {
"model": "minecraft:cube_all",
"model": "minecraft:cube_column",
"textures": {
"all": "naturesaura:blocks/ancient_log"
"end": "naturesaura:blocks/ancient_log",
"side": "naturesaura:blocks/ancient_log"
},
"transform": "forge:default-block"
},
"variants": {
"normal": [{}],
"inventory": [{}]
"inventory": [{}],
"axis": {
"y": {},
"z": {
"x": 90
},
"x": {
"x": 90,
"y": 90
},
"none": {}
}
}
}