Jump to content

shirtandtieler

Members
  • Posts

    1
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

shirtandtieler's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  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!
×
×
  • Create New...

Important Information

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