Posted March 5, 201411 yr I need help setting my block item stack into 1 . Is there any methods or thingies that can help?
March 5, 201411 yr What if my block is a Block Container ? , Ehh, no difference? Well, the question is, what do you want to accomplish? you can say new ItemStack(Item.getItemfromBlock(Blocks.iron_ore)), x) then u have an ironblock with stacksize ********************************* ** Always remember you are unique, ** ** just like everyone else ** ********************************** Was my post helpful? Say thanks and press the thank you button, on my post!! God, damn it!
March 6, 201411 yr The Minecraft version and type of Block are irrelevant. You need to create a custom ItemBlock (the block that is actually in your inventory is an ItemBlock, not a Block) and set the max stack size to 1 in the constructor. http://i.imgur.com/NdrFdld.png[/img]
March 6, 201411 yr Author Ahhh ok ok so ill make my Own custom Itemblock but if i extendit to item how am i register it to my tile entity ?
March 6, 201411 yr Author EDIT : Guys i think i got a progress now, Cakes dont extends ItemBlock so it must be something else
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.