-
Notifications
You must be signed in to change notification settings - Fork 0
Event Syetem (English)
GRAINALCOHOL edited this page Feb 21, 2026
·
4 revisions
Language: | > English < | 简体中文 |
Non-cancelable events:
MentalIllnessEvent.MENTAL_ILLNESS_STATUS_CHANGED_EVENT.register((player, lastTickStatus, currentStatus) -> {
// When mental illness status changes
// Execute your logic here
})Cancelable events:
PTSDEvent.PTSD_TRIGGERED_EVENT.register((player, onsetLevel, distance) -> {
// When PTSD is about to be triggered
// Execute your logic here
return EventResult.FALSE; // Returning FALSE will cancel this PTSD trigger
})