Skip to content

Commit

Permalink
Netherrack Bricks
Browse files Browse the repository at this point in the history
  • Loading branch information
IcarussOne committed Oct 6, 2024
1 parent d024cf6 commit 627d32e
Show file tree
Hide file tree
Showing 7 changed files with 94 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/main/java/com/progwml6/natura/nether/NaturaNether.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import com.progwml6.natura.common.item.ItemBlockLeaves;
import com.progwml6.natura.common.item.ItemNaturaDoor;
import com.progwml6.natura.library.Util;
import com.progwml6.natura.nether.block.BlockNetherrackBricks;
import com.progwml6.natura.nether.block.BlockSmoothNetherrack;
import com.progwml6.natura.nether.block.bush.BlockNetherBerryBush;
import com.progwml6.natura.nether.block.button.BlockNetherButton;
Expand Down Expand Up @@ -80,6 +81,8 @@ public class NaturaNether extends NaturaPulse

public static BlockNetherGlass netherGlass;
public static BlockSmoothNetherrack smoothNetherrack;
public static BlockNetherrackBricks netherrackBricks;
public static BlockNetherrackBricks netherrackBricksCharred;

public static Block netherStairsGhostwood;
public static Block netherStairsBloodwood;
Expand Down Expand Up @@ -154,6 +157,8 @@ public void registerBlocks(Register<Block> event)
netherGlass = registerBlock(registry, new BlockNetherGlass(), "nether_glass");

smoothNetherrack = registerBlock(registry, new BlockSmoothNetherrack(), "smooth_netherrack");
netherrackBricks = registerBlock(registry, new BlockNetherrackBricks(), "netherrack_bricks");
netherrackBricksCharred = registerBlock(registry, new BlockNetherrackBricks(), "charred_netherrack_bricks");

netherStairsGhostwood = registerBlockStairsFrom(registry, netherPlanks, BlockNetherPlanks.PlankType.GHOSTWOOD, "nether_stairs_ghostwood");
netherStairsBloodwood = registerBlockStairsFrom(registry, netherPlanks, BlockNetherPlanks.PlankType.BLOODWOOD, "nether_stairs_bloodwood");
Expand Down Expand Up @@ -223,6 +228,8 @@ public void registerItems(Register<Item> event)
netherGlass = registerEnumItemBlock(registry, netherGlass, "nether_glass");

smoothNetherrack = registerItemBlock(registry, smoothNetherrack, "smooth_netherrack");
netherrackBricks = registerItemBlock(registry, netherrackBricks, "netherrack_bricks");
netherrackBricksCharred = registerItemBlock(registry, netherrackBricksCharred, "charred_netherrack_bricks");

netherStairsGhostwood = registerItemBlock(registry, netherStairsGhostwood, "nether_stairs_ghostwood");
netherStairsBloodwood = registerItemBlock(registry, netherStairsBloodwood, "nether_stairs_bloodwood");
Expand Down Expand Up @@ -310,7 +317,8 @@ private void registerSmelting()
{
FurnaceRecipes furnaceRecipes = FurnaceRecipes.instance();

furnaceRecipes.addSmeltingRecipe(new ItemStack(Blocks.SOUL_SAND, 1, 0), new ItemStack(netherGlass, 1, 0), 0.3f);
furnaceRecipes.addSmeltingRecipe(new ItemStack(netherHeatSand, 1, 0), new ItemStack(netherGlass, 1, 1), 0.3f);
furnaceRecipes.addSmeltingRecipe(new ItemStack(Blocks.SOUL_SAND, 1, 0), new ItemStack(netherGlass, 1, 0), 0.3F);
furnaceRecipes.addSmeltingRecipe(new ItemStack(netherHeatSand, 1, 0), new ItemStack(netherGlass, 1, 1), 0.3F);
furnaceRecipes.addSmeltingRecipe(new ItemStack(netherrackBricks, 1, 0), new ItemStack(netherrackBricksCharred, 1, 0), 0.1F);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ protected void registerModels()
registerItemBlockMeta(NaturaNether.netherGlass);

registerItemModel(NaturaNether.smoothNetherrack);
registerItemModel(NaturaNether.netherrackBricks);
registerItemModel(NaturaNether.netherrackBricksCharred);

registerItemBlockMeta(NaturaNether.netherSlab);

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package com.progwml6.natura.nether.block;

import com.progwml6.natura.Natura;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;

public class BlockNetherrackBricks extends Block {
public BlockNetherrackBricks() {
super(Material.ROCK);

this.setCreativeTab(Natura.TAB);
this.setHardness(1.5F);
this.setResistance(10.0F);
this.setHarvestLevel("pickaxe", 0);
}

@Override
public boolean isFireSource(World world, BlockPos pos, EnumFacing side) {
return side == EnumFacing.UP;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"forge_marker": 1,
"defaults": {
"model": "cube_all",
"textures": {
"all": "natura:blocks/netherrack_bricks_charred"
}
},
"variants": {
"normal": [
{}
],
"inventory": [
{}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"forge_marker": 1,
"defaults": {
"model": "cube_all",
"textures": {
"all": "natura:blocks/netherrack_bricks"
}
},
"variants": {
"normal": [
{}
],
"inventory": [
{}
]
}
}
2 changes: 2 additions & 0 deletions src/main/resources/assets/natura/lang/en_us.lang
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,8 @@ tile.natura.darkwood_trap_door.name=Darkwood Trapdoor
tile.natura.darkwood_fence.name=Darkwood Fence
tile.natura.darkwood_fence_gate.name=Darkwood Fence Gate

tile.natura.charred_netherrack_bricks.name=Charred Netherrack Bricks
tile.natura.netherrack_bricks.name=Netherrack Bricks
tile.natura.smooth_netherrack.name=Smooth Netherrack

tile.natura.nether_bookshelves.ghostwood.name=Ghostwood Bookshelf
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"conditions": [
{
"type": "natura:is_pulse_loaded",
"pulse_name": "NaturaNether"
}
],
"type": "minecraft:crafting_shaped",
"pattern": [
"AAA"
],
"key": {
"A": {
"item": "natura:smooth_netherrack"
}
},
"result": {
"item": "natura:netherrack_bricks",
"data": 0,
"count": 3
}
}

0 comments on commit 627d32e

Please sign in to comment.