Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

loordgek

Members
  • Joined

  • Last visited

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. this https://github.com/MinecraftForge/MinecraftForge/pull/3442 ??
  6. but that object was/is null private static ResourceLocation rsrcl;
  7. try to fix it. use google edit and post logs
  8. got your other mod working https://github.com/loordgek/gurujive
  9. gurujive can you zip the code and post it here so i can poke at it plz
  10. https://github.com/MinecraftForge/MinecraftForge/pull/3413/files
  11. there is a constructor now public ItemStack(NBTTagCompound p_i47263_1_)
  12. 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_); }
  13. https://github.com/MinecraftForge/MinecraftForge/tree/noci-1.11.x
  14. that is not how you give a crash log use https://gist.github.com 1.7.10 is no longer supported
  15. https://github.com/MinecraftForge/FML/wiki/New-JSON-Modlist-format
  16. 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); }
  17. forgot to link this http://mcforge.readthedocs.io/en/latest/datastorage/capabilities/ hope this helps
  18. 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
  19. you have both JEI and NotEnoughItems installed remove NotEnoughItems ,CodeChickenLib and CodeChickenCore EnderCorePlugin is needed by enderio
  20. and it is looking in "src/main/resources/assets/modid/textures/models" not "src/main/resources/assets/minesat/textures/models"
  21. what is your path to test.png ??
  22. problem w/ forestry

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.