Posted January 4, 201510 yr In my item's onCreated function it's spawning another item, but when I press shift it spawns two items. The proud(ish) developer of Ancients
January 4, 201510 yr Author public void onCreated(ItemStack itemstack,World world,EntityPlayer player){ EntityItem item = new EntityItem(world,player.posX,player.posY,player.posZ,new ItemStack(Drill)); if(!world.isRemote) world.spawnEntityInWorld(item); if(!GuiScreen.isShiftKeyDown()&&!world.isRemote) world.spawnEntityInWorld(item); } The proud(ish) developer of Ancients
January 4, 201510 yr Author I was testing it, before it was just the !world.isRemote and the spawn entity, but it still spawned two items when I shift clicked The proud(ish) developer of Ancients
January 4, 201510 yr Author I got it to work but I have to use nbt, thanks The proud(ish) developer of Ancients
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.