fix textures

This commit is contained in:
Sen 2025-08-01 20:08:26 +02:00
parent 6fb9ded711
commit b5e5cb0444
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
74 changed files with 60 additions and 56 deletions

View file

@ -1176,21 +1176,22 @@ public class Client implements IThreadListener {
if(block != Blocks.air) { if(block != Blocks.air) {
desc = block.getDisplay(); desc = block.getDisplay();
if(block.getMiningTool() != null) if(block.getMiningTool() != null)
line2 = "Werkzeug: " + block.getMiningTool().getDisplay() + (block.getMiningTool().isLevelled() ? "Level " + (block.getMiningLevel() + 1) : ""); line2 = Color.BLUE + "Werkzeug" + Color.DARK_GRAY + ": " + Color.GREEN + block.getMiningTool().getDisplay() + (block.getMiningTool().isLevelled() ? Color.ORK + " Level " + Color.DARK_GREEN + (block.getMiningLevel() + 1) : "");
} }
} }
else if(this.pointed != null && this.pointed.type == ObjectType.ENTITY && this.pointed.entity != null) { else if(this.pointed != null && this.pointed.type == ObjectType.ENTITY && this.pointed.entity != null) {
Entity entity = this.pointed.entity; Entity entity = this.pointed.entity;
desc = entity.getName(); desc = entity.getName();
if(entity instanceof EntityLiving living) { if(entity instanceof EntityLiving living) {
line1 = living.formatStats(); line1 = living.formatStatsFull();
} }
line2 = Color.CYAN + EntityRegistry.getEntityName(EntityRegistry.getEntityString(entity));
} }
if(desc != null) { if(desc != null) {
Drawing.drawRectBorder(this.fbX / 2 - 180, 20, 360, 60, 0xff6f6f6f, 0xff000000, 0xffafafaf, 0xff4f4f4f); Drawing.drawRectBorder(this.fbX / 2 - 180, 20, 360, 60, 0xff6f6f6f, 0xff000000, 0xffafafaf, 0xff4f4f4f);
Drawing.drawTextCentered(desc, this.fbX / 2, 24, 0xffffffff); Drawing.drawTextCentered(desc, this.fbX / 2, 24, 0xffffffff);
if(line1 != null) if(line1 != null)
Drawing.drawTextCentered(line1, this.fbX / 2, 80 - 4 - Font.YGLYPH * 2, 0xffffffff); Drawing.drawTextCentered(line1, this.fbX / 2, 80 - 4 - Font.YGLYPH * 2 - 2, 0xffffffff);
if(line2 != null) if(line2 != null)
Drawing.drawTextCentered(line2, this.fbX / 2, 80 - 4 - Font.YGLYPH, 0xffffffff); Drawing.drawTextCentered(line2, this.fbX / 2, 80 - 4 - Font.YGLYPH, 0xffffffff);
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View file

@ -2,6 +2,7 @@ package common.ai;
import common.block.Block; import common.block.Block;
import common.block.artificial.BlockBed; import common.block.artificial.BlockBed;
import common.block.tech.BlockChest;
import common.entity.animal.EntityCat; import common.entity.animal.EntityCat;
import common.init.Blocks; import common.init.Blocks;
import common.tileentity.TileEntity; import common.tileentity.TileEntity;
@ -86,7 +87,7 @@ public class EntityAICatSit extends EntityAIMoveToBlock
State iblockstate = worldIn.getState(pos); State iblockstate = worldIn.getState(pos);
Block block = iblockstate.getBlock(); Block block = iblockstate.getBlock();
if (block == Blocks.chest) if (block instanceof BlockChest)
{ {
TileEntity tileentity = worldIn.getTileEntity(pos); TileEntity tileentity = worldIn.getTileEntity(pos);

View file

@ -9,7 +9,6 @@ import common.entity.npc.EntityNPC;
import common.entity.types.EntityLiving; import common.entity.types.EntityLiving;
import common.inventory.Container; import common.inventory.Container;
import common.inventory.ContainerRepair; import common.inventory.ContainerRepair;
import common.entity.npc.EntityNPC;
import common.item.CheatTab; import common.item.CheatTab;
import common.model.Model; import common.model.Model;
import common.model.Model.ModelProvider; import common.model.Model.ModelProvider;

View file

@ -5,7 +5,6 @@ import common.block.Material;
import common.entity.npc.EntityNPC; import common.entity.npc.EntityNPC;
import common.inventory.Container; import common.inventory.Container;
import common.inventory.ContainerEnchantment; import common.inventory.ContainerEnchantment;
import common.entity.npc.EntityNPC;
import common.item.CheatTab; import common.item.CheatTab;
import common.model.Model; import common.model.Model;
import common.model.Model.ModelProvider; import common.model.Model.ModelProvider;

View file

@ -8,7 +8,6 @@ import common.entity.types.EntityLiving;
import common.init.Items; import common.init.Items;
import common.inventory.Container; import common.inventory.Container;
import common.inventory.ContainerChest; import common.inventory.ContainerChest;
import common.entity.npc.EntityNPC;
import common.item.CheatTab; import common.item.CheatTab;
import common.item.Item; import common.item.Item;
import common.model.Model; import common.model.Model;

View file

@ -5,7 +5,6 @@ import common.block.Material;
import common.entity.npc.EntityNPC; import common.entity.npc.EntityNPC;
import common.inventory.Container; import common.inventory.Container;
import common.inventory.ContainerWorkbench; import common.inventory.ContainerWorkbench;
import common.entity.npc.EntityNPC;
import common.item.CheatTab; import common.item.CheatTab;
import common.model.Model; import common.model.Model;
import common.model.Model.ModelProvider; import common.model.Model.ModelProvider;

View file

@ -362,7 +362,7 @@ public class EntityHorse extends EntityAnimal implements IInvBasic {
{ {
if (!this.worldObj.client && this.isChested()) if (!this.worldObj.client && this.isChested())
{ {
this.dropItem(Items.chest, 1); this.dropItem(Items.wood_chest, 1);
this.setChested(false); this.setChested(false);
} }
} }
@ -891,7 +891,7 @@ public class EntityHorse extends EntityAnimal implements IInvBasic {
return true; return true;
} }
if (!flag && this.canCarryChest() && !this.isChested() && itemstack.getItem() == Items.chest) if (!flag && this.canCarryChest() && !this.isChested() && itemstack.getItem() == Items.wood_chest)
{ {
this.setChested(true); this.setChested(true);
this.playSound(SoundEvent.PLOP, 1.0F); this.playSound(SoundEvent.PLOP, 1.0F);

View file

@ -1166,6 +1166,10 @@ public abstract class EntityNPC extends EntityLiving implements IInventory
public String formatStats() { public String formatStats() {
return super.formatStats() + (this.getManaPoints() == 0 ? "" : Color.GRAY + " [" + Color.MIDNIGHT + this.getManaPoints() + Color.GRAY + "]"); return super.formatStats() + (this.getManaPoints() == 0 ? "" : Color.GRAY + " [" + Color.MIDNIGHT + this.getManaPoints() + Color.GRAY + "]");
} }
public String formatStatsFull() {
return super.formatStatsFull() + (this.getManaPoints() == 0 ? "" : Color.DARK_GRAY + " | " + Color.BLUE + this.getManaPoints() + Color.MIDNIGHT + " Mana");
}
public MerchantRecipeList getTrades(EntityNPC player) { public MerchantRecipeList getTrades(EntityNPC player) {
if(this.trades == null) { if(this.trades == null) {

View file

@ -2235,6 +2235,12 @@ public abstract class EntityLiving extends Entity
this.getHealth(), this.getMaxHealth()); this.getHealth(), this.getMaxHealth());
} }
public String formatStatsFull() {
return String.format(this.getAlignment().color + this.getAlignment().display + Color.DARK_GRAY + " | " + getHealthColor(this.getHealth(), this.getMaxHealth()) + "%d" +
Color.GRAY + " / " + getMaxHpColor(this.getMaxHealth()) + "%d" + Color.RED + " HP",
this.getHealth(), this.getMaxHealth());
}
public abstract int getColor(); public abstract int getColor();
public boolean isGhost() { public boolean isGhost() {

View file

@ -611,14 +611,14 @@ public abstract class BlockRegistry {
register("construction_table", (new BlockWorkbench(4)).setHardness(2.5F).setSound(SoundType.WOOD).setDisplay("Konstruktionstisch")); register("construction_table", (new BlockWorkbench(4)).setHardness(2.5F).setSound(SoundType.WOOD).setDisplay("Konstruktionstisch"));
register("assembly_unit", (new BlockWorkbench(5)).setHardness(2.5F).setSound(SoundType.WOOD).setDisplay("Fertigungseinheit")); register("assembly_unit", (new BlockWorkbench(5)).setHardness(2.5F).setSound(SoundType.WOOD).setDisplay("Fertigungseinheit"));
register("chest", new BlockChest(9, 3).setDisplay("Truhe")); register("wood_chest", new BlockChest(9, 3).setDisplay("Holztruhe"));
register("large_chest", new BlockChest(9, 6).setDisplay("Große Truhe")); register("stone_chest", new BlockChest(9, 6).setDisplay("Steintruhe"));
register("xlarge_chest", new BlockChest(12, 8).setDisplay("Große Truhe")); register("iron_chest", new BlockChest(12, 8).setDisplay("Eisentruhe"));
register("xxlarge_chest", new BlockChest(16, 10).setDisplay("Große Truhe")); register("platinum_chest", new BlockChest(16, 10).setDisplay("Platintruhe"));
register("xxxlarge_chest", new BlockChest(18, 14).setDisplay("Große Truhe")); register("silver_chest", new BlockChest(18, 14).setDisplay("Silbertruhe"));
register("huge_chest", new BlockChest(22, 18).setDisplay("Große Truhe")); register("thetium_chest", new BlockChest(22, 18).setDisplay("Thetiumtruhe"));
register("giant_chest", new BlockChest(28, 18).setDisplay("Große Truhe")); register("black_metal_chest", new BlockChest(28, 18).setDisplay("Schwarzmetalltruhe"));
register("toolarge_chest", new BlockChest(32, 18).setDisplay("Große Truhe")); register("nichun_chest", new BlockChest(32, 18).setDisplay("Nichuntruhe"));
register("warp_chest", (new BlockWarpChest()).setHardness(22.5F).setResistance(1000.0F).setSound(SoundType.STONE) register("warp_chest", (new BlockWarpChest()).setHardness(22.5F).setResistance(1000.0F).setSound(SoundType.STONE)
.setDisplay("Warptruhe").setLight(0.5F)); .setDisplay("Warptruhe").setLight(0.5F));

View file

@ -148,7 +148,6 @@ public abstract class Blocks {
public static final BlockSapling cherry_sapling = get("cherry_sapling"); public static final BlockSapling cherry_sapling = get("cherry_sapling");
public static final BlockSlab cherry_slab = get("cherry_slab"); public static final BlockSlab cherry_slab = get("cherry_slab");
public static final BlockStairs cherry_stairs = get("cherry_stairs"); public static final BlockStairs cherry_stairs = get("cherry_stairs");
public static final BlockChest chest = get("chest");
public static final BlockMetalBlock chrome_block = get("chrome_block"); public static final BlockMetalBlock chrome_block = get("chrome_block");
public static final BlockMetalOre chrome_ore = get("chrome_ore"); public static final BlockMetalOre chrome_ore = get("chrome_ore");
public static final Block cinnabar_block = get("cinnabar_block"); public static final Block cinnabar_block = get("cinnabar_block");
@ -550,13 +549,6 @@ public abstract class Blocks {
public static final BlockActiveDisplay display_on = get("display_on"); public static final BlockActiveDisplay display_on = get("display_on");
public static final BlockActiveDisplay display2_on = get("display2_on"); public static final BlockActiveDisplay display2_on = get("display2_on");
public static final BlockActiveDisplay display4_on = get("display4_on"); public static final BlockActiveDisplay display4_on = get("display4_on");
public static final BlockChest large_chest = get("large_chest");
public static final BlockChest giant_chest = get("giant_chest");
public static final BlockChest huge_chest = get("huge_chest");
public static final BlockChest toolarge_chest = get("toolarge_chest");
public static final BlockChest xlarge_chest = get("xlarge_chest");
public static final BlockChest xxlarge_chest = get("xxlarge_chest");
public static final BlockChest xxxlarge_chest = get("xxxlarge_chest");
public static final BlockUnlitTorch torch = get("torch"); public static final BlockUnlitTorch torch = get("torch");
public static final BlockLitTorch lit_torch = get("lit_torch"); public static final BlockLitTorch lit_torch = get("lit_torch");
public static final BlockUnlitTorch tian_torch = get("tian_torch"); public static final BlockUnlitTorch tian_torch = get("tian_torch");
@ -677,6 +669,14 @@ public abstract class Blocks {
public static final BlockStainedGlass violet_glass = get("violet_glass"); public static final BlockStainedGlass violet_glass = get("violet_glass");
public static final BlockStainedGlassPane violet_glass_pane = get("violet_glass_pane"); public static final BlockStainedGlassPane violet_glass_pane = get("violet_glass_pane");
public static final BlockWool violet_wool = get("violet_wool"); public static final BlockWool violet_wool = get("violet_wool");
public static final BlockChest wood_chest = get("wood_chest");
public static final BlockChest stone_chest = get("stone_chest");
public static final BlockChest iron_chest = get("iron_chest");
public static final BlockChest platinum_chest = get("platinum_chest");
public static final BlockChest silver_chest = get("silver_chest");
public static final BlockChest thetium_chest = get("thetium_chest");
public static final BlockChest black_metal_chest = get("black_metal_chest");
public static final BlockChest nichun_chest = get("nichun_chest");
private static <T extends Block> T get(String id) { private static <T extends Block> T get(String id) {
T block = (T)BlockRegistry.byNameExact(id); T block = (T)BlockRegistry.byNameExact(id);

View file

@ -172,7 +172,7 @@ public abstract class CraftingRegistry
add(new ItemStack(slab, 6), "###", '#', planks); add(new ItemStack(slab, 6), "###", '#', planks);
add(new ItemStack(ItemRegistry.byName(wood.getName() + "_stairs"), 4), "# ", "## ", "###", '#', planks); add(new ItemStack(ItemRegistry.byName(wood.getName() + "_stairs"), 4), "# ", "## ", "###", '#', planks);
add(new ItemStack(Items.chest), "###", "# #", "###", '#', planks); add(new ItemStack(Items.wood_chest), "###", "# #", "###", '#', planks);
add(new ItemStack(Items.workbench), "##", "##", '#', planks); add(new ItemStack(Items.workbench), "##", "##", '#', planks);
add(new ItemStack(Items.assembly_unit), "----", "XXXX", "X##X", '#', Items.construction_table, '-', Items.titanium_ingot, 'X', planks); add(new ItemStack(Items.assembly_unit), "----", "XXXX", "X##X", '#', Items.construction_table, '-', Items.titanium_ingot, 'X', planks);
@ -257,7 +257,7 @@ public abstract class CraftingRegistry
addShapeless(new ItemStack(Items.charged_orb, 1), Items.orb, Items.blazing_powder); addShapeless(new ItemStack(Items.charged_orb, 1), Items.orb, Items.blazing_powder);
addShapeless(new ItemStack(Items.fireball, 3), Items.gunpowder, Items.blazing_powder, Items.coal); addShapeless(new ItemStack(Items.fireball, 3), Items.gunpowder, Items.blazing_powder, Items.coal);
addShapeless(new ItemStack(Items.fireball, 3), Items.gunpowder, Items.blazing_powder, Items.charcoal); addShapeless(new ItemStack(Items.fireball, 3), Items.gunpowder, Items.blazing_powder, Items.charcoal);
add(new ItemStack(Items.hopper), "I I", "ICI", " I ", 'I', Items.iron_ingot, 'C', Items.chest); add(new ItemStack(Items.hopper), "I I", "ICI", " I ", 'I', Items.iron_ingot, 'C', Items.wood_chest);
add(new ItemStack(Items.dynamite, 1), "X#X", "#X#", "X#X", 'X', Items.gunpowder, '#', Items.clay_lump); add(new ItemStack(Items.dynamite, 1), "X#X", "#X#", "X#X", 'X', Items.gunpowder, '#', Items.clay_lump);

View file

@ -236,7 +236,6 @@ public abstract class Items {
public static final Item cherry_sapling = get("cherry_sapling"); public static final Item cherry_sapling = get("cherry_sapling");
public static final Item cherry_slab = get("cherry_slab"); public static final Item cherry_slab = get("cherry_slab");
public static final Item cherry_stairs = get("cherry_stairs"); public static final Item cherry_stairs = get("cherry_stairs");
public static final Item chest = get("chest");
public static final ItemMagnet chick_magnet = get("chick_magnet"); public static final ItemMagnet chick_magnet = get("chick_magnet");
public static final ItemFood chicken = get("chicken"); public static final ItemFood chicken = get("chicken");
public static final Item chrome_block = get("chrome_block"); public static final Item chrome_block = get("chrome_block");
@ -910,13 +909,6 @@ public abstract class Items {
public static final ItemPotion potion_weakness = get("potion_weakness"); public static final ItemPotion potion_weakness = get("potion_weakness");
public static final ItemPotion potion_weakness_base = get("potion_weakness_base"); public static final ItemPotion potion_weakness_base = get("potion_weakness_base");
public static final ItemPotion potion_weakness_extended = get("potion_weakness_extended"); public static final ItemPotion potion_weakness_extended = get("potion_weakness_extended");
public static final Item large_chest = get("large_chest");
public static final Item giant_chest = get("giant_chest");
public static final Item huge_chest = get("huge_chest");
public static final Item toolarge_chest = get("toolarge_chest");
public static final Item xlarge_chest = get("xlarge_chest");
public static final Item xxlarge_chest = get("xxlarge_chest");
public static final Item xxxlarge_chest = get("xxxlarge_chest");
public static final ItemKey key = get("key"); public static final ItemKey key = get("key");
public static final ItemKey black_key = get("black_key"); public static final ItemKey black_key = get("black_key");
public static final ItemKey black_keycard = get("black_keycard"); public static final ItemKey black_keycard = get("black_keycard");
@ -1061,6 +1053,14 @@ public abstract class Items {
public static final Item ink_sack = get("ink_sack"); public static final Item ink_sack = get("ink_sack");
public static final Item lapis_lazuli = get("lapis_lazuli"); public static final Item lapis_lazuli = get("lapis_lazuli");
public static final ItemHoe hoe = get("hoe"); public static final ItemHoe hoe = get("hoe");
public static final Item wood_chest = get("wood_chest");
public static final Item black_metal_chest = get("black_metal_chest");
public static final Item iron_chest = get("iron_chest");
public static final Item nichun_chest = get("nichun_chest");
public static final Item platinum_chest = get("platinum_chest");
public static final Item silver_chest = get("silver_chest");
public static final Item stone_chest = get("stone_chest");
public static final Item thetium_chest = get("thetium_chest");
private static <T extends Item> T get(String id) { private static <T extends Item> T get(String id) {
T item = (T)ItemRegistry.byName(id); T item = (T)ItemRegistry.byName(id);

View file

@ -10,7 +10,6 @@ import common.init.Items;
import common.inventory.Container; import common.inventory.Container;
import common.inventory.ContainerBrewingStand; import common.inventory.ContainerBrewingStand;
import common.inventory.ISidedInventory; import common.inventory.ISidedInventory;
import common.entity.npc.EntityNPC;
import common.item.Item; import common.item.Item;
import common.item.ItemStack; import common.item.ItemStack;
import common.item.consumable.ItemPotion; import common.item.consumable.ItemPotion;

View file

@ -5,7 +5,6 @@ import common.collect.Lists;
import common.entity.npc.EntityNPC; import common.entity.npc.EntityNPC;
import common.inventory.Container; import common.inventory.Container;
import common.inventory.ContainerDispenser; import common.inventory.ContainerDispenser;
import common.entity.npc.EntityNPC;
import common.item.ItemStack; import common.item.ItemStack;
import common.rng.Random; import common.rng.Random;
import common.tags.TagObject; import common.tags.TagObject;

View file

@ -15,7 +15,6 @@ import common.inventory.Container;
import common.inventory.ContainerFurnace; import common.inventory.ContainerFurnace;
import common.inventory.IInventory; import common.inventory.IInventory;
import common.inventory.ISidedInventory; import common.inventory.ISidedInventory;
import common.entity.npc.EntityNPC;
import common.inventory.SlotFurnaceFuel; import common.inventory.SlotFurnaceFuel;
import common.item.Item; import common.item.Item;
import common.item.ItemStack; import common.item.ItemStack;

View file

@ -15,7 +15,6 @@ import common.inventory.Container;
import common.inventory.ContainerHopper; import common.inventory.ContainerHopper;
import common.inventory.IInventory; import common.inventory.IInventory;
import common.inventory.ISidedInventory; import common.inventory.ISidedInventory;
import common.entity.npc.EntityNPC;
import common.item.ItemStack; import common.item.ItemStack;
import common.tags.TagObject; import common.tags.TagObject;
import common.util.BlockPos; import common.util.BlockPos;

View file

@ -654,10 +654,10 @@ public abstract class Converter {
mapBlock(Blocks.oak_stairs.getState().withProperty(BlockStairs.FACING, Facing.WEST).withProperty(BlockStairs.HALF, EnumHalf.TOP), 53, 5, 13); mapBlock(Blocks.oak_stairs.getState().withProperty(BlockStairs.FACING, Facing.WEST).withProperty(BlockStairs.HALF, EnumHalf.TOP), 53, 5, 13);
mapBlock(Blocks.oak_stairs.getState().withProperty(BlockStairs.FACING, Facing.SOUTH).withProperty(BlockStairs.HALF, EnumHalf.TOP), 53, 6, 14); mapBlock(Blocks.oak_stairs.getState().withProperty(BlockStairs.FACING, Facing.SOUTH).withProperty(BlockStairs.HALF, EnumHalf.TOP), 53, 6, 14);
mapBlock(Blocks.oak_stairs.getState().withProperty(BlockStairs.FACING, Facing.NORTH).withProperty(BlockStairs.HALF, EnumHalf.TOP), 53, 7, 15); mapBlock(Blocks.oak_stairs.getState().withProperty(BlockStairs.FACING, Facing.NORTH).withProperty(BlockStairs.HALF, EnumHalf.TOP), 53, 7, 15);
mapBlock(Blocks.chest.getState().withProperty(BlockChest.FACING, Facing.NORTH), 54); mapBlock(Blocks.wood_chest.getState().withProperty(BlockChest.FACING, Facing.NORTH), 54);
mapBlock(Blocks.chest.getState().withProperty(BlockChest.FACING, Facing.SOUTH), 54, 3, 9, 15); mapBlock(Blocks.wood_chest.getState().withProperty(BlockChest.FACING, Facing.SOUTH), 54, 3, 9, 15);
mapBlock(Blocks.chest.getState().withProperty(BlockChest.FACING, Facing.WEST), 54, 4, 10); mapBlock(Blocks.wood_chest.getState().withProperty(BlockChest.FACING, Facing.WEST), 54, 4, 10);
mapBlock(Blocks.chest.getState().withProperty(BlockChest.FACING, Facing.EAST), 54, 5, 11); mapBlock(Blocks.wood_chest.getState().withProperty(BlockChest.FACING, Facing.EAST), 54, 5, 11);
mapBlock(Blocks.diamond_ore, 56); mapBlock(Blocks.diamond_ore, 56);
mapBlock(Blocks.diamond_block, 57); mapBlock(Blocks.diamond_block, 57);
mapBlock(Blocks.workbench, 58); mapBlock(Blocks.workbench, 58);
@ -1101,10 +1101,10 @@ public abstract class Converter {
mapBlock(Blocks.anvil.getState().withProperty(BlockAnvil.FACING, Facing.WEST), 145, 1, 5, 9, 13); mapBlock(Blocks.anvil.getState().withProperty(BlockAnvil.FACING, Facing.WEST), 145, 1, 5, 9, 13);
mapBlock(Blocks.anvil.getState().withProperty(BlockAnvil.FACING, Facing.NORTH), 145, 2, 6, 10, 14); mapBlock(Blocks.anvil.getState().withProperty(BlockAnvil.FACING, Facing.NORTH), 145, 2, 6, 10, 14);
mapBlock(Blocks.anvil.getState().withProperty(BlockAnvil.FACING, Facing.EAST), 145, 3, 7, 11, 15); mapBlock(Blocks.anvil.getState().withProperty(BlockAnvil.FACING, Facing.EAST), 145, 3, 7, 11, 15);
mapBlock(Blocks.chest.getState().withProperty(BlockChest.FACING, Facing.NORTH), 146); mapBlock(Blocks.wood_chest.getState().withProperty(BlockChest.FACING, Facing.NORTH), 146);
mapBlock(Blocks.chest.getState().withProperty(BlockChest.FACING, Facing.SOUTH), 146, 3, 9, 15); mapBlock(Blocks.wood_chest.getState().withProperty(BlockChest.FACING, Facing.SOUTH), 146, 3, 9, 15);
mapBlock(Blocks.chest.getState().withProperty(BlockChest.FACING, Facing.WEST), 146, 4, 10); mapBlock(Blocks.wood_chest.getState().withProperty(BlockChest.FACING, Facing.WEST), 146, 4, 10);
mapBlock(Blocks.chest.getState().withProperty(BlockChest.FACING, Facing.EAST), 146, 5, 11); mapBlock(Blocks.wood_chest.getState().withProperty(BlockChest.FACING, Facing.EAST), 146, 5, 11);
mapBlock(Blocks.light_weighted_pressure_plate.getState().withProperty(BlockPressurePlateWeighted.POWER, 0), 147, 0); mapBlock(Blocks.light_weighted_pressure_plate.getState().withProperty(BlockPressurePlateWeighted.POWER, 0), 147, 0);
mapBlock(Blocks.light_weighted_pressure_plate.getState().withProperty(BlockPressurePlateWeighted.POWER, 1), 147, 1); mapBlock(Blocks.light_weighted_pressure_plate.getState().withProperty(BlockPressurePlateWeighted.POWER, 1), 147, 1);
mapBlock(Blocks.light_weighted_pressure_plate.getState().withProperty(BlockPressurePlateWeighted.POWER, 2), 147, 2); mapBlock(Blocks.light_weighted_pressure_plate.getState().withProperty(BlockPressurePlateWeighted.POWER, 2), 147, 2);

View file

@ -93,7 +93,7 @@ public class FeatureDungeons
if (k3 != k && i4 != -1 && k4 != l1 && k3 != l && i4 != 4 && k4 != i2) if (k3 != k && i4 != -1 && k4 != l1 && k3 != l && i4 != 4 && k4 != i2)
{ {
if (worldIn.getState(blockpos1).getBlock() != Blocks.chest) if (worldIn.getState(blockpos1).getBlock() != Blocks.wood_chest)
{ {
worldIn.setBlockToAir(blockpos1); worldIn.setBlockToAir(blockpos1);
} }
@ -102,7 +102,7 @@ public class FeatureDungeons
{ {
worldIn.setBlockToAir(blockpos1); worldIn.setBlockToAir(blockpos1);
} }
else if (worldIn.getState(blockpos1).getBlock().getMaterial().isSolid() && worldIn.getState(blockpos1).getBlock() != Blocks.chest) else if (worldIn.getState(blockpos1).getBlock().getMaterial().isSolid() && worldIn.getState(blockpos1).getBlock() != Blocks.wood_chest)
{ {
if (i4 == -1 && rand.zrange(4) != 0) if (i4 == -1 && rand.zrange(4) != 0)
{ {
@ -140,7 +140,7 @@ public class FeatureDungeons
if (j3 == 1) if (j3 == 1)
{ {
worldIn.setState(blockpos2, Blocks.chest.correctFacing(worldIn, blockpos2, Blocks.chest.getState()), 2); worldIn.setState(blockpos2, Blocks.wood_chest.correctFacing(worldIn, blockpos2, Blocks.wood_chest.getState()), 2);
WeightedList<RngLoot> list = RngLoot.addToList(LootConstants.DUNGEON_CHEST, ItemEnchantedBook.getRandom(rand)); WeightedList<RngLoot> list = RngLoot.addToList(LootConstants.DUNGEON_CHEST, ItemEnchantedBook.getRandom(rand));
TileEntity tileentity1 = worldIn.getTileEntity(blockpos2); TileEntity tileentity1 = worldIn.getTileEntity(blockpos2);

View file

@ -51,7 +51,7 @@ public class WorldGenAbandonedChest extends FeatureGenerator
BlockPos blockpos = position.add(rand.zrange(4) - rand.zrange(4), rand.zrange(3) - rand.zrange(3), rand.zrange(4) - rand.zrange(4)); BlockPos blockpos = position.add(rand.zrange(4) - rand.zrange(4), rand.zrange(3) - rand.zrange(3), rand.zrange(4) - rand.zrange(4));
if (worldIn.isAirBlock(blockpos) && worldIn.isBlockSolid(blockpos.down())) if (worldIn.isAirBlock(blockpos) && worldIn.isBlockSolid(blockpos.down()))
{ {
worldIn.setState(blockpos, Blocks.chest.getState().withProperty(BlockChest.FACING, Facing.randHorizontal(rand)), 2); worldIn.setState(blockpos, Blocks.wood_chest.getState().withProperty(BlockChest.FACING, Facing.randHorizontal(rand)), 2);
TileEntity tileentity = worldIn.getTileEntity(blockpos); TileEntity tileentity = worldIn.getTileEntity(blockpos);
if(tileentity instanceof TileEntityChest chest) if(tileentity instanceof TileEntityChest chest)
RngLoot.generateChestContents(rand, this.items, chest, this.amount); RngLoot.generateChestContents(rand, this.items, chest, this.amount);

View file

@ -697,10 +697,10 @@ public abstract class StructureComponent
{ {
BlockPos blockpos = new BlockPos(this.getXWithOffset(x, z), this.getYWithOffset(y), this.getZWithOffset(x, z)); BlockPos blockpos = new BlockPos(this.getXWithOffset(x, z), this.getYWithOffset(y), this.getZWithOffset(x, z));
if (boundingBoxIn.isVecInside(blockpos) && worldIn.getState(blockpos).getBlock() != Blocks.chest) if (boundingBoxIn.isVecInside(blockpos) && worldIn.getState(blockpos).getBlock() != Blocks.wood_chest)
{ {
State iblockstate = Blocks.chest.getState(); State iblockstate = Blocks.wood_chest.getState();
worldIn.setState(blockpos, Blocks.chest.correctFacing(worldIn, blockpos, iblockstate), 2); worldIn.setState(blockpos, Blocks.wood_chest.correctFacing(worldIn, blockpos, iblockstate), 2);
TileEntity tileentity = worldIn.getTileEntity(blockpos); TileEntity tileentity = worldIn.getTileEntity(blockpos);
if (tileentity instanceof TileEntityChest) if (tileentity instanceof TileEntityChest)

View file

@ -294,7 +294,7 @@ public class StructureMineshaft
if (boundingBoxIn.isVecInside(blockpos) && worldIn.getState(blockpos).getBlock() == Blocks.air && worldIn.isBlockSolid(blockpos.down())) if (boundingBoxIn.isVecInside(blockpos) && worldIn.getState(blockpos).getBlock() == Blocks.air && worldIn.isBlockSolid(blockpos.down()))
{ {
worldIn.setState(blockpos, Blocks.chest.getState().withProperty(BlockChest.FACING, Facing.randHorizontal(rand)), 2); worldIn.setState(blockpos, Blocks.wood_chest.getState().withProperty(BlockChest.FACING, Facing.randHorizontal(rand)), 2);
TileEntity tileentity = worldIn.getTileEntity(blockpos); TileEntity tileentity = worldIn.getTileEntity(blockpos);
if(tileentity instanceof TileEntityChest chest) if(tileentity instanceof TileEntityChest chest)
RngLoot.generateChestContents(rand, listIn, chest, max); RngLoot.generateChestContents(rand, listIn, chest, max);