Introduction
Usually, a tameable entity would remove “minecraft:tameable” or “minecraft:tamemount” component once it was tamed. Thus, you may never get valid response from property “tamedToPlayer” or “tamedToPlayerId“ of EntityTameableComponent or EntityTameMountComponent Class in SAPI.
Steps to reproduce
create an addon that is capable to use scripts
you may detect an entity whether it has tameable component by the method Entity.hasComponent(“minecraft:tameable“)
summon a wolf, and the method returns true
tame the wolf with bones, and the method returns false
The result
There should be a way to know which player tamed the wolf (by the property EntityTameableComponent.tamedToPlayer). However, if the component is removed after the wolf is tamed, you’re unable to access the property EntityTameableComponent.tamedToPlayer. So I suppose it as a functional error.
Comments 4
Tamed entities store the UUID of the player than tamed them under the nbt tag OwnerID. Can you query that?
This report does not have enough information for us to understand and reproduce the problem.
As explained in the instructions on the bug reporting page, when describing your bug, please include the following information in the Description section:
List of Steps to reproduce the issue
Expected result
Actual result
If you are using any add-ons, be sure to include the name and creator of each of them.
Videos and screenshots are also helpful, especially if the issue is a “visual” one.
Please Edit your report to add the above information to the Description.
This issue is currently Awaiting Response. It will automatically reopen when you add information.
Reports that do not have enough information will be closed as Incomplete.