Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spawning Tamed Entities Page is Outdated #929

Open
Incoherent-Code opened this issue Oct 22, 2024 · 1 comment
Open

Spawning Tamed Entities Page is Outdated #929

Incoherent-Code opened this issue Oct 22, 2024 · 1 comment
Labels
CONTENT For wiki content itself, not the site.

Comments

@Incoherent-Code
Copy link

Issue: While the guide on the page is still functional, the page should probably mention the much easier solution that exists if you are using scripting. The scripting method does not require the custom entity, runtime identifiers, or a player event, so it should be much easier to set up if using scripting.

Page: Spawning Tamed Entities

Suggestions: I do not think the old method should be removed, as it still works and has its use cases. However, for any case involving scripting the following code would work much better than invoking an event on a player.

let entity = world.getDimension('overworld').spawnEntity("minecraft:wolf", { x:0, y:100, z:0 });
entity?.getComponent('tameable')?.tame(Player);

This method should be preferred in scripting due to it having minimal setup.

@Incoherent-Code Incoherent-Code added the CONTENT For wiki content itself, not the site. label Oct 22, 2024
@QuazChick
Copy link
Collaborator

This page also uses Holiday Creator Features which have been removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CONTENT For wiki content itself, not the site.
Projects
Status: To do
Development

No branches or pull requests

2 participants