Posted January 28, 201510 yr How do i spawn items into the game through a block? I currently have a block that when certain items/liquids are in it will create something so i need that item to "pop" out of it.
January 28, 201510 yr Author I meant what should i use to do it? Also do i have to set the nbt manually or do i just specify what item i want it to be?
January 28, 201510 yr EntityItem entityitem = new EntityItem(world, x, y, z, new ItemStack(item, amount, damage)); if (!world.isRemote) { world.spawnEntityInWorld(entityitem); } The TileEntitys are Going to kill us all and take over the entire (Minecraft) world!
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.