Event: on_entity_request_slot_changed
Posted: Sat Jul 20, 2019 5:41 am
Hello. In my Infinity Mode mod (which is a modernized recreation of the Creative Mode mod), I am attempting to implement an Instant Request cheat. The essence of this code is that when the player's main inventory changes, I make sure that all of the character's requests are fulfilled, by adding any missing items.
The code for this works beautifully in all but one thing: when the player adds a new request, nothing happens! There is no event that I can find which allows me to listen for this action. I would really like to avoid using an on_tick event as much as possible.
Request slots are specific to the character entity and not the player, so the event would probably fire whenever a request slot is changed, whether it be by a player or by another mod.
Thanks!
The code for this works beautifully in all but one thing: when the player adds a new request, nothing happens! There is no event that I can find which allows me to listen for this action. I would really like to avoid using an on_tick event as much as possible.
Request slots are specific to the character entity and not the player, so the event would probably fire whenever a request slot is changed, whether it be by a player or by another mod.
Thanks!