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.

shirtandtieler

Members
  • Joined

  • Last visited

  1. Hello all, I've thoroughly scoured the internet to the best of my abilities as to how to add vanilla spawn eggs to crafting recipes, but can't seem to figure it out - most results are concerning just adding custom spawn eggs to the game, which is not what I'm trying to do; other results that were semi-helpful mostly were incomplete answers or for a much earlier version. I've tried adding the data value to the ItemStack object, for example: ItemStack spawnEgg_zombie = new ItemStack(Items.SPAWN_EGG, 1, 54); But all that gives me is a generic spawn egg. I know giving a player a zombie spawn egg in game requires the command: /give <PLAYER> minecraft:spawn_egg 1 0 {EntityTag:{id:Zombie}} So I figure I need to make use of the initializer for an ItemStack object that requires an "NBTTagCompound". However the part that I'm confused at is nesting the tags to produce a result similar to the in-game command (assuming that this is the correct way to go about this). I've tried various different things using NBTTagCompound variables, but none of them seemed to give me anything but a generic spawn egg. If any help could be given, I'd greatly appreciate it!

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.