Jump to content

summon mob?


BOXEY

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)
	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 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

In-game name - _Tarna_

Website - https://tarna.dev
Paste Site: https://paste.tarna.dev

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

[VIP] - 7/27/2020

Community 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

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

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

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...