Bulb vine fix
|
@ -9,6 +9,7 @@ import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.loot.context.LootContext;
|
import net.minecraft.loot.context.LootContext;
|
||||||
import net.minecraft.util.math.BlockPos;
|
import net.minecraft.util.math.BlockPos;
|
||||||
import net.minecraft.world.BlockView;
|
import net.minecraft.world.BlockView;
|
||||||
|
import net.minecraft.world.WorldView;
|
||||||
import ru.betterend.blocks.BlockProperties.TripleShape;
|
import ru.betterend.blocks.BlockProperties.TripleShape;
|
||||||
import ru.betterend.blocks.basis.BlockVine;
|
import ru.betterend.blocks.basis.BlockVine;
|
||||||
import ru.betterend.registry.EndBlocks;
|
import ru.betterend.registry.EndBlocks;
|
||||||
|
@ -37,4 +38,10 @@ public class BlockBulbVine extends BlockVine {
|
||||||
public boolean isFertilizable(BlockView world, BlockPos pos, BlockState state, boolean isClient) {
|
public boolean isFertilizable(BlockView world, BlockPos pos, BlockState state, boolean isClient) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos) {
|
||||||
|
boolean canPlace = super.canPlaceAt(state, world, pos);
|
||||||
|
return state.get(SHAPE) == TripleShape.BOTTOM ? canPlace : canPlace && world.getBlockState(pos.down()).isOf(this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"defaultMaterial": "betterend:waving_wall_glow_inc"
|
||||||
|
}
|
|
@ -3,11 +3,19 @@
|
||||||
"spriteMap": [
|
"spriteMap": [
|
||||||
{
|
{
|
||||||
"sprite": "betterend:block/tenanea_flowers",
|
"sprite": "betterend:block/tenanea_flowers",
|
||||||
"material": "betterend:glow_all"
|
"material": "betterend:wave_glow_all"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"sprite": "betterend:block/tenanea_flowers_bottom",
|
"sprite": "betterend:block/tenanea_flowers_bottom",
|
||||||
"material": "betterend:glow_all"
|
"material": "betterend:wave_glow_all"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"sprite": "betterend:block/tenanea_flowers_stem",
|
||||||
|
"material": "betterend:waving"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"sprite": "betterend:block/tenanea_flowers_stem_bottom",
|
||||||
|
"material": "betterend:waving"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
{}
|
|
@ -11,14 +11,14 @@
|
||||||
{
|
{
|
||||||
"__comment": "Box1",
|
"__comment": "Box1",
|
||||||
"from": [ 0, 0, 0 ],
|
"from": [ 0, 0, 0 ],
|
||||||
"to": [ 16, 12, 16 ],
|
"to": [ 16, 13, 16 ],
|
||||||
"faces": {
|
"faces": {
|
||||||
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#top", "cullface": "down" },
|
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#top", "cullface": "down" },
|
||||||
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#top" },
|
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#top" },
|
||||||
"north": { "uv": [ 0, 4, 16, 16 ], "texture": "#front", "cullface": "north" },
|
"north": { "uv": [ 0, 3, 16, 16 ], "texture": "#front", "cullface": "north" },
|
||||||
"south": { "uv": [ 0, 4, 16, 16 ], "texture": "#texture", "cullface": "south" },
|
"south": { "uv": [ 0, 3, 16, 16 ], "texture": "#texture", "cullface": "south" },
|
||||||
"west": { "uv": [ 0, 4, 16, 16 ], "texture": "#texture", "cullface": "west" },
|
"west": { "uv": [ 0, 3, 16, 16 ], "texture": "#texture", "cullface": "west" },
|
||||||
"east": { "uv": [ 0, 4, 16, 16 ], "texture": "#texture", "cullface": "east" }
|
"east": { "uv": [ 0, 3, 16, 16 ], "texture": "#texture", "cullface": "east" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Before Width: | Height: | Size: 473 B After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 494 B After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 362 B |
Before Width: | Height: | Size: 276 B After Width: | Height: | Size: 1.5 KiB |