Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: I'd like to write a plugin to do x but there is no hook for it
Post: RE: I'd like to write a plugin to do x but there i...

And potions would not be covered by HOOK_PLAYER_HEALTH_REGENERATION because they are already covered by HOOK_ENTITY_ADD_EFFECT, right? xoft Wrote: (10-27-2014, 03:43 AM) -- Also, I think I'd prefe...
lost_RD Development 11 10,120 10-27-2014, 02:18 PM
    Thread: I'd like to write a plugin to do x but there is no hook for it
Post: RE: I'd like to write a plugin to do x but there i...

The aim is to prevent health from regenerating - the food level changing is not the hook I want, the health level changing is what I want. Unless I'm missing something about how the health regen code ...
lost_RD Development 11 10,120 10-27-2014, 02:15 AM
  Question Thread: I'd like to write a plugin to do x but there is no hook for it
Post: I'd like to write a plugin to do x but there is no...

Specifically, I want to modify the void cPlayer::HandleFood(void) function (https://github.com/mc-server/MCServer/blob/master/src/Entities/Player.cpp#L1934) in order to disable natural regen to emulat...
lost_RD Development 11 10,120 10-27-2014, 12:40 AM