Jump to content

loordgek

Members
  • Posts

    1910
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by loordgek

  1. how do you block them placing the blocks
  2. override hasTileEntity and return true
  3. works fine for me MinecraftForge.EVENT_BUS.register(new Eplosion()); public class Eplosion { @SubscribeEvent public void onExplosion(ExplosionEvent event) { LogHelper.info("BOOM"); } }
  4. move public ArrayList<String> Authorized = new ArrayList<String>(); to the tile dont use playerIn.getName use playerIn.getUniqueID and store the UUID
  5. gurujive you are not helping here
  6. what do i need for the inventory variant? and the item model looks like?
  7. put mods in a folder for the correct mc version you can get mods from https://minecraft.curseforge.com/mc-mods
  8. https://gist.github.com/anonymous/159c9d58ccde8e162b8b648a6129ec65 https://github.com/loordgek/Extragenarators/tree/trytofix this is my first time working w/ json so i dont know how it exactly works
  9. and use Capability ItemHandler
  10. dont use that use this
  11. can you you show all your code
  12. Also I don't think your Packets are Thread safe...you need to schedule a task. i know but i did not have any issues with it so far
  13. i do it also this way https://github.com/loordgek/Extragenarators/blob/master/src/main/java/loordgek/extragenarators/network/AbstractPacket.java https://github.com/loordgek/Extragenarators/blob/master/src/main/java/loordgek/extragenarators/network/GuiSyncPacket.java WildHeart did you watch minemaarten on how to code ?
  14. show a pic from your server mods folder
  15. try to fix it your self it is not hard
  16. it is better to set the stacksize for the bag to 1
  17. got it working WOOT note i did change a couple things in there @Override public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { TileEntity tileEntity = world.getTileEntity(new BlockPos(x, y, z)); switch (ID){ case TEST_CHEST: return new ContainerTestChest(player, (TileEntityTestChest) tileEntity); case TEST_BAG: return new ContainerTestBag(player); } return null; } @Override public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { TileEntity tileEntity = world.getTileEntity(new BlockPos(x, y, z)); switch (ID) { case TEST_CHEST: return new gui_test_chest(new ContainerTestChest(player, (TileEntityTestChest)tileEntity), (TileEntityTestChest) tileEntity); case TEST_BAG: return new GuiTestBag(new ContainerTestBag(player)); } return null; }
  18. put breakpoints on it and see what it does
  19. this does not work? @Override public void readFromNBT(NBTTagCompound compound) { super.readFromNBT(compound); container.deserializeNBT(compound.getCompoundTag("StoredJAE")); } what do you meen by
  20. no //write compound.setTag(name, serializable.serializeNBT()); //read serializable.deserializeNBT(compound.getCompoundTag(name))
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.