Skip to content

Commit

Permalink
Updated Textures ~~ Imporved Transistions for path blcoks
Browse files Browse the repository at this point in the history
Updated Blocks ~~ Reduced speed factor of paths from 1.5 to 1.33
Fixed ~~ Blocks do not place properly
  • Loading branch information
Negative-light committed Jul 23, 2022
1 parent a691814 commit 038bd5a
Show file tree
Hide file tree
Showing 17 changed files with 37 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,32 +20,45 @@
public class ModBlocks {
public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, Compressedstone.MOD_ID);

//*******************DECLARE BLOCK CONSTANTS
private static final float STONEWORK_STRENGTH = 3.5f;
private static final float REINFORCED_BLAST_RESIST = 7f;
private static final int INFUSED_LIGHT_LEVEL = 7;
private static final float PATH_SPEED_FACTOR = 1.33f;

//*******************DECLARE BLOCKS HERE


//***STONEWORK PATH
public static final RegistryObject<Block> STONEWORK_PATH = resisterBlock("stonework_path",
() -> new StoneworkPathBlock(BlockBehaviour.Properties.of(Material.AMETHYST)
.requiresCorrectToolForDrops().strength(3.5f).speedFactor(1.5f)));
.requiresCorrectToolForDrops().strength(STONEWORK_STRENGTH).speedFactor(PATH_SPEED_FACTOR)));

//***REINFORCED STONEWORK PATH
public static final RegistryObject<Block> REINFORCED_STONEWORK_PATH = resisterBlock("reinforced_stonework_path",
() -> new StoneworkPathBlock(BlockBehaviour.Properties.of(Material.AMETHYST).requiresCorrectToolForDrops()
.strength(3.5f, 7f).speedFactor(1.5f).speedFactor(1.5f)));
.strength(STONEWORK_STRENGTH, REINFORCED_BLAST_RESIST).speedFactor(PATH_SPEED_FACTOR)));

//***INFUSED STONEWORK PATH
public static final RegistryObject<Block> INFUSED_STONEWORK_PATH = resisterBlock("infused_stonework_path",
() -> new StoneworkPathBlock(BlockBehaviour.Properties.of(Material.AMETHYST)
.requiresCorrectToolForDrops()
.strength(3.5f).lightLevel((p_50872_) -> 7).speedFactor(1.5f)));
() -> new StoneworkPathBlock(BlockBehaviour.Properties.of(Material.AMETHYST).requiresCorrectToolForDrops()
.strength(STONEWORK_STRENGTH).lightLevel((p_50872_) -> INFUSED_LIGHT_LEVEL).speedFactor(PATH_SPEED_FACTOR)));

//***STONEWORK BLOCK
public static final RegistryObject<Block> STONEWORK_BLOCK = resisterBlock("stonework_block",
() -> new StoneworkBlock(BlockBehaviour.Properties.of(Material.AMETHYST)
.strength(3.5f).requiresCorrectToolForDrops(), false, STONEWORK_PATH));
.strength(STONEWORK_STRENGTH), false, STONEWORK_PATH));

//***REINFORCED STONEWORK BLOCK
public static final RegistryObject<Block> REINFORCED_STONEWORK_BLOCK = resisterBlock("reinforced_stonework_block",
() -> new StoneworkBlock(BlockBehaviour.Properties.of(Material.AMETHYST)
.strength(3.5f, 7f).requiresCorrectToolForDrops(), false, REINFORCED_STONEWORK_PATH));

.strength(STONEWORK_STRENGTH, REINFORCED_BLAST_RESIST).requiresCorrectToolForDrops(), false, REINFORCED_STONEWORK_PATH));


//***STONEWORK BLOCK
public static final RegistryObject<Block> INFUSED_STONEWORK_BLOCK = resisterBlock("infused_stonework_block",
() -> new StoneworkBlock(BlockBehaviour.Properties.of(Material.AMETHYST)
.requiresCorrectToolForDrops().strength(3.5f).lightLevel((p_50872_) -> 7), true, INFUSED_STONEWORK_PATH));
.requiresCorrectToolForDrops().strength(STONEWORK_STRENGTH).lightLevel((p_50872_) -> INFUSED_LIGHT_LEVEL), true, INFUSED_STONEWORK_PATH));

//*******************HELPER FUNCTIONS
private static <T extends Block> RegistryObject<T> resisterBlock(String name, Supplier<T> block) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"textures": {
"particle": "minecraft:block/stone",
"top": "compressedstone:block/stonework_path_top",
"side": "compressedstone:block/infused_stonework_block",
"side": "compressedstone:block/infused_stonework_path_side",
"bottom": "compressedstone:block/infused_stonework_block"
},
"elements": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"textures": {
"particle": "minecraft:block/stone",
"top": "compressedstone:block/stonework_path_top",
"side": "compressedstone:block/reinforced_stonework_block",
"side": "compressedstone:block/reinforced_stonework_path_side",
"bottom": "compressedstone:block/reinforced_stonework_block"
},
"elements": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"textures": {
"particle": "minecraft:block/stone",
"top": "compressedstone:block/stonework_path_top",
"side": "minecraft:block/furnace_top",
"side": "compressedstone:block/stonework_path_side",
"bottom": "minecraft:block/furnace_top"
},
"elements": [
Expand Down
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.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"entries": [
{
"type": "minecraft:item",
"name": "compressedstone:stonework_block"
"name": "compressedstone:infused_stonework_block"
}
],
"conditions": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"entries": [
{
"type": "minecraft:item",
"name": "compressedstone:stonework_block"
"name": "compressedstone:infused_stonework_block"
}
],
"conditions": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"entries": [
{
"type": "minecraft:item",
"name": "compressedstone:stonework_block"
"name": "compressedstone:reinforced_stonework_block"
}
],
"conditions": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"entries": [
{
"type": "minecraft:item",
"name": "compressedstone:stonework_block"
"name": "compressedstone:reinforced_stonework_block"
}
],
"conditions": [
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"replace": false,
"value": [
"compressedstone:stonework_block"
"values": [
"compressedstone:stonework_block",
"compressedstone:reinforced_stonework_block",
"compressedstone:infused_stonework_path",
"compressedstone:stonework_path",
"compressedstone:reinforced_stonework_path",
"compressedstone:infused_stonework_block"
]
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"replace": false,
"value": [
"values": [
"compressedstone:stonework_block",
"compressedstone:reinforced_stonework_block",
"compressedstone:infused_stonework_block",
Expand Down

0 comments on commit 038bd5a

Please sign in to comment.