entityHurt event is not working #3253
Labels
possible bug
Stage1
just created by someone new to the project, we don't know yet if it deserves an implementation / a f
This part of the code is not workinf
bot.on('entityHurt', (entity) => {
if (entity.type === 'mob') {
bot.chat(
Haha! The ${entity.mobType} got hurt!
)} else if (entity.type === 'player') {
bot.chat(
Aww, poor ${entity.username} got hurt. Maybe you shouldn't have a ping of ${bot.players[entity.username].ping}
)}
})
The text was updated successfully, but these errors were encountered: