Jump to content

summon mob?


Recommended Posts

hello i am trying to make a skript to spawn the mob that the player types in and ineed to know how to set the mob to spawn to what they types and how to spawn it then


here is my skript so far:

command mob [<text>]:
	permission: {@permission}
	permission message: {@pm}
	usage: /spawn (mob)
		if arg-1 is not set:
			send "{@prefix} Please enter a mob" to player
			send "{@prefix} Summoning Mob of:"
			wait 15 ticks
			send "&7Mob: %arg-1%"
			set {mob::%uuid of player%} to arg-1
			wait 15 ticks
			send "{@prefix} At your location"
			spawn {mob::%uuid of player%} at location of player




Edited by Boxmonkey
Link to comment
Share on other sites

You need to parse the variable as a mob since you are currently trying to spawn in text. 

Discord - Tarna256#8675

In-game name - _Tarna_

Follow @Tarna_256 on Twitter


[VIP] - 7/27/2020

Support - 7/8/20 | 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - 5/17/21

❤️ - 5/17/21 - now

Moderator - 12/20/22 - now



Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...