Page 1 of 1

Event: on_entity_request_slot_changed

Posted: Sat Jul 20, 2019 5:41 am
by raiguard
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!


Re: Event: on_entity_request_slot_changed

Posted: Sat Jan 16, 2021 1:59 am
by raiguard
I see this was silently moved to "won't implement". Is there a reason for that, or is it just on the back burner?

Anyway, I need this now more than ever, for a different mod. I could survive without it, but with it I can significantly improve the performance of my mod when it comes to setting specific requests. Right now I have to loop through all the requests to find the one I need, but with an event I could easily make an up-to-date lookup table.

Re: Event: on_entity_request_slot_changed

Posted: Mon Jan 25, 2021 5:41 pm
by PFQNiet
Looks like it's now been silently moved to "implemented mod requests"!

The dev team works in mysterious ways ;)