Skip to content

Commit

Permalink
wip: Landing Stone model fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BlayTheNinth committed Dec 16, 2023
1 parent 2c97ed2 commit eab66fa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import net.blay09.mods.waystones.api.IWaystone;
import net.blay09.mods.waystones.block.entity.LandingStoneBlockEntity;
import net.blay09.mods.waystones.block.entity.ModBlockEntities;
import net.blay09.mods.waystones.block.entity.WarpPlateBlockEntity;
import net.blay09.mods.waystones.block.entity.WaystoneBlockEntityBase;
import net.minecraft.core.BlockPos;
import net.minecraft.world.InteractionResult;
Expand All @@ -15,15 +14,11 @@
import net.minecraft.world.level.block.entity.BlockEntityType;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.phys.shapes.CollisionContext;
import net.minecraft.world.phys.shapes.Shapes;
import net.minecraft.world.phys.shapes.VoxelShape;
import org.jetbrains.annotations.Nullable;

public class LandingStoneBlock extends WaystoneBlockBase {
private static final VoxelShape SHAPE = Shapes.or(
box(0.0, 0.0, 0.0, 12.0, 1.0, 12.0),
box(3.0, 1.0, 3.0, 13.0, 2.0, 13.0)
).optimize();
private static final VoxelShape SHAPE = box(3.0, 0.0, 3.0, 13.0, 1.0, 13.0);

public LandingStoneBlock(Properties properties) {
super(properties);
Expand All @@ -39,9 +34,6 @@ protected boolean canSilkTouch() {

@Override
public VoxelShape getShape(BlockState blockState, BlockGetter blockGetter, BlockPos blockPos, CollisionContext collisionContext) {
final VoxelShape SHAPE = Shapes.or(
box(3.0, 1.0, 3.0, 13.0, 2.0, 13.0)
).optimize();
return SHAPE;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"credit": "Made with Blockbench",
"parent": "block/block",
"textures": {
"particle": "waystones:block/warp_plate",
"texture": "waystones:block/warp_plate"
"particle": "waystones:block/landing_stone",
"texture": "waystones:block/landing_stone"
},
"elements": [
{
"name": "diag",
"from": [2.5, 1, 2.5],
"to": [13.5, 1.5, 13.5],
"from": [2.5, 0, 2.5],
"to": [13.5, 0.5, 13.5],
"rotation": {"angle": -45, "axis": "y", "origin": [8, 0, 8]},
"faces": {
"north": {"uv": [0, 0, 10, 0.5], "texture": "#texture"},
Expand All @@ -22,8 +22,8 @@
},
{
"name": "bordersouth",
"from": [3, 1, 3],
"to": [13, 2, 13],
"from": [3, 0, 3],
"to": [13, 1, 13],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]},
"faces": {
"north": {"uv": [0, 0, 10, 1], "texture": "#texture"},
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit eab66fa

Please sign in to comment.