Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MODDING] Add a callback that triggers when a NPC/Monster Moved #318

Open
Khanx opened this issue Dec 19, 2021 · 1 comment
Open

[MODDING] Add a callback that triggers when a NPC/Monster Moved #318

Khanx opened this issue Dec 19, 2021 · 1 comment

Comments

@Khanx
Copy link
Contributor

Khanx commented Dec 19, 2021

Add a callback that triggers when a NPC/Monster moves, it can be helpful to detect when a monster moves over a trap.

@pipliz
Copy link
Owner

pipliz commented Dec 20, 2021

I've thought about it when adding traps to the game itself, but given the trap/monster counts involved the traps now work by checking for monsters often instead of the other way around. It's decently quicker to check whether a monster/NPC is at/near XYZ than to query the world for a block being near

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants