mirror of
https://github.com/Threnklyn/MinecraftChat.git
synced 2026-05-30 01:38:29 +02:00
fdc031e660
show position , health ,weather and food
11 lines
238 B
JavaScript
11 lines
238 B
JavaScript
export default (socket) => {
|
|
|
|
let ondeath = () => {
|
|
var pos = socket.mcbot.entity.position;
|
|
socket.emit('buffer:info', `You have been dead in X:${pos.x}, Y:${pos.y}, Z:${pos.z} `);
|
|
};
|
|
|
|
socket.mcbot.on('death', ondeath);
|
|
|
|
};
|