Rubber Wood Pressure plate for #1739
This commit is contained in:
parent
2f30d848af
commit
7e5ba45eb4
11 changed files with 71 additions and 0 deletions
|
@ -0,0 +1,19 @@
|
|||
package techreborn.blocks.misc;
|
||||
|
||||
import net.fabricmc.fabric.api.block.FabricBlockSettings;
|
||||
import net.minecraft.block.Material;
|
||||
import net.minecraft.block.MaterialColor;
|
||||
import net.minecraft.block.PressurePlateBlock;
|
||||
import net.minecraft.sound.BlockSoundGroup;
|
||||
|
||||
/**
|
||||
* @author drcrazy
|
||||
*
|
||||
*/
|
||||
public class RubberPressurePlateBlock extends PressurePlateBlock {
|
||||
|
||||
public RubberPressurePlateBlock() {
|
||||
super(PressurePlateBlock.ActivationRule.EVERYTHING, FabricBlockSettings.of(Material.WOOD, MaterialColor.SPRUCE).noCollision().strength(0.5f, 0.5f).sounds(BlockSoundGroup.WOOD).build());
|
||||
}
|
||||
|
||||
}
|
|
@ -46,6 +46,7 @@ import techreborn.blocks.misc.BlockRubberPlank;
|
|||
import techreborn.blocks.misc.BlockRubberPlankStair;
|
||||
import techreborn.blocks.misc.BlockRubberSapling;
|
||||
import techreborn.blocks.misc.RubberButtonBlock;
|
||||
import techreborn.blocks.misc.RubberPressurePlateBlock;
|
||||
import techreborn.blocks.misc.RubberTrapdoorBlock;
|
||||
import techreborn.config.TechRebornConfig;
|
||||
import techreborn.init.ModFluids;
|
||||
|
@ -130,6 +131,7 @@ public class ModRegistry {
|
|||
RebornRegistry.registerBlock(TRContent.RUBBER_PLANK_STAIR = InitUtils.setup(new BlockRubberPlankStair(), "rubber_plank_stair"), itemGroup);
|
||||
RebornRegistry.registerBlock(TRContent.RUBBER_TRAPDOOR = InitUtils.setup(new RubberTrapdoorBlock(), "rubber_trapdoor"), itemGroup);
|
||||
RebornRegistry.registerBlock(TRContent.RUBBER_BUTTON = InitUtils.setup(new RubberButtonBlock(), "rubber_button"), itemGroup);
|
||||
RebornRegistry.registerBlock(TRContent.RUBBER_PRESSURE_PLATE = InitUtils.setup(new RubberPressurePlateBlock(), "rubber_pressure_plate"), itemGroup);
|
||||
|
||||
TechReborn.LOGGER.debug("TechReborns Blocks Loaded");
|
||||
}
|
||||
|
|
|
@ -90,6 +90,7 @@ public class TRContent {
|
|||
public static Block RUBBER_FENCE_GATE;
|
||||
public static Block RUBBER_TRAPDOOR;
|
||||
public static Block RUBBER_BUTTON;
|
||||
public static Block RUBBER_PRESSURE_PLATE;
|
||||
|
||||
// Armor
|
||||
public static Item CLOAKING_DEVICE;
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"variants": {
|
||||
"powered=false": { "model": "techreborn:block/rubber/rubber_pressure_plate" },
|
||||
"powered=true": { "model": "techreborn:block/rubber/rubber_pressure_plate_down" }
|
||||
}
|
||||
}
|
|
@ -92,6 +92,7 @@
|
|||
"block.techreborn.rubber_fence_gate": "Rubber Wood Fence Gate",
|
||||
"block.techreborn.rubber_trapdoor": "Rubber Wood Trapdoor",
|
||||
"block.techreborn.rubber_button": "Rubber Wood Button",
|
||||
"block.techreborn.rubber_pressure_plate": "Rubber Wood Pressure Plate",
|
||||
"block.techreborn.refined_iron_fence": "Iron Fence",
|
||||
"block.techreborn.reinforced_glass": "Reinforced Glass",
|
||||
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent": "minecraft:block/pressure_plate_up",
|
||||
"textures": {
|
||||
"texture": "techreborn:block/rubber_planks"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent": "minecraft:block/pressure_plate_down",
|
||||
"textures": {
|
||||
"texture": "techreborn:block/rubber_planks"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"parent": "techreborn:block/rubber/rubber_pressure_plate"
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"replace": false,
|
||||
"values": [
|
||||
"techreborn:rubber_pressure_plate"
|
||||
]
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"replace": false,
|
||||
"values": [
|
||||
"techreborn:rubber_pressure_plate"
|
||||
]
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"type": "minecraft:crafting_shaped",
|
||||
"group": "wooden_pressure_plate",
|
||||
"pattern": [
|
||||
"##"
|
||||
],
|
||||
"key": {
|
||||
"#": {
|
||||
"item": "techreborn:rubber_planks"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"item": "techreborn:rubber_pressure_plate"
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue