Jump to content

Skript | Can't find last spawned entity


AgentGamerPro

Recommended Posts

I dont know how to start this off...

Im using a spawner to spawn in custom mobs, but for some reason the first 3 lines of my skript cant and wont work. I don't get any errors or warns.
 

on spawn:
	if last spawned entity = "pig":
		broadcast "&aFound Pig"

 

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Lifestealed | Minecraft Servers
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - Present

 

Link to comment
Share on other sites

5 hours ago, ztimhirsch1 said:

Hey there, on spawn only works with mobs spawned with commands and skript.

on spawn:
	broadcast "%last spawned entitiy%"

Im doing this with spawners

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Lifestealed | Minecraft Servers
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - Present

 

Link to comment
Share on other sites

On 3/22/2021 at 10:08 PM, AgentGamerPro said:

on spawn:
	broadcast "%last spawned entitiy%"

Im doing this with spawners

Try using event-entity?

Hello there! If you're reading this, hope you're having a wonderful day!

 

Feel free to contact me via Discord (CoolProgrammer#1920) for any help.

My DMs are always open for help.

You can also message via. forum messages for help.

1604908226_ScreenShot2021-01-28at10_32_28AM.png.2646ad6be239a9d0756a99e8e15602ab.png

Also, don't hesitate to leave a like on my post if I helped you in any way.

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