Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

BlackKnight42

Members
  • Joined

  • Last visited

Everything posted by BlackKnight42

  1. That fixed it, thanks a lot!
  2. I made an item that when you right click on an animal it drops the egg for that animal. For some reason when this happens it drops the actual egg that the player can pick up, but it also drops another egg that the player can't do anything to. Here's the main interaction code I have. public boolean itemInteractionForEntity(ItemStack itemstack, EntityLiving entity) { if(entity instanceof EntityAnimal || entity instanceof EntityWaterMob) { int spawnID = 0; if(entity instanceof EntityBat) spawnID = 65; else if(entity instanceof EntityChicken) spawnID = 93; else if(entity instanceof EntityCow) spawnID = 92; else if(entity instanceof EntityMooshroom) spawnID = 96; else if(entity instanceof EntityOcelot) spawnID = 98; else if(entity instanceof EntityPig) spawnID = 90; else if(entity instanceof EntitySheep) spawnID = 91; else if(entity instanceof EntitySquid) spawnID = 94; else if(entity instanceof EntityWolf) spawnID = 95; else return false; entity.setDead(); entity.entityDropItem(new ItemStack(383, 1, spawnID), 0.0F); return true; } return false; }

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.