Jump to content

Mightydanp

Members
  • Posts

    225
  • Joined

  • Last visited

Everything posted by Mightydanp

  1. Alright what is simulate mean? I looked throw the code but didnt understand exactly what that ment
  2. Ik not at home but split splits the stack or what exactly
  3. ItemStack heldItem = player.getHeldItem(hand); if(!heldItem.isEmpty()) { MillstoneTileEntity te = (MillstoneTileEntity)world.getTileEntity(pos); IItemHandler inventory = te.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, Direction.UP).orElse(null); if(inventory == null) return false; ItemStack stack = heldItem.copy(); stack.setCount(1); stack = inventory.insertItem(0, stack, true); if(stack.isEmpty()) { stack = inventory.insertItem(0, heldItem.split(1), false); Can your code. I dont understand where you remove 1 from handItem
  4. So i have to insertItem. Then set the player hand to handstack. Then shrink the handStack
  5. So what i get from this is insert item. Set that into the player which will also break the chain then shrink players hand ??
  6. Hand stack is just PlayerEntity.getMainHandStack Slot handler leads to ItemStackHandler If you need more information i will post to full class
  7. Ok so this might be simple to explain. This works as intended puts item into that slot if (SlotCircuit.getValidItems().contains(handStack.getItem())) { if (slotHandler.getStackInSlot(0).isEmpty()) { slotHandler.insertItem(0, handStack, false); } } Below code doesnt put item in slot but deletes item in hand..... why does it not put item into the slot when i put a line of code after it? if (SlotCircuit.getValidItems().contains(handStack.getItem())) { if (slotHandler.getStackInSlot(0).isEmpty()) { slotHandler.insertItem(0, handStack, false); handStack.shrink(1); } }
  8. I am trying to Render a model inside of a model if a certain slot isn't empty. How would i do the rendering ?? i have a clear frame and i am just trying to render a model if a slot is not empty
  9. Its sepost to spawn on the ground
  10. i am having one problem. I am using BlockPos getY = new BlockPos(posX + offset(8, random), 0, posZ + offset(8, random)); int posY = (world.getTopSolidOrLiquidBlock(getY).getY()); sometimes the block will generate a block above the block its sepost to spawn on, and sometimes it will be up in the sky.
  11. Thanks i noticed it just after i posted it
  12. apparently they are generating in the sky. When i teleport to one its not there. [server thread/INFO] [eot]: eot:Generating Twigs: X:-276 Y:256 Z:-637 http://pastebin.com/VfGkyY3A
  13. The Generation is being called now but i cannot seem to find any of it on the surface.
  14. in here if (world.isAirBlock(new BlockPos(posX + offset(8, random), posY, posZ + offset(8, random))) && (!world.provider.getHasNoSky() || pos.getY() < 255) && Blocks.WATERLILY.canPlaceBlockAt(world, new BlockPos(posX, posY, posZ))) { EoTLogger.logInfoMessage(Reference.MODID + ":" + "Generating Twigs."); world.setBlockState(pos, ModBlocks.twigs.getDefaultState()); }
  15. http://pastebin.com/H83pq2QY
  16. Apperently the generation is not being called. i put in a .logInfoMessage(....... so that i could see if its being called and when i created a new world it didnt display it at all in the console.
  17. i am calling it in my core file that handles everything in the FMLInitializationEvent GameRegistry.registerWorldGenerator(new WorldGenTwigs(), 1);
  18. http://pastebin.com/Mj7pVZmf
  19. I am having a bit of trouble getting it to spawn. I used your code as reference and couldn't get it to spawn. http://pastebin.com/GzH0WhX9
  20. Dont know anything about this but heres a reference http://www.minecraftforge.net/forum/index.php?topic=41059.0
  21. What Exactly are you trying to make?
  22. I made a generation class for my twigs.I based it off the WorldGenCactus, but for some reason it still will not work. By that I mean that when i create a new world it gives me a error i also get a crash log This is my generation class http://pastebin.com/E6RCSu25 Here is the block class for it http://pastebin.com/fCzuzC9X
  23. oh ok i got it now
  24. not writing ?
  25. http://pastebin.com/GGYXWcmi
×
×
  • Create New...

Important Information

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