The Bumblezone (Fabric)

The Bumblezone (Fabric)

13M Downloads

bee drops two stingers 1.20.1

Aceplante opened this issue · 11 comments

commented

title, I feel like it should only drop one at a time, and not 100% of the time

commented

What modloader and Bumblezone version? What other mods did you have on or what modpack are you playing on? Is this a vanilla bee or not? Did the bee have a stinger on or not? (It’s supposed to be a 100% drop rate if bee has stinger and 0% if no stinger)

commented

checking in, any luck? or link to the modpack you're using?

commented

Yes it was a vanilla bee. It did not sting me so it wouldve had a stinger, I was not using looting and dont think I had any other loot boosting effects,

Yea I checked the loot table and that does seem to be the case, so this may just be me

commented

Ah, yep. It does not happen on a minimal instance, so Ill have to do more testing. You can close for now if you want, ill reopen if i find it

commented

I still want your modpack if you are using latest bumblezone version and still experience the issue. A mod could be rolling a second separate loot table for bee death instead of adding their stuff to the bee loot table. My code could then be triggered twice as a result of the other mod rolling the entirely separate loot table

commented

Sure, Ill test it on a minimal instance, just a sec

commented

I like to keep issue reports open and marked with the problematic mod so others can come here and see the cause. It'll also help me as I can see if I can do anything to avoid the other mod's loot table or contact the other modder.

commented

closing as no new info on what mod could be cause

commented
commented

Reopening

https://github.com/Daripher/Auto-Leveling/blob/1a82e000dd4f82dfbedfe372d1ca5afeaac44ba2/src/main/java/daripher/autoleveling/event/MobsLevelingEvents.java#L107

Idea: mark the bee as drops done somehow so future rolls of loot table doesn’t drop item? Worry it could get accidentally triggered by drop scanning mods

commented

Should be fixed now. What I do is I attach a temporary data to the entity when I rolled my loot table. Then check if entity was already marked before trying to roll it again and don't if so. This will stop any mod that is erroneously spawning mod loot table drops outside of Global loot Modifier system from causing me to do duplicate drops as well.