• Recently Browsing

    No registered users viewing this page.

  • Posts

    • I installed it right from its original website i remember
    • Please explain how to create my own entity then. As I stated, I tried this and it simply refuses to render via Minecraft's default renders.
    • Thank you so much! One more thing before I hit the road (is that how people say it?)   "1": "assets:blocks/hardened_clay_stained_silver", "2": "assets:blocks/hardened_clay_stained_purple"   These are the textures I selected for the certain model I wanted, (changed up the colors cause why not) But yet they won't go in, is it because I selected some of the default textures from Minecraft client itself or? If so, what do I put to resolve this issue?
    • Lets follow the logic here.   "I need to override this method in my block class in order to get the behavior I want."   Now answer the question, "Do I need my own block class?"   Yes: No:  
    • So that'd be two packets right? One from client to server sending UUID over. and another from from server to client sending the EntityPlayer and on receiving the packet at client I check something like (sorry not at pc rn, psudo code here:) if(Minecraft.getMinecraft().player.openContainer instance of ContainerTarotTable) { Minecraft.getMinecraft.player.openContainer.player = message.player; } but then what would I do? The container is already constructed my entire guiHandler here: public class GuiHandler implements IGuiHandler { @Override public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { TileEntity tile = world.getTileEntity(new BlockPos(x, y, z)); if (tile instanceof TileEntityWitchesOven) return new ContainerWitchesOven(player.inventory, (TileEntityWitchesOven) tile); if (tile instanceof TileEntityDistillery) return new ContainerDistillery(player.inventory, (TileEntityDistillery) tile); if (tile instanceof TileEntitySpinningWheel) return new ContainerSpinningWheel(player.inventory, (TileEntitySpinningWheel) tile); if (tile instanceof TileEntityTarotTable) { ItemStack stack = player.getHeldItemMainhand(); if (stack.getItem() instanceof ItemTarotCards && stack.hasTagCompound() && stack.getTagCompound().hasKey("readId")) { return new ContainerTarotTable(UUID.fromString(stack.getTagCompound().getString("readId"))); } } if (tile instanceof TileEntityJuniperChest) return new ContainerJuniperChest(player.inventory, (TileEntityJuniperChest) tile); return null; } @Override public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { TileEntity tile = world.getTileEntity(new BlockPos(x, y, z)); if (tile instanceof TileEntityWitchesOven) return new GuiWitchesOven((ContainerWitchesOven) getServerGuiElement(ModGui.OVEN.ordinal(), player, world, x, y, z), player.inventory); if (tile instanceof TileEntityDistillery) return new GuiDistillery((ContainerDistillery) getServerGuiElement(ModGui.DISTILLERY.ordinal(), player, world, x, y, z)); if (tile instanceof TileEntitySpinningWheel) return new GuiSpinningWheel((ContainerSpinningWheel) getServerGuiElement(ModGui.SPINNING_WHEEL.ordinal(), player, world, x, y, z)); if (tile instanceof TileEntityTarotTable) return new GuiTarotTable((ContainerTarotTable) getServerGuiElement(ModGui.TAROT_TABLE.ordinal(), player, world, x, y, z)); if (tile instanceof TileEntityJuniperChest) return new GuiJuniperChest((ContainerJuniperChest) getServerGuiElement(ModGui.JUNIPER_CHEST.ordinal(), player, world, x, y, z), player.inventory); return null; } public enum ModGui { OVEN, DISTILLERY, SPINNING_WHEEL, TAROT_TABLE, JUNIPER_CHEST } }   Or do i just simple make a new Constructor for the Container and pass in EntityPlayer. And on client reciveiving message just set player.openGui = new ContainerTarotTable(entityPlayer); ?  
  • Topics

  • Who's Online (See full list)