sense tameable component get removed on tame, that leave us with no way to access tamedToPlayerId and tamedToPlayerId and isTamed. and all the other EntityTameableComponent properties.
code used to test:
world.afterEvents.playerInteractWithEntity.subscribe((event) => {
const { player, target } = event;
const t = target.getComponent("tameable").
console.warn(t);
})
[media]
Attachments
Comments 3

Thank you for your report!
However, this issue has been temporarily closed as Awaiting Response.
Could you please attach an example addon showcasing the issue?
This ticket will automatically reopen when you reply.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki
Due to OP’s inactivity, I created an example behavior pack. It works in 1.21.100 with no experiments enabled. I would also be willing to take over control of this report if that is deemed reasonable.
When I interact with this tamed wolf, I receive an error saying that the property “tamedToPlayer” is undefined. I have it set up to send a chat message when I have interacted, and the result of tamedToPlayer
, tamedToPlayerId
, and isTamed
The script file is below, in addition to the behavior pack.
world.afterEvents.playerInteractWithEntity.subscribe((event) => {
world.sendMessage('interact')
const tamedToPlayer = event.target.getComponent("tameable").tamedToPlayer
const isTamed = event.target.getComponent("tameable").isTamed
const tamedToPlayerId = event.target.getComponent("tameable").tamedToPlayerId
world.sendMessage(`tamedToPlayerId: ${tamedToPlayerId}`)
world.sendMessage(`tamedToPlayer name: ${tamedToPlayer.name}`)
world.sendMessage(`isTamed?: ${isTamed}`)
})
[media]