Jump to content

How do i make mobs drop heads?


Jayden130

Recommended Posts

I tried this code but it just makes salmons drop a steve head named fish instead of a salmon head.

on death:
	attacker is a player
	set {_head} to ("%victim%" parsed as offline player)'s head
	if victim is a salmon:
		drop {_head} named "%victim% head" at victim's location

 

Edited by Jayden130
The code i used made the {_head} variable the head of the victim not salmon
Link to comment
Share on other sites

You need to find an actual skin with a salmon texture and then use that skin's name or use the head's NBT. Your code will work but you aren't doing it correctly.

Graphic Designer - Skript Developer - Professional Builder - Content Creator

Been on Minehut since January 2018. Throughout my time here I've mastered the skills you see above. I make free logos, banners, and server art for users on Minehut. I'm a proficient Skript developer. I'm also really good at building, you can see my portfolio by clicking here. Feel free to say hi if you see me somewhere 🙂

Amethyst Studios Discord

Link to comment
Share on other sites

If i make the {_head} variable "Salmoniformes" instead of "%victim%" it gives me the correct head but if i place the head and break the head the name changes from "Salmon head" to Salmoniformes's head. Do you know how to fix that?

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