TelepathicGrunt / Bumblezone

A bee dimension just for fun!
https://www.curseforge.com/minecraft/mc-mods/the-bumblezone-forge
GNU Lesser General Public License v3.0
181 stars 37 forks source link

trying to trade with more than one snowball throws it instead of trading #334

Closed Lazerpie101 closed 9 months ago

Lazerpie101 commented 9 months ago

When holding more than one snowball in my hand, the game throws the snowball instead of trading it.

TelepathicGrunt commented 9 months ago

Drop the snowball onto the ground and the queen will trade with it. Snowball throwing is controlled in the item itself before the entity interact logic is ran. So snowball throwing instead of trading on right click is the intended vanilla behavior as item behavior takes priority over entity interact. Hence the solution is just drop the item instead. You will still get credited for that trade when dropping items to trade.

TelepathicGrunt commented 8 months ago

Ok thought about it some more. What I can do is hardcode check for if snowball is thrown at bee queen and if she has a trade for snowball active, she will take no damage from snowball and give clay. Basically catching the snowball. This will be specifically only for snowball. Other projectiles will not be special cased. New version of bumblezone is now released with this small change