hey @Rangerz132, welcome!
onAdd
is only called for "collections" of items, you could attach the onChange
callback directly on it:
this.room.state.mole.onChange = (changes) => {};
Alternatively, I'd suggest using .listen()
instead:
this.room.state.mole.listen("x", (value) => {})
this.room.state.mole.listen("y", (value) => {})