Posted February 22, 201411 yr So I have this here event handler method… @SubscribeEvent public void onLivingDeathEvent(LivingDeathEvent event) { Entity e = event.entity; double rand = Math.random(); if(e instanceof EntitySkeleton) { System.out.println("a skele iz ded!!!"); if(rand < 1D) { e.dropItem(Items.skull, 1); } } } Skeletons do drop skulls, however sometimes the skulls seem to be "ghosts" -- you cannot pick them up. also, hoppers cannot pick them up. Am I doing something wrong???
February 23, 201411 yr Author Here's the fix: use a LivingDropsEvent, LivingDeathEvent is called both by the client and the server. The client item is a ghost and cannot be picked up. the end
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.