-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added bedrock to blend with other stones better - Added dimension type check, will now ignore nether and end
- Loading branch information
Showing
9 changed files
with
81 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
src/main/java/network/pxl8/geoexpansion/common/blocks/BlockBedrock.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package network.pxl8.geoexpansion.common.blocks; | ||
|
||
import net.minecraft.block.material.EnumPushReaction; | ||
import net.minecraft.block.material.Material; | ||
import net.minecraft.block.state.IBlockState; | ||
import net.minecraft.init.Items; | ||
import net.minecraft.item.Item; | ||
|
||
import java.util.Random; | ||
|
||
public class BlockBedrock extends BlockStone { | ||
|
||
BlockBedrock() { | ||
super("mc.bedrock", "", -1.0F, "minecraft:bedrock", ""); | ||
this.setResistance(6000000.0F); | ||
this.disableStats(); | ||
} | ||
|
||
@Override | ||
public String getHarvestTool(IBlockState state) { return null; } | ||
|
||
@Override | ||
public int getHarvestLevel(IBlockState state) { return -1; } | ||
|
||
@Override | ||
public int quantityDropped(Random random) { return 0; } | ||
|
||
@Override | ||
public Item getItemDropped(IBlockState state, Random rand, int fortune) { return Items.AIR; } | ||
|
||
@Override | ||
public EnumPushReaction getMobilityFlag(IBlockState state) { return EnumPushReaction.BLOCK; } | ||
|
||
@Override | ||
public boolean isOpaqueCube(IBlockState state) | ||
{ | ||
return false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/main/resources/assets/geoexpansion/blockstates/mc.bedrock.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"forge_marker": 1, | ||
"defaults": { | ||
"model": "geoexpansion:tinted_block", | ||
"textures": { | ||
"particle": "minecraft:blocks/bedrock", | ||
"all": "minecraft:blocks/bedrock" | ||
}, | ||
"uvlock": true | ||
}, | ||
"variants": { | ||
"density": { | ||
"soft": {}, | ||
"firm": {}, | ||
"solid": {}, | ||
"hard": {} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/geoexpansion/models/item/mc.bedrock.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "block/cube_all", | ||
"textures": { | ||
"all": "minecraft:blocks/bedrock" | ||
} | ||
} |