Tweaky tweak
This commit is contained in:
parent
6eb8da2bcd
commit
3ad97d652d
@ -111,6 +111,7 @@ public class TemplatesClient implements ClientModInitializer {
|
|||||||
provider.addTemplateModel(Templates.id("outer_stairs_special") , new UnbakedAutoRetexturedModel(new Identifier("block/outer_stairs")));
|
provider.addTemplateModel(Templates.id("outer_stairs_special") , new UnbakedAutoRetexturedModel(new Identifier("block/outer_stairs")));
|
||||||
provider.addTemplateModel(Templates.id("trapdoor_bottom_special") , new UnbakedAutoRetexturedModel(new Identifier("block/template_trapdoor_bottom")));
|
provider.addTemplateModel(Templates.id("trapdoor_bottom_special") , new UnbakedAutoRetexturedModel(new Identifier("block/template_trapdoor_bottom")));
|
||||||
provider.addTemplateModel(Templates.id("trapdoor_top_special") , new UnbakedAutoRetexturedModel(new Identifier("block/template_trapdoor_top")));
|
provider.addTemplateModel(Templates.id("trapdoor_top_special") , new UnbakedAutoRetexturedModel(new Identifier("block/template_trapdoor_top")));
|
||||||
|
provider.addTemplateModel(Templates.id("vertical_slab_special") , new UnbakedAutoRetexturedModel(Templates.id("block/vertical_slab"))); //my model not vanilla
|
||||||
provider.addTemplateModel(Templates.id("wall_post_special") , new UnbakedAutoRetexturedModel(new Identifier("block/template_wall_post")));
|
provider.addTemplateModel(Templates.id("wall_post_special") , new UnbakedAutoRetexturedModel(new Identifier("block/template_wall_post")));
|
||||||
|
|
||||||
//vanilla style models (using "special-sprite replacement" method)
|
//vanilla style models (using "special-sprite replacement" method)
|
||||||
@ -123,7 +124,6 @@ public class TemplatesClient implements ClientModInitializer {
|
|||||||
provider.addTemplateModel(Templates.id("glass_pane_side_alt_special") , new UnbakedAutoRetexturedModel(Templates.id("block/glass_pane_side_alt")));
|
provider.addTemplateModel(Templates.id("glass_pane_side_alt_special") , new UnbakedAutoRetexturedModel(Templates.id("block/glass_pane_side_alt")));
|
||||||
provider.addTemplateModel(Templates.id("wall_side_special") , new UnbakedJsonRetexturedModel(Templates.id("block/wall_side")));
|
provider.addTemplateModel(Templates.id("wall_side_special") , new UnbakedJsonRetexturedModel(Templates.id("block/wall_side")));
|
||||||
provider.addTemplateModel(Templates.id("wall_side_tall_special") , new UnbakedJsonRetexturedModel(Templates.id("block/wall_side_tall")));
|
provider.addTemplateModel(Templates.id("wall_side_tall_special") , new UnbakedJsonRetexturedModel(Templates.id("block/wall_side_tall")));
|
||||||
provider.addTemplateModel(Templates.id("vertical_slab_special") , new UnbakedJsonRetexturedModel(Templates.id("block/vertical_slab")));
|
|
||||||
|
|
||||||
//mesh models
|
//mesh models
|
||||||
provider.addTemplateModel(Templates.id("slope_special") , new UnbakedMeshRetexturedModel(Templates.id("block/slope_base"), SlopeBaseMesh::makeUpright));
|
provider.addTemplateModel(Templates.id("slope_special") , new UnbakedMeshRetexturedModel(Templates.id("block/slope_base"), SlopeBaseMesh::makeUpright));
|
||||||
|
@ -68,6 +68,9 @@ public class TemplateVerticalSlabBlock extends TemplateSlabBlock {
|
|||||||
// };
|
// };
|
||||||
|
|
||||||
Direction hmm = ctx.getHorizontalPlayerFacing();
|
Direction hmm = ctx.getHorizontalPlayerFacing();
|
||||||
|
//So when you click on the ground, they place on the near side of the block rather than the far side.
|
||||||
|
//Gives you more options when looking at a corner & it feels better imo
|
||||||
|
if(ctx.getSide().getAxis().isVertical()) hmm = hmm.getOpposite();
|
||||||
|
|
||||||
return TemplateInteractionUtil.modifyPlacementState(getDefaultState()
|
return TemplateInteractionUtil.modifyPlacementState(getDefaultState()
|
||||||
.with(WATERLOGGED, ctx.getWorld().getFluidState(pos).getFluid() == Fluids.WATER)
|
.with(WATERLOGGED, ctx.getWorld().getFluidState(pos).getFluid() == Fluids.WATER)
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
"templates:slab",
|
"templates:slab",
|
||||||
"templates:stairs",
|
"templates:stairs",
|
||||||
"templates:trapdoor",
|
"templates:trapdoor",
|
||||||
|
"templates:vertical_slab",
|
||||||
"templates:wall",
|
"templates:wall",
|
||||||
"templates:slope"
|
"templates:slope"
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user