Skip to content

Commit

Permalink
1.2.0
Browse files Browse the repository at this point in the history
- Added copper bulb and all variantions(With lumination)
- Added copper grid and all variations
- Version set to 1.2.0
  • Loading branch information
Onako2 authored and Onako2 committed Oct 17, 2023
1 parent 5d971a4 commit 7a47c8e
Show file tree
Hide file tree
Showing 16 changed files with 85 additions and 7 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ yarn_mappings=1.20.2+build.1
loader_version=0.14.22

# Mod Properties
mod_version=1.1.0
mod_version=1.2.0
maven_group=rs.onako2
archives_base_name=i-want-it-earlier

Expand Down
28 changes: 23 additions & 5 deletions src/main/java/rs/onako2/Init.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,23 @@ public class Init implements ModInitializer {

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

public static final Block OXIDIZED_COPPER_BULB = new Block(FabricBlockSettings.create().strength(4.0f));
public static final Block OXIDIZED_COPPER_BULB = new Block(FabricBlockSettings.create().strength(4.0f).luminance(3));

public static final Block WEATHERED_COPPER_BULB = new Block(FabricBlockSettings.create().strength(4.0f));
public static final Block WEATHERED_COPPER_BULB = new Block(FabricBlockSettings.create().strength(4.0f).luminance(7));

public static final Block EXPOSED_COPPER_BULB = new Block(FabricBlockSettings.create().strength(4.0f));
public static final Block EXPOSED_COPPER_BULB = new Block(FabricBlockSettings.create().strength(4.0f).luminance(11));

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

public static final Block COPPER_BULB = new Block(FabricBlockSettings.create().strength(4.0f));
public static final Block COPPER_BULB = new Block(FabricBlockSettings.create().strength(4.0f).luminance(15));

public static final Block COPPER_GRID = new Block(FabricBlockSettings.create().strength(4.0f));
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 EXPOSED_COPPER_GRID = new Block(FabricBlockSettings.create().strength(4.0f));

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

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

Expand All @@ -48,6 +54,9 @@ public class Init implements ModInitializer {
entries.add(WEATHERED_COPPER_BULB);
entries.add(EXPOSED_COPPER_BULB);
entries.add(COPPER_BULB);
entries.add(OXIDIZED_COPPER_GRID);
entries.add(WEATHERED_COPPER_GRID);
entries.add(EXPOSED_COPPER_GRID);
entries.add(COPPER_GRID);
entries.add(TUFF_BRICKS);
entries.add(CHISELED_TUFF_BRICKS);
Expand Down Expand Up @@ -87,6 +96,15 @@ public void onInitialize() {
Registry.register(Registries.BLOCK, new Identifier("iwie", "copper_grid"), COPPER_GRID);
Registry.register(Registries.ITEM, new Identifier("iwie", "copper_grid"), new BlockItem(COPPER_GRID, new FabricItemSettings()));

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

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

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

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()));
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "iwie:block/exposed_copper_grid"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "iwie:block/oxidized_copper_grid"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "iwie:block/weathered_copper_grid"
}
}
}
5 changes: 4 additions & 1 deletion src/main/resources/assets/iwie/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@
"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.exposed_copper_bulb": "Exposed Copper Bulb",
"block.iwie.oxidized_copper_grid": "Oxidized Copper Grid",
"block.iwie.exposed_copper_grid": "Exposed Copper Grid",
"block.iwie.weathered_copper_grid": "Weathered Copper Grid"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "block/cube_all",
"textures": {
"all": "iwie:block/exposed_copper_grid"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "block/cube_all",
"textures": {
"all": "iwie:block/oxidized_copper_grid"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "block/cube_all",
"textures": {
"all": "iwie:block/weathered_copper_grid"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "block/cube_all",
"textures": {
"all": "iwie:block/exposed_copper_grid"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "block/cube_all",
"textures": {
"all": "iwie:block/oxidized_copper_grid"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "block/cube_all",
"textures": {
"all": "iwie:block/weathered_copper_grid"
}
}
Binary file modified src/main/resources/assets/iwie/textures/block/copper_grid.png
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.

0 comments on commit 7a47c8e

Please sign in to comment.