mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-17 19:25:06 +00:00
proof of concept
This commit is contained in:
1 parent
7a519e2a5a
commit
598237bde4
5 files changed
+20
-1
No files matched your search
@@ -95,6 +95,17 @@ public enum Features {
|
||||
aluminum.carverHelper.addVariation("tile.metalOre.5.desc", 5, "metals/aluminum/bolted", 25);
|
||||
aluminum.carverHelper.registerAll(aluminum, "aluminumblock");
|
||||
Carving.chisel.registerOre("aluminumblock", "blockAluminum");
|
||||
|
||||
CarvableStairsMaker aluminumStairs = new CarvableStairsMaker(aluminum);
|
||||
|
||||
aluminumStairs.carverHelper.addVariation("tile.metalOre.0.desc", 0, "metals/aluminum/caution");
|
||||
aluminumStairs.carverHelper.addVariation("tile.metalOre.1.desc", 1, "metals/aluminum/crate");
|
||||
aluminumStairs.carverHelper.addVariation("tile.metalOre.2.desc", 2, "metals/aluminum/thermal");
|
||||
aluminumStairs.carverHelper.addVariation("tile.metalOre.3.desc", 3, "metals/aluminum/adv");
|
||||
aluminumStairs.carverHelper.addVariation("tile.metalOre.4.desc", 4, "metals/aluminum/egregious");
|
||||
aluminumStairs.carverHelper.addVariation("tile.metalOre.5.desc", 5, "metals/aluminum/bolted");
|
||||
aluminumStairs.create("aluminum_stairs", ChiselBlocks.aluminumStairs);
|
||||
Carving.chisel.registerOre("aluminum_stairs", "aluminum_stairs");
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.cricketcraft.chisel.block;
|
||||
|
||||
import com.cricketcraft.chisel.init.ChiselTabs;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
@@ -30,7 +31,7 @@ public class CarvableStairsMaker {
|
||||
String n = name + "." + i;
|
||||
blocks[i] = creator == null ? new BlockCarvableStairs(blockBase, i * 2, carverHelper) : creator.create(blockBase, i * 2, carverHelper);
|
||||
|
||||
blocks[i].setBlockName("chisel." + n);
|
||||
blocks[i].setBlockName("chisel." + n).setCreativeTab(ChiselTabs.tabStairChiselBlocks);
|
||||
GameRegistry.registerBlock(blocks[i], ItemCarvable.class, n);
|
||||
|
||||
for (int meta = 0; meta < 2 && i * 2 + meta < carverHelper.infoList.size(); meta++) {
|
||||
|
||||
@@ -92,6 +92,7 @@ public final class ChiselBlocks {
|
||||
public static final BlockCarvable copperblock = null;
|
||||
public static final BlockCarvable bronzeblock = null;
|
||||
public static final BlockCarvable aluminumblock = null;
|
||||
public static BlockCarvableStairs[] aluminumStairs = new BlockCarvableStairs[8];
|
||||
public static final BlockCarvable leadblock = null;
|
||||
public static final BlockCarvable silverblock = null;
|
||||
public static final BlockCarvable steelblock = null;
|
||||
|
||||
@@ -66,6 +66,7 @@ public class ChiselTabs {
|
||||
public static final CustomCreativeTab tabMetalChiselBlocks = new CustomCreativeTab("tabMetalChiselBlocks", true);
|
||||
public static final CustomCreativeTab tabOtherChiselBlocks = new CustomCreativeTab("tabOtherChiselBlocks", true);
|
||||
public static final CustomCreativeTab tabModdedChiselBlocks = new CustomCreativeTab("tabModdedChiselBlocks", true);
|
||||
public static final CustomCreativeTab tabStairChiselBlocks = new CustomCreativeTab("tabStairChiselBlocks", true);
|
||||
|
||||
// this serves mostly just to load the static initializers
|
||||
public static void preInit() {
|
||||
@@ -94,6 +95,10 @@ public class ChiselTabs {
|
||||
tabOtherChiselBlocks.setTabIconItemStack(new ItemStack(ChiselBlocks.jackolantern[0]));
|
||||
else
|
||||
tabOtherChiselBlocks.setTabIconItemStack(new ItemStack(Blocks.lit_pumpkin));
|
||||
if (Features.ICE_STAIRS.enabled())
|
||||
tabStairChiselBlocks.setTabIconItemStack(new ItemStack(ChiselBlocks.iceStairs[0]));
|
||||
else
|
||||
tabStairChiselBlocks.setTabIconItemStack(new ItemStack(Blocks.nether_brick_stairs));
|
||||
|
||||
if (atLeastOneModIsLoaded) {
|
||||
if (Features.ARCANE.enabled()) {
|
||||
|
||||
@@ -1655,6 +1655,7 @@ itemGroup.tabStoneChiselBlocks=Stone Chisel Blocks
|
||||
itemGroup.tabWoodChiselBlocks=Wood Chisel Blocks
|
||||
itemGroup.tabMetalChiselBlocks=Metal Chisel Blocks
|
||||
itemGroup.tabModdedChiselBlocks=Modded Chisel Blocks
|
||||
itemGroup.tabStairChiselBlocks=Chisel Stairs
|
||||
itemGroup.tabChisel=Chisel Items
|
||||
|
||||
#Container
|
||||
|
||||
Reference in new issue
Block a user