Lantern Model + Texture

This commit is contained in:
Kam committed 2025-02-12 02:34:05 -05:00
1 parent 79fc173e3b
commit 5d4088b9d1
15 files changed
+354 -148

No files matched your search

@@ -12,10 +12,10 @@ import noppes.npcs.CustomItems;
import noppes.npcs.blocks.tiles.TileColorable;
import noppes.npcs.blocks.tiles.TileLamp;
public class BlockLamp extends BlockLightable{
public class BlockLantern extends BlockLightable{
public BlockLamp(boolean lit) {
super(Blocks.planks, lit);
public BlockLantern(boolean lit) {
super(Blocks.iron_block, lit);
setBlockBounds(0.3f, 0, 0.3f, 0.7f, 0.6f, 0.7f);
}
@@ -23,8 +23,8 @@ public class BlockLamp extends BlockLightable{
public int maxRotation(){
return 8;
}
@Override
@Override
public void setBlockBoundsBasedOnState(IBlockAccess world, int x, int y, int z){
TileEntity tileentity = world.getTileEntity(x, y, z);
if(!(tileentity instanceof TileColorable)){
@@ -43,20 +43,20 @@ public class BlockLamp extends BlockLightable{
xOffset = 0.2f;
else if(tile.rotation == 2)
xOffset = -0.2f;
setBlockBounds(0.3f + xOffset, 0.2f, 0.3f + yOffset, 0.7f + xOffset, 0.7f, 0.7f + yOffset);
}
else
setBlockBounds(0.3f, 0, 0.3f, 0.7f, 0.6f, 0.7f);
}
@Override
@Override
public int onBlockPlaced(World world, int x, int y, int z, int side, float p_149660_6_, float p_149660_7_, float p_149660_8_, int meta){
return side;
}
@Override
@Override
public void onPostBlockPlaced(World world, int x, int y, int z, int meta) {
TileLamp tile = (TileLamp) world.getTileEntity(x, y, z);
if(meta == 1)
@@ -90,11 +90,11 @@ public class BlockLamp extends BlockLightable{
@Override
public Block unlitBlock() {
return CustomItems.lamp_unlit;
return CustomItems.lantern_unlit;
}
@Override
public Block litBlock() {
return CustomItems.lamp;
return CustomItems.lantern;
}
}