Skip to content
This repository has been archived by the owner on May 13, 2021. It is now read-only.

Commit

Permalink
add a platform under it
Browse files Browse the repository at this point in the history
  • Loading branch information
thecatcore committed Mar 7, 2020
1 parent c0f7a59 commit 2c27cf8
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,18 @@ public enum PlayerPlacementHandlers {
destination.setBlockState(blockPos.south(), stone);
destination.setBlockState(blockPos.south().west(), stone);

return new BlockPattern.TeleportTarget(new Vec3d(blockPos.up()), Vec3d.ZERO, 0);
blockPos = blockPos.down();
destination.setBlockState(blockPos, stone);
destination.setBlockState(blockPos.west(), stone);
destination.setBlockState(blockPos.west().north(), stone);
destination.setBlockState(blockPos.north(), stone);
destination.setBlockState(blockPos.north().east(), stone);
destination.setBlockState(blockPos.east(), stone);
destination.setBlockState(blockPos.east().south(), stone);
destination.setBlockState(blockPos.south(), stone);
destination.setBlockState(blockPos.south().west(), stone);

return new BlockPattern.TeleportTarget(new Vec3d(blockPos.up(2)), Vec3d.ZERO, 0);
} else {
destination.setBlockState(blockPos.down(1), Registry.BLOCK.get(Utils.appendToPath(Objects.requireNonNull(Registry.DIMENSION_TYPE.getId(destination.getDimension().getType())), "_portal")).getDefaultState());
return new BlockPattern.TeleportTarget(new Vec3d(blockPos), Vec3d.ZERO, 0);
Expand Down

0 comments on commit 2c27cf8

Please sign in to comment.