Skip to content

Commit a0c65c4

Browse files
committed
Build #6
Ores added
1 parent 724e450 commit a0c65c4

25 files changed

+144
-6
lines changed

src/java/com/knoxhack/nethermetals/blocks/ModBlocks.java

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,31 @@
66
public final class ModBlocks {
77

88
public static Block nethercopperOre;
9+
public static Block nethertinOre;
10+
public static Block netherleadOre;
11+
public static Block nethersilverOre;
12+
public static Block nethernickelOre;
13+
public static Block netherzincOre;
914

1015

1116
public static void createBlocks() {
12-
GameRegistry.registerBlock(nethercopperOre = new BasicBlock("Nether_Copper_Ore"), "Nether_Copper_Ore");
17+
GameRegistry.registerBlock(nethercopperOre = new BasicBlock("nether_copper_ore"), "nether_copper_ore");
18+
GameRegistry.registerBlock(nethertinOre = new BasicBlock("nether_tin_ore"), "nether_tin_ore");
19+
GameRegistry.registerBlock(netherleadOre = new BasicBlock("nether_lead_ore"), "nether_lead_ore");
20+
GameRegistry.registerBlock(nethersilverOre = new BasicBlock("nether_silver_ore"), "nether_silver_ore");
21+
GameRegistry.registerBlock(nethernickelOre = new BasicBlock("nether_nickel_ore"), "nether_nickel_ore");
22+
GameRegistry.registerBlock(netherzincOre = new BasicBlock("nether_zinc_ore"), "nether_zinc_ore");
23+
24+
25+
26+
27+
28+
29+
30+
31+
1332
}
33+
34+
35+
1436
}

src/java/com/knoxhack/nethermetals/client/render/blocks/BlockRenderRegister.java

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,25 @@
99
import net.minecraft.item.Item;
1010

1111
public final class BlockRenderRegister {
12-
public static String modid = Main.MODID;
1312

1413
public static void registerBlockRenderer() {
15-
reg(ModBlocks.nethercopperOre);
14+
reg(ModBlocks.nethercopperOre);
15+
reg(ModBlocks.nethertinOre);
16+
reg(ModBlocks.netherleadOre);
17+
reg(ModBlocks.nethersilverOre);
18+
reg(ModBlocks.nethernickelOre);
19+
reg(ModBlocks.netherzincOre);
20+
21+
22+
23+
24+
1625
}
1726

27+
public static String modid = Main.MODID;
28+
1829
public static void reg(Block block) {
19-
Minecraft.getMinecraft().getRenderItem().getItemModelMesher()
20-
.register(Item.getItemFromBlock(block), 0, new ModelResourceLocation(modid + ":" + block.getUnlocalizedName().substring(5), "inventory"));
30+
Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(block), 0, new ModelResourceLocation(modid + ":" + block.getUnlocalizedName().substring(5), "inventory"));
2131
}
22-
}
32+
33+
}

src/resources/assets/nethermetals/blockstates/blockstates.nether_copper_ore.json renamed to src/resources/assets/nethermetals/blockstates/nether_copper_ore.json

File renamed without changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"variants": {
3+
"normal": { "model": "nethermetals:nether_lead_ore" }
4+
}
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"variants": {
3+
"normal": { "model": "nethermetals:nether_nickel_ore" }
4+
}
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"variants": {
3+
"normal": { "model": "nethermetals:nether_silver_ore" }
4+
}
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"variants": {
3+
"normal": { "model": "nethermetals:nether_tin_ore" }
4+
}
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"variants": {
3+
"normal": { "model": "nethermetals:nether_zinc_ore" }
4+
}
5+
}

src/resources/assets/nethermetals/models/block/models.block.nether_copper_ore.json renamed to src/resources/assets/nethermetals/models/block/nether_copper_ore.json

File renamed without changes.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"parent": "block/cube_all",
3+
"textures": {
4+
"all": "nethermetals:blocks/nether_lead_ore"
5+
}
6+
}

0 commit comments

Comments
 (0)