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

[server][enhancement][scripting][request] Access the type of Mob within a mob spawner? #881

Open
dev-syn opened this issue Jul 30, 2024 · 0 comments

Comments

@dev-syn
Copy link

dev-syn commented Jul 30, 2024

I hope I'm putting this in the right section as I do notice this is for the docs and if it's not please point me the right way.

Would it be possible within the scripting API to access the type of Mob within a Mob Spawner? I notice the getComponent method which has a lot of useful components but nothing to identify the Mob within a spawner. My use case would be when the spawner is destroyed grant the player the same spawner with the right mob type. As of now, all I can do is prompt a menu with all mob types and trust a players honesty but it feels like cheating.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

@dev-syn dev-syn closed this as completed Jul 30, 2024
@dev-syn dev-syn reopened this Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant