You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
ID: 24d4905a-c2c9-eecf-67a5-de3d86c78ad0
Version Independent ID: 24d4905a-c2c9-eecf-67a5-de3d86c78ad0
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.
The text was updated successfully, but these errors were encountered: