Jump to content

Recommended Posts

Posted (edited)

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)
	trigger:
		if arg-1 is not set:
			send "{@prefix} Please enter a mob" to player
			stop
		else:
			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

 

 

help

Edited by Boxmonkey
stuff
Link to post
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_

---------------------------------------------------------

[VIP] - 7/27/2020

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

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

Moderator - 2/21/21 - Present

---------------------------------------------------------
image.png.2111009afbd8bef10966ba9ede35a199.pngimage.png.70849a9b84e0347ce107b8e3eaee312c.png
 

Link to post
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...