holybook:
type: item
material: 403
display name: HolyBook
lore:
- Monks have been known to
- heal people with this tome.
'monk':
type: world
events:
on player right clicks with i@holybook:
- ^if <player.in_group[monk]> {
- if <global.flag[myworldscript_cooldown]> == true queue clear
- flag global myworldscript_cooldown:true duration:15
- heal 5 <player.location.find.players.within[10].exclude[<player>]>
- foreach <player.location.find.living_entities.within[10]> {
- if <%value%.entity_type> == zombie hurt 5 %value%
}
- narrate "You have healed the people nearby." }