This commit is contained in:
quat1024 2023-07-11 04:31:25 -04:00
parent 5986d57526
commit d70307b5c9
5 changed files with 31 additions and 5 deletions

View File

@ -59,7 +59,7 @@ public class Templates implements ModInitializer {
public static final Block SLAB = Registry.register(Registries.BLOCK, id("slab") , new TemplateSlabBlock(cp(Blocks.OAK_SLAB))); public static final Block SLAB = Registry.register(Registries.BLOCK, id("slab") , new TemplateSlabBlock(cp(Blocks.OAK_SLAB)));
public static final Block STAIRS = Registry.register(Registries.BLOCK, id("stairs") , new TemplateStairsBlock(cp(Blocks.OAK_STAIRS))); public static final Block STAIRS = Registry.register(Registries.BLOCK, id("stairs") , new TemplateStairsBlock(cp(Blocks.OAK_STAIRS)));
public static final Block TRAPDOOR = Registry.register(Registries.BLOCK, id("trapdoor") , new TemplateTrapdoorBlock(cp(Blocks.OAK_TRAPDOOR))); public static final Block TRAPDOOR = Registry.register(Registries.BLOCK, id("trapdoor") , new TemplateTrapdoorBlock(cp(Blocks.OAK_TRAPDOOR)));
public static final Block WALL = Registry.register(Registries.BLOCK, id("wall") , new TemplateWallBlock(cp(Blocks.COBBLESTONE_WALL))); public static final Block WALL = Registry.register(Registries.BLOCK, id("wall") , new TemplateWallBlock(TemplateInteractionUtil.makeSettings()));
public static final Block SLOPE = Registry.register(Registries.BLOCK, id("slope") , new TemplateSlopeBlock(TemplateInteractionUtil.makeSettings())); public static final Block SLOPE = Registry.register(Registries.BLOCK, id("slope") , new TemplateSlopeBlock(TemplateInteractionUtil.makeSettings()));
//30 degree slope (shallow/deep) //30 degree slope (shallow/deep)
//corner slopes //corner slopes
@ -146,5 +146,7 @@ public class Templates implements ModInitializer {
e.add(CARPET); e.add(CARPET);
e.add(PANE); e.add(PANE);
e.add(CANDLE); e.add(CANDLE);
e.add(SLOPE);
} }
} }

View File

@ -27,6 +27,7 @@ import org.jetbrains.annotations.Nullable;
public class TemplateStairsBlock extends StairsBlock implements BlockEntityProvider { public class TemplateStairsBlock extends StairsBlock implements BlockEntityProvider {
public TemplateStairsBlock(BlockState blockState, Settings settings) { public TemplateStairsBlock(BlockState blockState, Settings settings) {
super(blockState, settings); super(blockState, settings);
setDefaultState(TemplateInteractionUtil.setDefaultStates(getDefaultState()));
} }
public TemplateStairsBlock(Settings settings) { public TemplateStairsBlock(Settings settings) {

View File

@ -7,12 +7,14 @@
"templates:cube", "templates:cube",
"templates:fence", "templates:fence",
"templates:fence_gate", "templates:fence_gate",
"templates:lever",
"templates:pane", "templates:pane",
"templates:post", "templates:post",
"templates:pressure_plate",
"templates:slab", "templates:slab",
"templates:slope",
"templates:stairs", "templates:stairs",
"templates:trapdoor", "templates:trapdoor",
"templates:wall" "templates:wall",
"templates:slope"
] ]
} }

View File

@ -8,13 +8,15 @@
"templates:cube", "templates:cube",
"templates:fence", "templates:fence",
"templates:fence_gate", "templates:fence_gate",
"templates:lever",
"templates:pane", "templates:pane",
"templates:post", "templates:post",
"templates:pressure_plate",
"templates:slab", "templates:slab",
"templates:slope",
"templates:stairs", "templates:stairs",
"templates:trapdoor", "templates:trapdoor",
"templates:wall" "templates:wall",
"templates:slope"
] ]
}, },
"criteria": { "criteria": {

View File

@ -0,0 +1,19 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "templates:button"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}