Skip to content

Commit

Permalink
Aluminum: Fixed some models, added crafting recipes, added ~~chicken~…
Browse files Browse the repository at this point in the history
…~ aluminum nuggets and aluminum ore blocks
  • Loading branch information
JunePrimavera committed Sep 1, 2023
1 parent a2960c8 commit d2f0e50
Show file tree
Hide file tree
Showing 16 changed files with 188 additions and 9 deletions.
4 changes: 4 additions & 0 deletions src/main/java/io/github/teampropulsive/Blocks.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ public class Blocks {
public static final Block ALUMINUM_BLOCK = new Block(
FabricBlockSettings.create().requiresTool().strength(5.0f, 6.0f).requiresTool()
);
public static final Block ALUMINUM_ORE_BLOCK = new Block(
FabricBlockSettings.create().requiresTool().strength(5.0f, 6.0f).requiresTool()
);
public static final Block ANORTHOSITE = new Block(
FabricBlockSettings.create().requiresTool().strength(5.0f, 11.0f)
);
Expand All @@ -30,6 +33,7 @@ public static void register() {
registerBlock(ANORTHOSITE, "anorthosite");

registerBlock(ALUMINUM_BLOCK, "aluminum_block");
registerBlock(ALUMINUM_ORE_BLOCK, "aluminum_ore_block");
registerBlock(ALUMINUM_ORE, "aluminum_ore");
registerBlock(ALUMINUM_DEEPSLATE_ORE, "aluminum_deepslate_ore");
}
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/io/github/teampropulsive/Items.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public class Items {
public static final Item OXYGEN_CANISTER = new GasCanister(new FabricItemSettings(), Propulsive.id("gas/oxygen"), 1000);
public static final Item METHANE_CANISTER = new GasCanister(new FabricItemSettings(), Propulsive.id("gas/methane"), 1000);
public static final Item HYDROGEN_CANISTER = new GasCanister(new FabricItemSettings(), Propulsive.id("gas/hydrogen"), 1000);
public static final Item ALUMINUM_NUGGET = new Item(new FabricItemSettings());
public static final Item RAW_ALUMINUM = new Item(new FabricItemSettings());
public static final Item ALUMINUM_INGOT = new Item(new FabricItemSettings());
public static final ArmorItem SPACE_HELMET = new ArmorItem(SpaceArmorMaterial.INSTANCE, ArmorItem.Type.HELMET, new FabricItemSettings());
Expand All @@ -42,7 +43,9 @@ public static void register() {
// Aluminum
registerItem("raw_aluminum", RAW_ALUMINUM);
registerItem("aluminum_ingot", ALUMINUM_INGOT);
registerItem("aluminum_nugget", ALUMINUM_NUGGET);
registerBlockItem("aluminum_block", Blocks.ALUMINUM_BLOCK);
registerBlockItem("aluminum_ore_block", Blocks.ALUMINUM_ORE_BLOCK);
registerBlockItem("aluminum_ore", Blocks.ALUMINUM_ORE);
registerBlockItem("aluminum_deepslate_ore", Blocks.ALUMINUM_DEEPSLATE_ORE);
}
Expand Down
1 change: 0 additions & 1 deletion src/main/java/io/github/teampropulsive/types/Planet.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ public void render() {

float planetSize = (float) this.planetSize;


MatrixStack matrices = context.matrixStack();
matrices.push();
matrices.translate(transformedPosition.x, transformedPosition.y, transformedPosition.z);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"parent": "block/cube_all",
"textures": {
"all": "propulsive:block/aluminum_ore_block"
}
}

Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"variants": {
"": { "model": "propulsive:block/aluminum_block" }
"parent": "block/cube_all",
"textures": {
"all": "propulsive:block/aluminum_block"
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"parent": "block/cube_all",
"textures": {
"all": "propulsive:block/aluminum_ore_block"
}
}

Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"parent": "propulsive:block/aluminum_ingot"
}

"parent": "item/generated",
"textures": {
"layer0": "propulsive:item/aluminum_ingot"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "propulsive:item/aluminum_nugget"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"parent": "propulsive:block/aluminum_ore_block"
}

Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"parent": "propulsive:block/raw_aluminum"
}

"parent": "item/generated",
"textures": {
"layer0": "propulsive:item/raw_aluminum"
}
}
36 changes: 36 additions & 0 deletions src/main/resources/data/propulsive/recipes/aluminum_block.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "propulsive:aluminum_ingot"
},
{
"item": "propulsive:aluminum_ingot"
},
{
"item": "propulsive:aluminum_ingot"
},
{
"item": "propulsive:aluminum_ingot"
},
{
"item": "propulsive:aluminum_ingot"
},
{
"item": "propulsive:aluminum_ingot"
},
{
"item": "propulsive:aluminum_ingot"
},
{
"item": "propulsive:aluminum_ingot"
},
{
"item": "propulsive:aluminum_ingot"
}
],
"result": {
"item": "propulsive:aluminum_block",
"count": 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "propulsive:aluminum_block"
}
],
"result": {
"item": "propulsive:aluminum_ingot",
"count": 9
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "propulsive:aluminum_nugget"
},
{
"item": "propulsive:aluminum_nugget"
},
{
"item": "propulsive:aluminum_nugget"
},
{
"item": "propulsive:aluminum_nugget"
},
{
"item": "propulsive:aluminum_nugget"
},
{
"item": "propulsive:aluminum_nugget"
},
{
"item": "propulsive:aluminum_nugget"
},
{
"item": "propulsive:aluminum_nugget"
},
{
"item": "propulsive:aluminum_nugget"
}
],
"result": {
"item": "propulsive:aluminum_ingot",
"count": 1
}
}
12 changes: 12 additions & 0 deletions src/main/resources/data/propulsive/recipes/aluminum_nugget.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "propulsive:aluminum_ingot"
}
],
"result": {
"item": "propulsive:aluminum_nugget",
"count": 9
}
}
12 changes: 12 additions & 0 deletions src/main/resources/data/propulsive/recipes/raw_aluminum.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "propulsive:raw_aluminum_block"
}
],
"result": {
"item": "propulsive:raw_aluminum",
"count": 9
}
}
36 changes: 36 additions & 0 deletions src/main/resources/data/propulsive/recipes/raw_aluminum_block.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "propulsive:raw_aluminum"
},
{
"item": "propulsive:raw_aluminum"
},
{
"item": "propulsive:raw_aluminum"
},
{
"item": "propulsive:raw_aluminum"
},
{
"item": "propulsive:raw_aluminum"
},
{
"item": "propulsive:raw_aluminum"
},
{
"item": "propulsive:raw_aluminum"
},
{
"item": "propulsive:raw_aluminum"
},
{
"item": "propulsive:raw_aluminum"
}
],
"result": {
"item": "propulsive:raw_aluminum_block",
"count": 1
}
}

0 comments on commit d2f0e50

Please sign in to comment.