
Mightydanp
Members-
Posts
225 -
Joined
-
Last visited
Everything posted by Mightydanp
-
Alright what is simulate mean? I looked throw the code but didnt understand exactly what that ment
-
Ik not at home but split splits the stack or what exactly
-
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
-
So i have to insertItem. Then set the player hand to handstack. Then shrink the handStack
-
So what i get from this is insert item. Set that into the player which will also break the chain then shrink players hand ??
-
Hand stack is just PlayerEntity.getMainHandStack Slot handler leads to ItemStackHandler If you need more information i will post to full class
-
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); } }
-
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
-
Its sepost to spawn on the ground
-
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.
-
Thanks i noticed it just after i posted it
-
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
-
The Generation is being called now but i cannot seem to find any of it on the surface.
-
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()); }
-
http://pastebin.com/H83pq2QY
-
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.
-
i am calling it in my core file that handles everything in the FMLInitializationEvent GameRegistry.registerWorldGenerator(new WorldGenTwigs(), 1);
-
http://pastebin.com/Mj7pVZmf
-
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
-
TileEntitySpecialRenderer does not face the correct direction.
Mightydanp replied to Raycoms's topic in Modder Support
Dont know anything about this but heres a reference http://www.minecraftforge.net/forum/index.php?topic=41059.0 -
What Exactly are you trying to make?
-
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
-
oh ok i got it now
-
http://pastebin.com/GGYXWcmi