Jump to content

loordgek

Members
  • Posts

    1910
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by loordgek

  1. @Override public NBTTagCompound writeToNBT(NBTTagCompound compound) { compound.setTag("items", (your itemhander that is instanceof INBTSerializable).serializeNBT()); return compound; } @Override public void readFromNBT(NBTTagCompound compound) { (your itemhander that is instanceof INBTSerializable).deserializeNBT(compound.getCompoundTag("items")); } ItemStackHandler is instanceof INBTSerializable
  2. http://www.minecraftforge.net/forum/index.php?topic=43754.0
  3. here plz first get a list for all the ItemStacks in the inventory then spawn the stacks using worldObj.spawnEntityInWorld(new EntityItem(World worldIn, double x, double y, double z, ItemStack stack))
  4. private static ItemStackHandler itemHandler = new ItemStackHandler(81); explain to me what static means
  5. mods form team cofh are only for 1.7.10
  6. this https://github.com/MinecraftForge/MinecraftForge/pull/3442 ??
  7. but that object was/is null private static ResourceLocation rsrcl;
  8. try to fix it. use google edit and post logs
  9. got your other mod working https://github.com/loordgek/gurujive
  10. gurujive can you zip the code and post it here so i can poke at it plz
  11. https://github.com/MinecraftForge/MinecraftForge/pull/3413/files
  12. there is a constructor now public ItemStack(NBTTagCompound p_i47263_1_)
  13. you nee to use public void func_190917_f(int p_190917_1_) { this.func_190920_e(this.stackSize + p_190917_1_); } public void func_190918_g(int p_190918_1_) { this.func_190917_f(-p_190918_1_); }
  14. https://github.com/MinecraftForge/MinecraftForge/tree/noci-1.11.x
  15. that is not how you give a crash log use https://gist.github.com 1.7.10 is no longer supported
  16. https://github.com/MinecraftForge/FML/wiki/New-JSON-Modlist-format
  17. why are you still on 1.7.10 ?? edit this is the code you need but you need to be on 1.10.2 @SubscribeEvent public void itemDespawnEvent(ItemExpireEvent event){ BlockPos pos = new BlockPos(event.getEntity().posX ,event.getEntity().posY, event.getEntity().posZ); event.getEntity().worldObj.setBlockState(pos,Blocks.CHEST.getDefaultState()); TileEntity tile = event.getEntity().worldObj.getTileEntity(pos); IItemHandler handler = tile.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, EnumFacing.UP); handler.insertItem(0, event.getEntityItem().getEntityItem(), false); }
  18. forgot to link this http://mcforge.readthedocs.io/en/latest/datastorage/capabilities/ hope this helps
  19. that is not a forge Capability this is a forge Capability https://github.com/MinecraftForge/MinecraftForge/blob/17db34ae31f281221b661b72b6831880ce31116b/src/test/java/net/minecraftforge/test/TestCapabilityMod.java and update to 1.10.2
  20. you have both JEI and NotEnoughItems installed remove NotEnoughItems ,CodeChickenLib and CodeChickenCore EnderCorePlugin is needed by enderio
  21. and it is looking in "src/main/resources/assets/modid/textures/models" not "src/main/resources/assets/minesat/textures/models"
  22. what is your path to test.png ??
  23. problem w/ forestry
×
×
  • Create New...

Important Information

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