Offhand Issues

Published by WenXin2 on Thu, 07/09/2020 - 17:16
Upvotes: 3
Issue description

With the Offhand, I've noticed two bugs related to it.

The first is that if a Ranged Weapon is set use itself as ammo, and the weapon/ammo is placed only in the offhand, it won't shoot because it is not checking the offhand for ammo in survival. Relevant element is named Corn.

The second is if I use a procedure that removes an item from the offhand, it will first remove any of the same item from the main inventory and remove it from the offhand last. Relevant element procedure is named MonarchButterflyRelease, and the item it uses is called the Captured Monarch Butterfly. Moved to a separate issue page.

Most likely the offhand isn't being checked properly.

Attachment Size
debugmod-1.15.2-1.0.zip14.41 KB 14.41 KB

Issue comments

Your workspace uses plugins which makes it hard to debug. Please avoid this next time when reporting bugs. Make a minimal example of the workspace that is vanilla MCreator.

I will test this when I get time.

The second is if I use a procedure that removes an item from the offhand, it will first remove any of the same item from the main inventory and remove it from the offhand last. Relevant element procedure is named MonarchButterflyRelease, and the item it uses is called the Captured Monarch Butterfly.

This is a separate issue so open a separate ticket. The procedure is huge so make an isolated workspace with minimal needed elements (likely one procedure) that demonstrates this problem isolated.

Thanks. I'll make a separate issue for that once the issue ticket form unlocks.



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.