@@ -176,11 +176,11 @@ bot.on('playerCollect', (collector, collected) => {
176176
177177bot . on ( 'entitySpawn' , ( entity ) => {
178178 if ( entity . type === 'mob' ) {
179- console . log ( `Look out! A ${ entity . mobType } spawned at ${ entity . position } ` )
179+ console . log ( `Look out! A ${ entity . displayName } spawned at ${ entity . position } ` )
180180 } else if ( entity . type === 'player' ) {
181181 bot . chat ( `Look who decided to show up: ${ entity . username } ` )
182182 } else if ( entity . type === 'object' ) {
183- console . log ( `There's a ${ entity . objectType } at ${ entity . position } ` )
183+ console . log ( `There's a ${ entity . displayName } at ${ entity . position } ` )
184184 } else if ( entity . type === 'global' ) {
185185 bot . chat ( 'Ooh lightning!' )
186186 } else if ( entity . type === 'orb' ) {
@@ -189,7 +189,7 @@ bot.on('entitySpawn', (entity) => {
189189} )
190190bot . on ( 'entityHurt' , ( entity ) => {
191191 if ( entity . type === 'mob' ) {
192- bot . chat ( `Haha! The ${ entity . mobType } got hurt!` )
192+ bot . chat ( `Haha! The ${ entity . displayName } got hurt!` )
193193 } else if ( entity . type === 'player' ) {
194194 bot . chat ( `Aww, poor ${ entity . username } got hurt. Maybe you shouldn't have a ping of ${ bot . players [ entity . username ] . ping } ` )
195195 }
@@ -214,12 +214,12 @@ bot.on('entityEat', (entity) => {
214214} )
215215bot . on ( 'entityAttach' , ( entity , vehicle ) => {
216216 if ( entity . type === 'player' && vehicle . type === 'object' ) {
217- bot . chat ( `Sweet, ${ entity . username } is riding that ${ vehicle . objectType } ` )
217+ bot . chat ( `Sweet, ${ entity . username } is riding that ${ vehicle . displayName } ` )
218218 }
219219} )
220220bot . on ( 'entityDetach' , ( entity , vehicle ) => {
221221 if ( entity . type === 'player' && vehicle . type === 'object' ) {
222- bot . chat ( `Lame, ${ entity . username } stopped riding the ${ vehicle . objectType } ` )
222+ bot . chat ( `Lame, ${ entity . username } stopped riding the ${ vehicle . displayName } ` )
223223 }
224224} )
225225bot . on ( 'entityEquipmentChange' , ( entity ) => {
0 commit comments