There are many other death chest datapacks that I've found online (most of them don't work, and this one is definitely the most stable and well built, so props!) That are implemented in a different way. I believe the alternatives are worth looking in to.
Rather than funnel entities through a hopper into a chest, the keepInventory rule is kept on. The items are removed from the player's inventory and placed in chest. The player's experience levels are kept, there are no entities, and there is no need for hoppers.
If this alternative was implement, it would be easy enough to toggle.
Check whether the keepInventory gamerule is false. If so, use the current implementation. Otherwise, use the alternative implementation.
I'm not sure if this alternative option is possible, but it would act in a much cleaner way to spawning hoppers.
There are many other death chest datapacks that I've found online (most of them don't work, and this one is definitely the most stable and well built, so props!) That are implemented in a different way. I believe the alternatives are worth looking in to.
Rather than funnel entities through a hopper into a chest, the keepInventory rule is kept on. The items are removed from the player's inventory and placed in chest. The player's experience levels are kept, there are no entities, and there is no need for hoppers.
If this alternative was implement, it would be easy enough to toggle.
keepInventory
gamerule isfalse
. If so, use the current implementation. Otherwise, use the alternative implementation.I'm not sure if this alternative option is possible, but it would act in a much cleaner way to spawning hoppers.