Skip to content

Commit

Permalink
Added pressure plates
Browse files Browse the repository at this point in the history
  • Loading branch information
GirafiStudios committed Oct 31, 2020
1 parent 12a22c9 commit f9ae70d
Show file tree
Hide file tree
Showing 17 changed files with 126 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/teammetallurgy/atum/init/AtumBlocks.java
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,10 @@ public class AtumBlocks {
public static final Block LIMESTONE_BUTTON = registerBlock(new StoneButtonBlock(AbstractBlock.Properties.create(Material.MISCELLANEOUS).doesNotBlockMovement().hardnessAndResistance(0.5F)), "limestone_button");
public static final Block PALM_BUTTON = registerBlock(new WoodButtonBlock(AbstractBlock.Properties.create(Material.MISCELLANEOUS).doesNotBlockMovement().hardnessAndResistance(0.5F).sound(SoundType.WOOD)), "palm_button");
public static final Block DEADWOOD_BUTTON = registerBlock(new WoodButtonBlock(AbstractBlock.Properties.create(Material.MISCELLANEOUS).doesNotBlockMovement().hardnessAndResistance(0.5F).sound(SoundType.WOOD)), "deadwood_button");
public static final Block LIMESTONE_PRESSURE_PLATE = registerBlock(new PressurePlateBlock(PressurePlateBlock.Sensitivity.MOBS, AbstractBlock.Properties.create(Material.ROCK).setRequiresTool().doesNotBlockMovement().hardnessAndResistance(0.5F)), "limestone_pressure_plate");
public static final Block PALM_PRESSURE_PLATE = registerBlock(new PressurePlateBlock(PressurePlateBlock.Sensitivity.EVERYTHING, AbstractBlock.Properties.create(Material.WOOD, PALM_PLANKS.getMaterialColor()).doesNotBlockMovement().hardnessAndResistance(0.5F).sound(SoundType.WOOD)), "palm_pressure_plate");
public static final Block DEADWOOD_PRESSURE_PLATE = registerBlock(new PressurePlateBlock(PressurePlateBlock.Sensitivity.EVERYTHING, AbstractBlock.Properties.create(Material.WOOD, DEADWOOD_PLANKS.getMaterialColor()).doesNotBlockMovement().hardnessAndResistance(0.5F).sound(SoundType.WOOD)), "deadwood_pressure_plate");
public static final Block PALM_SIGN = registerBlock(new StandingSignBlock(PressurePlateBlock.Sensitivity.EVERYTHING, AbstractBlock.Properties.create(Material.WOOD, PALM_PLANKS.getMaterialColor()).doesNotBlockMovement().hardnessAndResistance(0.5F).sound(SoundType.WOOD)), "palm_sign");
public static final Block HEART_OF_RA = AtumItems.HEART_OF_RA;

public static void setBlockInfo() {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"variants": {
"powered=false": {
"model": "atum:block/deadwood_pressure_plate"
},
"powered=true": {
"model": "atum:block/deadwood_pressure_plate_down"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"variants": {
"powered=false": {
"model": "atum:block/limestone_pressure_plate"
},
"powered=true": {
"model": "atum:block/limestone_pressure_plate_down"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"variants": {
"powered=false": {
"model": "atum:block/palm_pressure_plate"
},
"powered=true": {
"model": "atum:block/palm_pressure_plate_down"
}
}
}
3 changes: 3 additions & 0 deletions src/main/resources/assets/atum/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"block.atum.limestone_brick_chiseled_door": "Chiseled Limestone Bricks Door",
"block.atum.limestone_brick_carved_door": "Carved Limestone Bricks Door",
"block.atum.limestone_button": "Limestone Button",
"block.atum.limestone_pressure_plate": "Limestone Pressure Plate",
"block.atum.ceramic_white": "White Ceramic Tile Block",
"block.atum.ceramic_orange": "Orange Ceramic Tile Block",
"block.atum.ceramic_magenta": "Magenta Ceramic Tile Block",
Expand Down Expand Up @@ -262,13 +263,15 @@
"block.atum.palm_hatch": "Palm Hatch",
"block.atum.palm_ladder": "Palm Ladder",
"block.atum.palm_button": "Palm Button",
"block.atum.palm_pressure_plate": "Palm Pressure Plate",
"block.atum.deadwood_planks": "Deadwood Planks",
"block.atum.deadwood_door": "Deadwood Door",
"block.atum.deadwood_fence": "Deadwood Fence",
"block.atum.deadwood_fence_gate": "Deadwood Fence Gate",
"block.atum.deadwood_hatch": "Deadwood Hatch",
"block.atum.deadwood_ladder": "Deadwood Ladder",
"block.atum.deadwood_button": "Deadwood Button",
"block.atum.deadwood_pressure_plate": "Deadwood Pressure Plate",
"block.atum.palm_torch": "Palm Torch",
"block.atum.deadwood_torch": "Deadwood Torch",
"block.atum.limestone_torch": "Limestone Torch",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/pressure_plate_up",
"textures": {
"texture": "atum:block/deadwood_planks"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/pressure_plate_down",
"textures": {
"texture": "atum:block/deadwood_planks"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/pressure_plate_up",
"textures": {
"texture": "atum:block/limestone"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/pressure_plate_down",
"textures": {
"texture": "atum:block/limestone"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/pressure_plate_up",
"textures": {
"texture": "atum:block/palm_planks"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/pressure_plate_down",
"textures": {
"texture": "atum:block/palm_planks"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"parent": "atum:block/deadwood_pressure_plate"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"parent": "atum:block/limestone_pressure_plate"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"parent": "atum:block/palm_pressure_plate"
}
15 changes: 15 additions & 0 deletions src/main/resources/data/atum/recipes/deadwood_pressure_plate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"type": "minecraft:crafting_shaped",
"group": "wooden_pressure_plate",
"pattern": [
"##"
],
"key": {
"#": {
"item": "atum:deadwood_planks"
}
},
"result": {
"item": "atum:deadwood_pressure_plate"
}
}
14 changes: 14 additions & 0 deletions src/main/resources/data/atum/recipes/limestone_pressure_plate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"##"
],
"key": {
"#": {
"item": "atum:limestone"
}
},
"result": {
"item": "atum:limestone_pressure_plate"
}
}
15 changes: 15 additions & 0 deletions src/main/resources/data/atum/recipes/palm_pressure_plate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"type": "minecraft:crafting_shaped",
"group": "wooden_pressure_plate",
"pattern": [
"##"
],
"key": {
"#": {
"item": "atum:palm_planks"
}
},
"result": {
"item": "atum:palm_pressure_plate"
}
}

0 comments on commit f9ae70d

Please sign in to comment.