a_random_something Posted December 18, 2023 Posted December 18, 2023 (edited) I have a mob that has an inventory (a SimpleContainer) and I want it to drop all of it on death. Anyone have any idea how to do that? Edited December 20, 2023 by a_random_something Quote
Quvjeq2 Posted December 19, 2023 Posted December 19, 2023 You can try to use Mob#dropCustomDeathLoot and SimpleContainer#getItem Quote
a_random_something Posted December 20, 2023 Author Posted December 20, 2023 I figured it out. I copied this.inventory.removeAllItems().forEach(this::spawnAtLocation); from the Allay and put it in an overridden dropEquipment method Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.