Posted July 26, 20205 yr here is the code I have so far. I am trying to make a spawn egg. @SubscribeEvent public static void onClickEgg(PlayerInteractEvent event) { if (event.getEntityLiving().getHeldItemMainhand().getItem() == ModItems.SPAWN_MUDDY_PIG.get()) { PlayerEntity player = event.getPlayer(); } }
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.