Spawn Egg Recipe Bug

Started by GenjjaX on Fri, 08/09/2019 - 04:56

Topic category: Help with modding (Java Edition)

Last seen on 19:38, 16. Nov 2019
Joined Jul 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
Spawn Egg Recipe Bug
Fri, 08/09/2019 - 04:56

Anyone who has tried to make a craftable spawn egg mod and has beginner experience with MCreator might run into this problem.

When you make a crafting recipe for a spawn egg, it look like the crafting recipe would come out in the game like this;

 

https://drive.google.com/file/d/1X6kGt_BWKR6beGUkNbOCSCZlTNyBpuIz/view?…

   

However, when I play on MineCraft to test the mod, this shows up;

 

https://drive.google.com/file/d/1ShfegdJtw-PN4-PaUuDGvF9wlWbUcKU8/view?…

 

This happens because the spawn eggs are all the same items with just different NBT values making the spawn egg recipe a blank white spawn egg.

However, even though I know what is wrong here, I dont know how to fix this problem, if anyone would be kind enough to give me a Step By Step way to fix this problem, it would be greatly appreciated.

Last seen on 19:38, 16. Nov 2019
Joined Jul 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
I am also using MCreator 1.9…
Fri, 08/09/2019 - 22:10

I am also using MCreator 1.9.0

Last seen on 03:32, 25. Feb 2020
Joined Aug 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
I don't have a step by step…
Wed, 11/13/2019 - 16:23

I don't have a step by step tutorial right now but I very quickly thought maybe you could make a custom item with the same texture as the spawn egg of the mob you're trying to spawn. then add a procedure to spawn the mob and get rid of the item if the player is in survival and right-clicks on the ground. then you could detect if the player is in creative if not don't get rid of the egg. and if you also want you can put the egg in no creative menu which will make it not found in the creative inventory.