Stalactite enhancements (WIP)
|
@ -102,8 +102,7 @@ public class EndSignBlock extends AbstractSignBlock implements BlockPatterned {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer,
|
public void onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) {
|
||||||
ItemStack itemStack) {
|
|
||||||
if (placer != null && placer instanceof PlayerEntity) {
|
if (placer != null && placer instanceof PlayerEntity) {
|
||||||
ESignBlockEntity sign = (ESignBlockEntity) world.getBlockEntity(pos);
|
ESignBlockEntity sign = (ESignBlockEntity) world.getBlockEntity(pos);
|
||||||
if (!world.isClient) {
|
if (!world.isClient) {
|
||||||
|
@ -124,7 +123,7 @@ public class EndSignBlock extends AbstractSignBlock implements BlockPatterned {
|
||||||
}
|
}
|
||||||
return super.getStateForNeighborUpdate(state, facing, neighborState, world, pos, neighborPos);
|
return super.getStateForNeighborUpdate(state, facing, neighborState, world, pos, neighborPos);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos) {
|
public boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos) {
|
||||||
if (!state.get(FLOOR)) {
|
if (!state.get(FLOOR)) {
|
||||||
|
@ -143,7 +142,8 @@ public class EndSignBlock extends AbstractSignBlock implements BlockPatterned {
|
||||||
return this.getDefaultState().with(FLOOR, true)
|
return this.getDefaultState().with(FLOOR, true)
|
||||||
.with(ROTATION, MathHelper.floor((180.0 + ctx.getPlayerYaw() * 16.0 / 360.0) + 0.5 - 12) & 15)
|
.with(ROTATION, MathHelper.floor((180.0 + ctx.getPlayerYaw() * 16.0 / 360.0) + 0.5 - 12) & 15)
|
||||||
.with(WATERLOGGED, fluidState.getFluid() == Fluids.WATER);
|
.with(WATERLOGGED, fluidState.getFluid() == Fluids.WATER);
|
||||||
} else if (ctx.getSide() != Direction.DOWN) {
|
}
|
||||||
|
else if (ctx.getSide() != Direction.DOWN) {
|
||||||
BlockState blockState = this.getDefaultState();
|
BlockState blockState = this.getDefaultState();
|
||||||
FluidState fluidState = ctx.getWorld().getFluidState(ctx.getBlockPos());
|
FluidState fluidState = ctx.getWorld().getFluidState(ctx.getBlockPos());
|
||||||
WorldView worldView = ctx.getWorld();
|
WorldView worldView = ctx.getWorld();
|
||||||
|
|
|
@ -109,7 +109,7 @@ public abstract class FeatureSaplingBlock extends BlockBaseNotFull implements Fe
|
||||||
block = block.split("/")[1];
|
block = block.split("/")[1];
|
||||||
return Patterns.createJson(Patterns.ITEM_BLOCK, block);
|
return Patterns.createJson(Patterns.ITEM_BLOCK, block);
|
||||||
}
|
}
|
||||||
return Patterns.createJson(Patterns.BLOCK_SAPLING, block);
|
return Patterns.createJson(Patterns.BLOCK_CROSS, block);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -4,11 +4,19 @@ import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.block.BlockState;
|
import net.minecraft.block.BlockState;
|
||||||
import net.minecraft.block.Blocks;
|
import net.minecraft.block.Blocks;
|
||||||
|
import net.minecraft.block.FluidFillable;
|
||||||
import net.minecraft.block.ShapeContext;
|
import net.minecraft.block.ShapeContext;
|
||||||
|
import net.minecraft.block.Waterloggable;
|
||||||
import net.minecraft.entity.LivingEntity;
|
import net.minecraft.entity.LivingEntity;
|
||||||
|
import net.minecraft.fluid.Fluid;
|
||||||
|
import net.minecraft.fluid.FluidState;
|
||||||
|
import net.minecraft.fluid.Fluids;
|
||||||
|
import net.minecraft.item.ItemPlacementContext;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.state.StateManager;
|
import net.minecraft.state.StateManager;
|
||||||
|
import net.minecraft.state.property.BooleanProperty;
|
||||||
import net.minecraft.state.property.IntProperty;
|
import net.minecraft.state.property.IntProperty;
|
||||||
|
import net.minecraft.state.property.Properties;
|
||||||
import net.minecraft.util.Identifier;
|
import net.minecraft.util.Identifier;
|
||||||
import net.minecraft.util.math.BlockPos;
|
import net.minecraft.util.math.BlockPos;
|
||||||
import net.minecraft.util.math.BlockPos.Mutable;
|
import net.minecraft.util.math.BlockPos.Mutable;
|
||||||
|
@ -20,29 +28,62 @@ import net.minecraft.world.World;
|
||||||
import net.minecraft.world.WorldAccess;
|
import net.minecraft.world.WorldAccess;
|
||||||
import net.minecraft.world.WorldView;
|
import net.minecraft.world.WorldView;
|
||||||
import ru.betterend.blocks.BlockProperties;
|
import ru.betterend.blocks.BlockProperties;
|
||||||
|
import ru.betterend.client.render.ERenderLayer;
|
||||||
|
import ru.betterend.interfaces.IRenderTypeable;
|
||||||
import ru.betterend.patterns.Patterns;
|
import ru.betterend.patterns.Patterns;
|
||||||
|
|
||||||
public class StalactiteBlock extends BlockBaseNotFull {
|
public class StalactiteBlock extends BlockBaseNotFull implements Waterloggable, FluidFillable, IRenderTypeable {
|
||||||
|
public static final BooleanProperty WATERLOGGED = Properties.WATERLOGGED;
|
||||||
|
public static final BooleanProperty IS_FLOOR = BlockProperties.IS_FLOOR;
|
||||||
public static final IntProperty SIZE = BlockProperties.SIZE;
|
public static final IntProperty SIZE = BlockProperties.SIZE;
|
||||||
private static final Mutable POS = new Mutable();
|
private static final Mutable POS = new Mutable();
|
||||||
private static final VoxelShape[] SHAPES;
|
private static final VoxelShape[] SHAPES;
|
||||||
private final Block source;
|
|
||||||
|
|
||||||
public StalactiteBlock(Block source) {
|
public StalactiteBlock(Block source) {
|
||||||
super(FabricBlockSettings.copy(source).nonOpaque());
|
super(FabricBlockSettings.copy(source).nonOpaque());
|
||||||
this.setDefaultState(getStateManager().getDefaultState().with(SIZE, 0));
|
this.setDefaultState(getStateManager().getDefaultState().with(SIZE, 0).with(IS_FLOOR, true).with(WATERLOGGED, false));
|
||||||
this.source = source;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void appendProperties(StateManager.Builder<Block, BlockState> stateManager) {
|
protected void appendProperties(StateManager.Builder<Block, BlockState> stateManager) {
|
||||||
stateManager.add(SIZE);
|
stateManager.add(WATERLOGGED, IS_FLOOR, SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public VoxelShape getOutlineShape(BlockState state, BlockView view, BlockPos pos, ShapeContext ePos) {
|
public VoxelShape getOutlineShape(BlockState state, BlockView view, BlockPos pos, ShapeContext ePos) {
|
||||||
return SHAPES[state.get(SIZE)];
|
return SHAPES[state.get(SIZE)];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public BlockState getPlacementState(ItemPlacementContext ctx) {
|
||||||
|
WorldView worldView = ctx.getWorld();
|
||||||
|
BlockPos blockPos = ctx.getBlockPos();
|
||||||
|
Direction dir = ctx.getSide();
|
||||||
|
boolean water = worldView.getFluidState(blockPos).getFluid() == Fluids.WATER;
|
||||||
|
|
||||||
|
if (dir == Direction.UP) {
|
||||||
|
if (sideCoversSmallSquare(worldView, blockPos.up(), Direction.DOWN)) {
|
||||||
|
return getDefaultState().with(IS_FLOOR, false).with(WATERLOGGED, water);
|
||||||
|
}
|
||||||
|
else if (sideCoversSmallSquare(worldView, blockPos.down(), Direction.UP)) {
|
||||||
|
return getDefaultState().with(IS_FLOOR, true).with(WATERLOGGED, water);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
if (sideCoversSmallSquare(worldView, blockPos.up(), Direction.DOWN)) {
|
||||||
|
return getDefaultState().with(IS_FLOOR, false).with(WATERLOGGED, water);
|
||||||
|
}
|
||||||
|
else if (sideCoversSmallSquare(worldView, blockPos.down(), Direction.UP)) {
|
||||||
|
return getDefaultState().with(IS_FLOOR, true).with(WATERLOGGED, water);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) {
|
public void onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) {
|
||||||
|
@ -55,7 +96,7 @@ public class StalactiteBlock extends BlockBaseNotFull {
|
||||||
BlockState state2 = world.getBlockState(POS);
|
BlockState state2 = world.getBlockState(POS);
|
||||||
int size = state2.get(SIZE);
|
int size = state2.get(SIZE);
|
||||||
if (size < i) {
|
if (size < i) {
|
||||||
world.setBlockState(POS, state2.with(SIZE, i));
|
world.setBlockState(POS, state2.with(SIZE, i).with(IS_FLOOR, true));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
break;
|
break;
|
||||||
|
@ -75,7 +116,7 @@ public class StalactiteBlock extends BlockBaseNotFull {
|
||||||
BlockState state2 = world.getBlockState(POS);
|
BlockState state2 = world.getBlockState(POS);
|
||||||
int size = state2.get(SIZE);
|
int size = state2.get(SIZE);
|
||||||
if (size < i) {
|
if (size < i) {
|
||||||
world.setBlockState(POS, state2.with(SIZE, i));
|
world.setBlockState(POS, state2.with(SIZE, i).with(IS_FLOOR, false));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
break;
|
break;
|
||||||
|
@ -94,18 +135,29 @@ public class StalactiteBlock extends BlockBaseNotFull {
|
||||||
return Blocks.AIR.getDefaultState();
|
return Blocks.AIR.getDefaultState();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
if (checkUp(world, neighborPos, state.get(SIZE))) {
|
||||||
|
state = state.with(IS_FLOOR, false);
|
||||||
|
}
|
||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos) {
|
public boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos) {
|
||||||
BlockState upState = world.getBlockState(pos.up());
|
|
||||||
BlockState downState = world.getBlockState(pos.down());
|
|
||||||
int size = state.get(SIZE);
|
int size = state.get(SIZE);
|
||||||
boolean validUp = (upState.isOf(this) && upState.get(SIZE) >= size) || upState.isFullCube(world, pos.up());
|
return checkUp(world, pos, size) || checkDown(world, pos, size);
|
||||||
boolean validDown = (downState.isOf(this) && downState.get(SIZE) >= size) || downState.isFullCube(world, pos.down());
|
}
|
||||||
return validUp || validDown;
|
|
||||||
|
private boolean checkUp(BlockView world, BlockPos pos, int size) {
|
||||||
|
BlockPos p = pos.up();
|
||||||
|
BlockState state = world.getBlockState(p);
|
||||||
|
return (state.getBlock() instanceof StalactiteBlock && state.get(SIZE) >= size) || state.isFullCube(world, p);
|
||||||
|
}
|
||||||
|
|
||||||
|
private boolean checkDown(BlockView world, BlockPos pos, int size) {
|
||||||
|
BlockPos p = pos.down();
|
||||||
|
BlockState state = world.getBlockState(p);
|
||||||
|
return (state.getBlock() instanceof StalactiteBlock && state.get(SIZE) >= size) || state.isFullCube(world, p);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -114,15 +166,33 @@ public class StalactiteBlock extends BlockBaseNotFull {
|
||||||
if (block.contains("item")) {
|
if (block.contains("item")) {
|
||||||
return Patterns.createJson(Patterns.ITEM_GENERATED, "item/" + blockId.getPath());
|
return Patterns.createJson(Patterns.ITEM_GENERATED, "item/" + blockId.getPath());
|
||||||
}
|
}
|
||||||
blockId = Registry.BLOCK.getId(source);
|
return Patterns.createJson(Patterns.BLOCK_CROSS_SHADED, block);
|
||||||
int shape = Character.getNumericValue(block.charAt(block.lastIndexOf('_') + 1));
|
|
||||||
return Patterns.createJson(Patterns.BLOCKS_STALACTITE[shape], blockId.getNamespace() + ":block/" + blockId.getPath());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Identifier statePatternId() {
|
public Identifier statePatternId() {
|
||||||
return Patterns.STATE_STALACTITE;
|
return Patterns.STATE_STALACTITE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean canFillWithFluid(BlockView world, BlockPos pos, BlockState state, Fluid fluid) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean tryFillWithFluid(WorldAccess world, BlockPos pos, BlockState state, FluidState fluidState) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public FluidState getFluidState(BlockState state) {
|
||||||
|
return state.get(WATERLOGGED) ? Fluids.WATER.getStill(false) : Fluids.EMPTY.getDefaultState();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ERenderLayer getRenderLayer() {
|
||||||
|
return ERenderLayer.CUTOUT;
|
||||||
|
}
|
||||||
|
|
||||||
static {
|
static {
|
||||||
SHAPES = new VoxelShape[8];
|
SHAPES = new VoxelShape[8];
|
||||||
|
|
|
@ -71,7 +71,8 @@ public class Patterns {
|
||||||
public final static Identifier BLOCK_DOOR_TOP_HINGE = BetterEnd.makeID("patterns/block/door_top_hinge.json");
|
public final static Identifier BLOCK_DOOR_TOP_HINGE = BetterEnd.makeID("patterns/block/door_top_hinge.json");
|
||||||
public final static Identifier BLOCK_DOOR_BOTTOM = BetterEnd.makeID("patterns/block/door_bottom.json");
|
public final static Identifier BLOCK_DOOR_BOTTOM = BetterEnd.makeID("patterns/block/door_bottom.json");
|
||||||
public final static Identifier BLOCK_DOOR_BOTTOM_HINGE = BetterEnd.makeID("patterns/block/door_bottom_hinge.json");
|
public final static Identifier BLOCK_DOOR_BOTTOM_HINGE = BetterEnd.makeID("patterns/block/door_bottom_hinge.json");
|
||||||
public final static Identifier BLOCK_SAPLING = BetterEnd.makeID("patterns/block/sapling.json");
|
public final static Identifier BLOCK_CROSS = BetterEnd.makeID("patterns/block/cross.json");
|
||||||
|
public final static Identifier BLOCK_CROSS_SHADED = BetterEnd.makeID("patterns/block/cross_shaded.json");
|
||||||
public final static Identifier BLOCK_GATE_CLOSED = BetterEnd.makeID("patterns/block/fence_gate_closed.json");
|
public final static Identifier BLOCK_GATE_CLOSED = BetterEnd.makeID("patterns/block/fence_gate_closed.json");
|
||||||
public final static Identifier BLOCK_GATE_CLOSED_WALL = BetterEnd.makeID("patterns/block/wall_gate_closed.json");
|
public final static Identifier BLOCK_GATE_CLOSED_WALL = BetterEnd.makeID("patterns/block/wall_gate_closed.json");
|
||||||
public final static Identifier BLOCK_GATE_OPEN = BetterEnd.makeID("patterns/block/fence_gate_open.json");
|
public final static Identifier BLOCK_GATE_OPEN = BetterEnd.makeID("patterns/block/fence_gate_open.json");
|
||||||
|
@ -105,17 +106,6 @@ public class Patterns {
|
||||||
public final static Identifier BLOCK_TOP_SIDE_BOTTOM = BetterEnd.makeID("patterns/block/top_side_bottom.json");
|
public final static Identifier BLOCK_TOP_SIDE_BOTTOM = BetterEnd.makeID("patterns/block/top_side_bottom.json");
|
||||||
public final static Identifier BLOCK_PATH = BetterEnd.makeID("patterns/block/path.json");
|
public final static Identifier BLOCK_PATH = BetterEnd.makeID("patterns/block/path.json");
|
||||||
|
|
||||||
public final static Identifier[] BLOCKS_STALACTITE = new Identifier[] {
|
|
||||||
BetterEnd.makeID("patterns/block/stalactite_0.json"),
|
|
||||||
BetterEnd.makeID("patterns/block/stalactite_1.json"),
|
|
||||||
BetterEnd.makeID("patterns/block/stalactite_2.json"),
|
|
||||||
BetterEnd.makeID("patterns/block/stalactite_3.json"),
|
|
||||||
BetterEnd.makeID("patterns/block/stalactite_4.json"),
|
|
||||||
BetterEnd.makeID("patterns/block/stalactite_5.json"),
|
|
||||||
BetterEnd.makeID("patterns/block/stalactite_6.json"),
|
|
||||||
BetterEnd.makeID("patterns/block/stalactite_7.json")
|
|
||||||
};
|
|
||||||
|
|
||||||
//Models Item
|
//Models Item
|
||||||
public final static Identifier ITEM_WALL = BetterEnd.makeID("patterns/item/pattern_wall.json");
|
public final static Identifier ITEM_WALL = BetterEnd.makeID("patterns/item/pattern_wall.json");
|
||||||
public final static Identifier ITEM_FENCE = BetterEnd.makeID("patterns/item/pattern_fence.json");
|
public final static Identifier ITEM_FENCE = BetterEnd.makeID("patterns/item/pattern_fence.json");
|
||||||
|
|
|
@ -4,6 +4,7 @@ import java.util.Random;
|
||||||
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.block.BlockState;
|
import net.minecraft.block.BlockState;
|
||||||
|
import net.minecraft.state.property.Properties;
|
||||||
import net.minecraft.util.math.BlockPos;
|
import net.minecraft.util.math.BlockPos;
|
||||||
import net.minecraft.util.math.BlockPos.Mutable;
|
import net.minecraft.util.math.BlockPos.Mutable;
|
||||||
import net.minecraft.util.math.MathHelper;
|
import net.minecraft.util.math.MathHelper;
|
||||||
|
@ -33,14 +34,14 @@ public class StalactiteFeature extends DefaultFeature {
|
||||||
}
|
}
|
||||||
|
|
||||||
Mutable mut = new Mutable().set(pos);
|
Mutable mut = new Mutable().set(pos);
|
||||||
int height = random.nextInt(8);
|
int height = random.nextInt(8);
|
||||||
int dir = ceiling ? -1 : 1;
|
int dir = ceiling ? -1 : 1;
|
||||||
boolean stalagnate = false;
|
boolean stalagnate = false;
|
||||||
|
|
||||||
for (int i = 1; i <= height; i++) {
|
for (int i = 1; i <= height; i++) {
|
||||||
mut.setY(pos.getY() + i * dir);
|
mut.setY(pos.getY() + i * dir);
|
||||||
BlockState state = world.getBlockState(mut);
|
BlockState state = world.getBlockState(mut);
|
||||||
if (!state.isAir()) {
|
if (!state.getMaterial().isReplaceable()) {
|
||||||
stalagnate = state.isIn(EndTags.GEN_TERRAIN);
|
stalagnate = state.isIn(EndTags.GEN_TERRAIN);
|
||||||
height = i - 1;
|
height = i - 1;
|
||||||
break;
|
break;
|
||||||
|
@ -51,7 +52,10 @@ public class StalactiteFeature extends DefaultFeature {
|
||||||
for (int i = 0; i < height; i++) {
|
for (int i = 0; i < height; i++) {
|
||||||
mut.setY(pos.getY() + i * dir);
|
mut.setY(pos.getY() + i * dir);
|
||||||
int size = stalagnate ? MathHelper.abs(i - center) + 1 : height - i - 1;
|
int size = stalagnate ? MathHelper.abs(i - center) + 1 : height - i - 1;
|
||||||
BlocksHelper.setWithoutUpdate(world, mut, block.getDefaultState().with(StalactiteBlock.SIZE, size));
|
boolean waterlogged = !world.getFluidState(mut).isEmpty();
|
||||||
|
BlockState base = block.getDefaultState().with(StalactiteBlock.SIZE, size).with(Properties.WATERLOGGED, waterlogged);
|
||||||
|
BlockState state = stalagnate ? base.with(StalactiteBlock.IS_FLOOR, dir > 0 ? i < center : i > center) : base.with(StalactiteBlock.IS_FLOOR, dir > 0);
|
||||||
|
BlocksHelper.setWithoutUpdate(world, mut, state);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
{
|
||||||
|
"ambientocclusion": false,
|
||||||
|
"textures": {
|
||||||
|
"cross": "betterend:block/%texture%",
|
||||||
|
"particle": "#cross"
|
||||||
|
},
|
||||||
|
"elements": [
|
||||||
|
{ "from": [ 0.8, 0, 8 ],
|
||||||
|
"to": [ 15.2, 16, 8 ],
|
||||||
|
"rotation": { "origin": [ 8, 8, 8 ], "axis": "y", "angle": 45, "rescale": true },
|
||||||
|
"faces": {
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#cross" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#cross" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ "from": [ 8, 0, 0.8 ],
|
||||||
|
"to": [ 8, 16, 15.2 ],
|
||||||
|
"rotation": { "origin": [ 8, 8, 8 ], "axis": "y", "angle": 45, "rescale": true },
|
||||||
|
"faces": {
|
||||||
|
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#cross" },
|
||||||
|
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#cross" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,44 @@
|
||||||
|
{
|
||||||
|
"__comment": "Designed by Paulevs with Cubik Studio - https://cubik.studio",
|
||||||
|
"textures": {
|
||||||
|
"particle": "betterend:block/%texture%",
|
||||||
|
"texture": "betterend:block/%texture%"
|
||||||
|
},
|
||||||
|
"elements": [
|
||||||
|
{
|
||||||
|
"__comment": "Box1",
|
||||||
|
"from": [ 6, 0, 6 ],
|
||||||
|
"to": [ 10, 16, 10 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 6, 6, 10, 10 ], "texture": "#texture" },
|
||||||
|
"up": { "uv": [ 6, 6, 10, 10 ], "texture": "#texture" },
|
||||||
|
"north": { "uv": [ 6, 0, 10, 16 ], "texture": "#texture" },
|
||||||
|
"south": { "uv": [ 6, 0, 10, 16 ], "texture": "#texture" },
|
||||||
|
"west": { "uv": [ 6, 0, 10, 16 ], "texture": "#texture" },
|
||||||
|
"east": { "uv": [ 6, 0, 10, 16 ], "texture": "#texture" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__comment": "PlaneX2",
|
||||||
|
"from": [ 0.0007, 0, -0.0007 ],
|
||||||
|
"to": [ 22.5007, 16, 0.0003 ],
|
||||||
|
"rotation": { "origin": [ 0, 0, 0 ], "axis": "y", "angle": -45 },
|
||||||
|
"shade": false,
|
||||||
|
"faces": {
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__comment": "PlaneX2",
|
||||||
|
"from": [ -6.5007, 0, -0.0003 ],
|
||||||
|
"to": [ 15.9993, 16, 0.0007 ],
|
||||||
|
"rotation": { "origin": [ 16, 0, 0 ], "axis": "y", "angle": 45 },
|
||||||
|
"shade": false,
|
||||||
|
"faces": {
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,44 @@
|
||||||
|
{
|
||||||
|
"__comment": "Designed by Paulevs with Cubik Studio - https://cubik.studio",
|
||||||
|
"textures": {
|
||||||
|
"particle": "betterend:block/%texture%",
|
||||||
|
"texture": "betterend:block/%texture%"
|
||||||
|
},
|
||||||
|
"elements": [
|
||||||
|
{
|
||||||
|
"__comment": "Box1",
|
||||||
|
"from": [ 5, 0, 5 ],
|
||||||
|
"to": [ 11, 16, 11 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 5, 5, 11, 11 ], "texture": "#texture" },
|
||||||
|
"up": { "uv": [ 5, 5, 11, 11 ], "texture": "#texture" },
|
||||||
|
"north": { "uv": [ 5, 0, 11, 16 ], "texture": "#texture" },
|
||||||
|
"south": { "uv": [ 5, 0, 11, 16 ], "texture": "#texture" },
|
||||||
|
"west": { "uv": [ 5, 0, 11, 16 ], "texture": "#texture" },
|
||||||
|
"east": { "uv": [ 5, 0, 11, 16 ], "texture": "#texture" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__comment": "PlaneX2",
|
||||||
|
"from": [ 0.0007, 0, -0.0007 ],
|
||||||
|
"to": [ 22.5007, 16, 0.0003 ],
|
||||||
|
"rotation": { "origin": [ 0, 0, 0 ], "axis": "y", "angle": -45 },
|
||||||
|
"shade": false,
|
||||||
|
"faces": {
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__comment": "PlaneX2",
|
||||||
|
"from": [ -6.5007, 0, -0.0003 ],
|
||||||
|
"to": [ 15.9993, 16, 0.0007 ],
|
||||||
|
"rotation": { "origin": [ 16, 0, 0 ], "axis": "y", "angle": 45 },
|
||||||
|
"shade": false,
|
||||||
|
"faces": {
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,44 @@
|
||||||
|
{
|
||||||
|
"__comment": "Designed by Paulevs with Cubik Studio - https://cubik.studio",
|
||||||
|
"textures": {
|
||||||
|
"particle": "betterend:block/%texture%",
|
||||||
|
"texture": "betterend:block/%texture%"
|
||||||
|
},
|
||||||
|
"elements": [
|
||||||
|
{
|
||||||
|
"__comment": "Box1",
|
||||||
|
"from": [ 4, 0, 4 ],
|
||||||
|
"to": [ 12, 16, 12 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 4, 4, 12, 12 ], "texture": "#texture" },
|
||||||
|
"up": { "uv": [ 4, 4, 12, 12 ], "texture": "#texture" },
|
||||||
|
"north": { "uv": [ 4, 0, 12, 16 ], "texture": "#texture" },
|
||||||
|
"south": { "uv": [ 4, 0, 12, 16 ], "texture": "#texture" },
|
||||||
|
"west": { "uv": [ 4, 0, 12, 16 ], "texture": "#texture" },
|
||||||
|
"east": { "uv": [ 4, 0, 12, 16 ], "texture": "#texture" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__comment": "PlaneX2",
|
||||||
|
"from": [ 0.0007, 0, -0.0007 ],
|
||||||
|
"to": [ 22.5007, 16, 0.0003 ],
|
||||||
|
"rotation": { "origin": [ 0, 0, 0 ], "axis": "y", "angle": -45 },
|
||||||
|
"shade": false,
|
||||||
|
"faces": {
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__comment": "PlaneX2",
|
||||||
|
"from": [ -6.5007, 0, -0.0003 ],
|
||||||
|
"to": [ 15.9993, 16, 0.0007 ],
|
||||||
|
"rotation": { "origin": [ 16, 0, 0 ], "axis": "y", "angle": 45 },
|
||||||
|
"shade": false,
|
||||||
|
"faces": {
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -1,13 +1,21 @@
|
||||||
{
|
{
|
||||||
"variants":
|
"variants":
|
||||||
{
|
{
|
||||||
"size=0": { "model": "betterend:pattern/%block%/%block%_0" },
|
"size=0,is_floor=true": { "model": "betterend:pattern/%block%/%block%_0" },
|
||||||
"size=1": { "model": "betterend:pattern/%block%/%block%_1" },
|
"size=1,is_floor=true": { "model": "betterend:pattern/%block%/%block%_1" },
|
||||||
"size=2": { "model": "betterend:pattern/%block%/%block%_2" },
|
"size=2,is_floor=true": { "model": "betterend:pattern/%block%/%block%_2" },
|
||||||
"size=3": { "model": "betterend:pattern/%block%/%block%_3" },
|
"size=3,is_floor=true": { "model": "betterend:pattern/%block%/%block%_3" },
|
||||||
"size=4": { "model": "betterend:pattern/%block%/%block%_4" },
|
"size=4,is_floor=true": { "model": "betterend:pattern/%block%/%block%_4" },
|
||||||
"size=5": { "model": "betterend:pattern/%block%/%block%_5" },
|
"size=5,is_floor=true": { "model": "betterend:pattern/%block%/%block%_5" },
|
||||||
"size=6": { "model": "betterend:pattern/%block%/%block%_6" },
|
"size=6,is_floor=true": { "model": "betterend:pattern/%block%/%block%_6" },
|
||||||
"size=7": { "model": "betterend:pattern/%block%/%block%_7" }
|
"size=7,is_floor=true": { "model": "betterend:pattern/%block%/%block%_7" },
|
||||||
|
"size=0,is_floor=false": { "model": "betterend:pattern/%block%/%block%_0", "x": 180 },
|
||||||
|
"size=1,is_floor=false": { "model": "betterend:pattern/%block%/%block%_1", "x": 180 },
|
||||||
|
"size=2,is_floor=false": { "model": "betterend:pattern/%block%/%block%_2", "x": 180 },
|
||||||
|
"size=3,is_floor=false": { "model": "betterend:pattern/%block%/%block%_3", "x": 180 },
|
||||||
|
"size=4,is_floor=false": { "model": "betterend:pattern/%block%/%block%_4", "x": 180 },
|
||||||
|
"size=5,is_floor=false": { "model": "betterend:pattern/%block%/%block%_5", "x": 180 },
|
||||||
|
"size=6,is_floor=false": { "model": "betterend:pattern/%block%/%block%_6", "x": 180 },
|
||||||
|
"size=7,is_floor=false": { "model": "betterend:pattern/%block%/%block%_7", "x": 180 }
|
||||||
}
|
}
|
||||||
}
|
}
|
After Width: | Height: | Size: 171 B |
After Width: | Height: | Size: 181 B |
After Width: | Height: | Size: 190 B |
After Width: | Height: | Size: 186 B |
After Width: | Height: | Size: 199 B |
After Width: | Height: | Size: 197 B |
After Width: | Height: | Size: 214 B |
After Width: | Height: | Size: 213 B |