Jump to content

loordgek

Members
  • Posts

    1910
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by loordgek

  1. and this is how to clean up from Iinventory https://github.com/loordgek/ThingsMod-1.10.2/commit/863174f611a46a1fa55454e8f61f33a4a0da4326
  2. Alright, so what can I do to fix this all? What must I do with this method to make my test_chest have the tileEntity? remove it
  3. override public TileEntity createTileEntity(World world, IBlockState state)
  4. you never create the tileEntity
  5. where is the block for the chest ?
  6. is your github up to date ?
  7. no http://stopmodreposts.org/ get mods from here https://minecraft.curseforge.com/mc-mods
  8. dont do that. You should almost never have to set -Xmn unless you really know what you are doing. but i dont know what it does diesieben07 can toy explain it ?
  9. disable the loading screen read the eaq on how to do that
  10. registryName needs a modid like so modID + ":" + name
  11. public void finishRecipe(){ ItemStack out = getOutput(itemHandler.getStackInSlot(0),itemHandler.getStackInSlot(1),itemHandler.getStackInSlot(2),itemHandler.getStackInSlot(3)); itemHandler.insertItem(4, out, false); for(int i = 0; i < 4; i++){ itemHandler.extractItem(i, 1, false); // first extract and then look it up that will trow a npe. so move this down essence_stored += getEssenceOutput(itemHandler.getStackInSlot(0),itemHandler.getStackInSlot(1),itemHandler.getStackInSlot(2),itemHandler.getStackInSlot(3)).getAmount(); essence_type = getEssenceOutput(itemHandler.getStackInSlot(0),itemHandler.getStackInSlot(1),itemHandler.getStackInSlot(2),itemHandler.getStackInSlot(3)).getType(); //---Something to write to NBT here--- } }
  12. how does that work. what do i need to put in
  13. when i exit out the game and come back the items are still there
  14. almost leave the build.gradle and gradle folder in there
  15. the tile saves for me and how can i test this
  16. read the javadoc for markdirty
  17. ItemStackHandler handler = new ItemStackHandler(2){ @Override protected void onContentsChanged(int slot) { markDirty(); } };
  18. but then other mods cant interact w/ your things
  19. yes forge has one. look for FluidTank
×
×
  • Create New...

Important Information

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