Skip to content

Commit

Permalink
Changes:
Browse files Browse the repository at this point in the history
- Added Chiseled Copper(With all variations)
- Addedpolished Chiseled Tuff Bricks
  • Loading branch information
Onako2 authored and Onako2 committed Oct 19, 2023
1 parent 577c9eb commit a2d7134
Show file tree
Hide file tree
Showing 25 changed files with 177 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/client/java/rs/onako2/ClientInit.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class ClientInit implements ClientModInitializer {
@Override
public void onInitializeClient() {
BlockRenderLayerMap.INSTANCE.putBlock(Init.COPPER_GRID, RenderLayer.getCutout());
BlockRenderLayerMap.INSTANCE.putBlock(Init.EXPOSED_COPPER_BULB, RenderLayer.getCutout());
BlockRenderLayerMap.INSTANCE.putBlock(Init.EXPOSED_COPPER_GRID, RenderLayer.getCutout());
BlockRenderLayerMap.INSTANCE.putBlock(Init.OXIDIZED_COPPER_GRID, RenderLayer.getCutout());
BlockRenderLayerMap.INSTANCE.putBlock(Init.WEATHERED_COPPER_GRID, RenderLayer.getCutout());
}
Expand Down
40 changes: 33 additions & 7 deletions src/main/java/rs/onako2/Init.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,24 @@ public class Init implements ModInitializer {

public static final Block COPPER_GRID = new Block(FabricBlockSettings.create().nonOpaque().strength(4.0f));

public static final Block WEATHERED_COPPER_GRID = new Block(FabricBlockSettings.create().strength(4.0f));
public static final Block WEATHERED_COPPER_GRID = new Block(FabricBlockSettings.create().nonOpaque().strength(4.0f));

public static final Block EXPOSED_COPPER_GRID = new Block(FabricBlockSettings.create().strength(4.0f));
public static final Block EXPOSED_COPPER_GRID = new Block(FabricBlockSettings.create().nonOpaque().strength(4.0f));

public static final Block OXIDIZED_COPPER_GRID = new Block(FabricBlockSettings.create().strength(4.0f));
public static final Block OXIDIZED_COPPER_GRID = new Block(FabricBlockSettings.create().nonOpaque().strength(4.0f));

public static final Block TUFF_BRICKS = new Block(FabricBlockSettings.create().strength(4.0f));

public static final Block CHISELED_COPPER = new Block(FabricBlockSettings.create().strength(4.0f));

public static final Block EXPOSED_CHISELED_COPPER = new Block(FabricBlockSettings.create().strength(4.0f));

public static final Block WEATHERED_CHISELED_COPPER = new Block(FabricBlockSettings.create().strength(4.0f));

public static final Block OXIDIZED_CHISELED_COPPER = new Block(FabricBlockSettings.create().strength(4.0f));

public static final Block POLISHED_CHISELED_TUFF = new Block(FabricBlockSettings.create().strength(4.0f));


private static final ItemGroup IWIE = FabricItemGroup.builder()
.icon(() -> new ItemStack(TEST))
Expand All @@ -60,16 +70,18 @@ public class Init implements ModInitializer {
entries.add(COPPER_GRID);
entries.add(TUFF_BRICKS);
entries.add(CHISELED_TUFF_BRICKS);
entries.add(POLISHED_CHISELED_TUFF);
entries.add(OXIDIZED_CHISELED_COPPER);
entries.add(WEATHERED_CHISELED_COPPER);
entries.add(EXPOSED_CHISELED_COPPER);
entries.add(CHISELED_COPPER);
})
.build();



@Override
public void onInitialize() {
// This code runs as soon as Minecraft is in a mod-load-ready state.
// However, some things (like resources) may still be uninitialized.
// Proceed with mild caution.

LOGGER.info("Initializing items and blocks from 1.21 update!");

Expand Down Expand Up @@ -108,6 +120,20 @@ public void onInitialize() {
Registry.register(Registries.BLOCK, new Identifier("iwie", "tuff_bricks"), TUFF_BRICKS);
Registry.register(Registries.ITEM, new Identifier("iwie", "tuff_bricks"), new BlockItem(TUFF_BRICKS, new FabricItemSettings()));

Registry.register(Registries.BLOCK, new Identifier("iwie", "polished_chiseled_tuff"), POLISHED_CHISELED_TUFF);
Registry.register(Registries.ITEM, new Identifier("iwie", "polished_chiseled_tuff"), new BlockItem(POLISHED_CHISELED_TUFF, new FabricItemSettings()));

Registry.register(Registries.BLOCK, new Identifier("iwie", "chiseled_copper"), CHISELED_COPPER);
Registry.register(Registries.ITEM, new Identifier("iwie", "chiseled_copper"), new BlockItem(CHISELED_COPPER, new FabricItemSettings()));

Registry.register(Registries.BLOCK, new Identifier("iwie", "exposed_chiseled_copper"), EXPOSED_CHISELED_COPPER);
Registry.register(Registries.ITEM, new Identifier("iwie", "exposed_chiseled_copper"), new BlockItem(EXPOSED_CHISELED_COPPER, new FabricItemSettings()));

Registry.register(Registries.BLOCK, new Identifier("iwie", "weathered_chiseled_copper"), WEATHERED_CHISELED_COPPER);
Registry.register(Registries.ITEM, new Identifier("iwie", "weathered_chiseled_copper"), new BlockItem(WEATHERED_CHISELED_COPPER, new FabricItemSettings()));

Registry.register(Registries.BLOCK, new Identifier("iwie", "oxidized_chiseled_copper"), OXIDIZED_CHISELED_COPPER);
Registry.register(Registries.ITEM, new Identifier("iwie", "oxidized_chiseled_copper"), new BlockItem(OXIDIZED_CHISELED_COPPER, new FabricItemSettings()));

}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "iwie:block/chiseled_copper"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "iwie:block/exposed_chiseled_copper"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "iwie:block/oxidized_chiseled_copper"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "iwie:block/polished_chiseled_tuff"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "iwie:block/weathered_chiseled_copper"
}
}
}
16 changes: 13 additions & 3 deletions src/main/resources/assets/iwie/lang/en_us.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
{
"block.iwie.test": "Test",

"block.iwie.chiseled_tuff_bricks": "Chiseled Tuff Bricks",
"block.iwie.tuff_bricks": "Tuff Bricks",
"block.iwie.copper_grid": "Copper Grid",
"block.iwie.polished_chiseled_tuff": "Polished Chiseled Tuff Bricks",

"itemGroup.iwie.main": "I want it earlier!",

"block.iwie.copper_bulb": "Copper Bulb",
"block.iwie.oxidized_copper_bulb": "Oxidized Copper Bulb",
"itemGroup.iwie.main": "I want it earlier!",
"block.iwie.weathered_copper_bulb": "Weathered Copper Bulb",
"block.iwie.exposed_copper_bulb": "Exposed Copper Bulb",

"block.iwie.copper_grid": "Copper Grid",
"block.iwie.oxidized_copper_grid": "Oxidized Copper Grid",
"block.iwie.exposed_copper_grid": "Exposed Copper Grid",
"block.iwie.weathered_copper_grid": "Weathered Copper Grid"
"block.iwie.weathered_copper_grid": "Weathered Copper Grid",

"block.iwie.oxidized_chiseled_copper": "Oxidized Chiseled Copper",
"block.iwie.exposed_chiseled_copper": "Exposed Chiseled Copper",
"block.iwie.weathered_chiseled_copper": "Weathered Chiseled Copper",
"block.iwie.chiseled_copper": "Weathered Chiseled Copper"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "block/cube_all",
"textures": {
"all": "iwie:block/chiseled_copper"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "block/cube_all",
"textures": {
"all": "iwie:block/exposed_chiseled_copper"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "block/cube_all",
"textures": {
"all": "iwie:block/oxidized_chiseled_copper"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"parent": "minecraft:block/cube_bottom_top",
"textures": {
"bottom": "iwie:block/polished_chiseled_tuff_top_buttom",
"side": "iwie:block/polished_chiseled_tuff_sides",
"top": "iwie:block/polished_chiseled_tuff_top_buttom"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "block/cube_all",
"textures": {
"all": "iwie:block/weathered_chiseled_copper"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "block/cube_all",
"textures": {
"all": "iwie:block/chiseled_copper"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "block/cube_all",
"textures": {
"all": "iwie:block/exposed_chiseled_copper"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "block/cube_all",
"textures": {
"all": "iwie:block/oxidized_chiseled_copper"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"parent": "minecraft:block/cube_bottom_top",
"textures": {
"bottom": "iwie:block/polished_chiseled_tuff_top_buttom",
"side": "iwie:block/polished_chiseled_tuff_sides",
"top": "iwie:block/polished_chiseled_tuff_top_buttom"
},
"gui_light": "front",
"display": {
"ground": {
"rotation": [ 0, 0, 0 ],
"translation": [ 0, 2, 0],
"scale":[ 0.5, 0.5, 0.5 ]
},
"head": {
"rotation": [ 0, 180, 0 ],
"translation": [ 0, 13, 7],
"scale":[ 1, 1, 1]
},
"thirdperson_righthand": {
"rotation": [ 0, 0, 0 ],
"translation": [ 0, 3, 1 ],
"scale": [ 0.55, 0.55, 0.55 ]
},
"firstperson_righthand": {
"rotation": [ 0, -90, 25 ],
"translation": [ 1.13, 3.2, 1.13],
"scale": [ 0.68, 0.68, 0.68 ]
},
"fixed": {
"rotation": [ 0, 180, 0 ],
"scale": [ 1, 1, 1 ]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "block/cube_all",
"textures": {
"all": "iwie:block/weathered_chiseled_copper"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
"name": "I want it earlier!",
"description": "This Mod adds items and blocks before they are even in game!",
"authors": [
"Onako2"
"Onako2",
"MrKnowledge"
],
"contact": {
"homepage": "https://modrinth.com/mod/i-want-it-earlier",
"sources": "https://github.com/Onako2/i-want-it-earlier"
"sources": "https://github.com/Onako2/i-want-it-earlier",
"discord": "https://discord.gg/nFpa776nQk"
},
"license": "MIT",
"icon": "assets/iwie/icon.png",
Expand Down

0 comments on commit a2d7134

Please sign in to comment.