Ability To Buy/Sell Old Spawn Eggs

Discussion in 'Empire Help & Support' started by azoundria, Jan 12, 2023.

  1. At the moment, I have a large number of spawn eggs that don't appear to stack with the sell-able versions. Since the eggs all look the same, the only way to realize this problem was to try to buy or sell the eggs using a second account, and the only way to debug which eggs are affected from the client was to experiment with stacking. I talked with at least one other player with a similar problem, which they also found frustrating and couldn't find a solution for.

    These eggs are effectively taken out of circulation from the market, and players can't buy or sell them at most shops (unless you create a custom shop especially for these "glitch egg" variants). It's a frustrating experience, since for the longest time I've believed I had lots of inventory, but in fact players trying to buy would see "Shop is out of stock." and I can't imagine how many times people have come to sell old spawn eggs and assumed my shop was just broken. That was after remaking all the signs on every server.

    As far as I understand, there is some small NBT tag difference, but nothing functionally different about these eggs. If there's something else different such that people have a special reason for wanting the old version of the spawn eggs, it would be useful to understand.

    Potential solution:
    If a shop is set up to sell a type of spawn egg, for example "Villager Spawn Egg", it could automatically work with both old and new variants of the eggs.

    Alternative solution:
    Prior to checking for stock in a shop chest, upgrade any spawn eggs in the chest. When attempting to make a sale at a shop, upgrade any spawn eggs in the inventory.

    Backup solution:
    Having a command that can "upgrade" spawn eggs to the new variant, so at least they would be compatible with existing shops if someone knew about the problem.

    Please let me know any thoughts! Thanks!
    NuclearBobomb and We3_MPO like this.
  2. Have you tried putting them into /vault, closing vault, reopening and retrieving/retry-ing? Otherwise +1
  3. I have a similar problem with blaze heads. New ones do not stack with the old. However, if I come back a day later and hit the sort button (I have the mod for that), the new ones I put in a day ago will now stack with the old. Never could figure it out. And since it was dealing with heads, I never thought to report it. At least I'm not getting ahead of myself.:rofl: :lmao:

    P.S. I have tested this with other heads with the same results.
    UltiPig likes this.
  4. After the 1.13 Aquatic Update, the mob eggs changed. Among the changes were the color being kept for sheep/parrots/mooshrooms/villagers, which created additional eggs for those mobs.
    'washing' the eggs by placing them in the vault and opening and closing it a few times is the only work around that staff has ever suggested, besides the obvious spawning the mob and then re-egging it.

    Similar changes with the NBT tags have happened with every update on Books and Heads. changes have recently been made to ocelots and wolves, which affect those mob eggs on emc.

    Shop signs simply have to be re-made after every update for these items: Books, Heads, and eggs. Has been going on for several years. Nothing new. Choose signs work the bet for selling them and buying them can be based on whichever version you want signs matched to.
    Joy_the_Miner, We3_MPO and Tuqueque like this.
  5. just so you know some of the older eggs, like parrots that don't have a color, are worth a lot more then the other eggs
  6. I have debating how to respond to this thread. The ultimate issue is that internal data changes in an undetectable way version to version for spawn eggs. Similarly with mob heads, although I understand less why they fail to stack.

    The solution, is not what is suggested here (as mentioned the differences are impractical to detect). I could change ALL of the mob eggs and heads in a way that makes this new version resyncable. Which would require breaking them one more time. But the last time.

    Y'all let me know what you think. Is having permanent working spawn egg shops worth it to break ALL shops one last time. Thanks :)
    Joy_the_Miner, Tuqueque and We3_MPO like this.
  7. Eh, the colorless parrot eggs are really only going to be obtainable through this last winter event (accidentally put in without a type). I am unsure whether there was a time when "parrot" eggs were without a type. Maybe I am wrong.
  8. Yes, I do think it's worth it. Choose 1 shops aren't a suitable workaround to sell; only buy. Also, sometimes short-term inconvenience can prevent worse pain in the long run.
    Joy_the_Miner likes this.
  9. i have about 30 of them without a type
    We3_MPO and chickeneer like this.
  10. There has not been another game workaround suggested to players, besides the 'vaulting wash' that we have been told about in game. Unless you are referring to the code-based solution, which we have no access to. Please elaborate what you referred to.

    parrot eggs saved their color in the same update where sheep saved their color (1.16?) previous eggs would just say "parrot" or "sheep"
  11. The original suggestions? lol
    We3_MPO likes this.
  12. Your reference to a solution not mentioned here, sounded like you had something else in mind that players should be doing/trying. Since I had no idea what that could possibly be, I asked for clarification.
    Suggestions being made in a thread are just that, until such time as such suggestions are implemented.
    Your statement was ambiguous and unclear. I politely requested further information and clarification.
    I asked an actual question, hoping for communication, instead, I got a sarcastic comment that is unenlightening.
  13. woah woah woah :( I don't purport myself to be a linguist. Quite the opposite. My communication is horrible and I am sorry I communicated something unclear. Clearly I am missing something here...

    All I am saying is that there is no feasible way in the code to convert the old eggs to be new eggs. When I talk about suggestions, solutions, etc. I am referencing what solutions the developers could implement. I interpreted this thread incorrectly as a suggestion. In fact, I do not know why it is suggesting developer things without being in the Suggestion Box. I am just trying to find a way to fix the problem reported here, not cause conflict.

    As for what players can do now, all I know is they could spawn in the entities and re-eggify them. Which I acknowledge is a pain. I do not know of any other way to make them work in buy/sell signs consistently otherwise.
    We3_MPO likes this.
  14. Is there a way to fix the heads that have this issue as well, or is it just doing the /vault wash thing to get them to stack. I still get mob heads now that won't stack with each other, even on fresh kills.
  15. Heads are weird for different reasons. They are tied to a Mojang Profile to lookup the texture. When we create them, we have hardcoded that profile/texture. So not sure why it sometimes creates ones that don't stack. It doesn't make sense.
    We3_MPO likes this.
  16. Probably just a glitch in the Matrix. :) Hopefully, at some point, Mojang will fix their coding of the heads so things like this can be fixed.
    We3_MPO likes this.

  17. This worked for all the eggs except villager spawn eggs. It was just very confusing because villager spawn eggs were what I started with and tried first.


    I don't understand how data can change in an "undetectable" way. Are you saying there's no way at all to check and know whether eggs have the wrong NBT data? Somehow the shop decides what is a valid egg and what is an invalid egg which can't be sold. It must be comparing something. So it must be able to access that information to make the comparison somehow. I can't understand how this can be unknowable.


    This definitely does not work. I tried everything with the villager eggs and they don't stack or sell as villager eggs, including spawning and eggifying them.
  18. ?confused? We don't store any special information about villagers when they are eggified. This is a new report. Since we don't store any data, they should reliably stack - unless they are renamed. Looking at the code, I see where it might be doing something weird when we specifically are not storing any data, like villagers. I know it sounds like a contradiction but I think that is the bug; that the times it shouldn't store any data, it is storing too much entity specific data erroneously.
    Well. I didn't explain why to keep the explanation simple and response brief. Nothing is impossible in code, but impractical and unpredictable would have been better words here. The problem with the current method of eggification (which I have put work in to transition away from in the 1.20 version update), is that data from the *entity* is being stored on the item in a very raw, non-API way. So it isn't directly item metadata that is storing this information, it is entity metadata within the item metadata. Item data is generally more consistent, but there lacks API around this entity tag without spawning in the full entity which would be horribly hacky and requires new code I haven't written. How shops work, is they either exactly match with that internal data, or don't match at all. It is a blind equals check on serialized versions of this entity metadata. In a shop environment, in theory it is possible to create 55 different virtual entities to do expensive equality calculations based on them, but as indicated that is not a healthy solution... and is going to require a lot of work. Plus the client would still see these items as distinct items, regardless of what the shop system considers them. So I would rather put in the lot of work to fix the problem for good so the items detect as equal the first time.

    So why 1.20? Well a major version upgrade is normally more likely to break entity egg shop signs. So I would prefer to roll out any solutions to this eggification issue with a base minecraft version update. The goal with such an update, will be to permanently fix the problem of needing to create new shop signs for spawn eggs ever again (unless Mojang adds new features which we store on spawn eggs and thus makes a 'new' item.

    Reference of the server patch we will be moving away from. LINK - where the line 30 is where I suspect that providing a null filter is allowing extra data to be stored that we are not planning on... (for villagers)
  19. I agree with Chickeneer's solution. Wipe the IDs/data on the backend and make it so unstackable items (which would normally be stackable) will be stackable again. I'm sure I have a few items in my inventory on EMC that were messed with after the 1.13 update. I remember having a small collection before 1.13 came out, and now I'm a bit scared to go check my inventory to see how they were affected. ^^;
  20. Well. The spawn eggs will need to be spawned in to be converted to the new system. But they then should be permanent.

    Pre 1.13 spawn eggs should be fine still. No one has reported otherwise.

    The main issue at play in this thread is the shop signs