When the egg is put into a donkey chest, the plugin should update the location of the egg as the donkey moves, but I don't know how to check if the inventory being placed into is a donkey. Putting the egg into a donkey chest makes the entity null, which causes a null pointer exception when trying to get the egg's location with commands
Consider: do not allow egg to be interacted when non-player inventory is open. (maybe do a switch statement on interacts, so most inventory types can be used to interact with the egg, but the default statement disallows it)
When the egg is put into a donkey chest, the plugin should update the location of the egg as the donkey moves, but I don't know how to check if the inventory being placed into is a donkey. Putting the egg into a donkey chest makes the entity null, which causes a null pointer exception when trying to get the egg's location with commands
Consider: do not allow egg to be interacted when non-player inventory is open. (maybe do a switch statement on interacts, so most inventory types can be used to interact with the egg, but the default statement disallows it)