Well it works as well as yours, only minor things changed... minecraft can read different things for arguments; <SkullOwner:Eglaios> and <SkullOwner:"Eglaios"> are both valid, for example.
Also the player head won't be able to protect you even though it has the protection enchantment.
Yes, protection on heads works fine. However, as I saw on the wiki, protection enchantment's max damage reduction is capped, and wearing more than a specific level does not reduce any more damage. More, protection does not affect all damage sources.
For getting a complete damage mitigation, the best is a system giving the player resistance 5 effect (100% damage reduction on all damage sources except void and /kill).
Rollback Post to RevisionRollBack
I got into chiptune music composition.
You can listen to them on my Youtube channel : https://www.youtube.com/channel/UCjWYbJGk7nvNDbnCvMlZGkw
Descriptions are in french, you'd just need some google translation copy-paste...
Also made some more or less complicated datapacks, shared here (planetminecraft).
Fun fact : using custom armor content like heads, you can even make a resurrection system! As soon as I thought about it, I created a datapack allowing to instantly heal players when they get deadly damage, preventing their death, as a totem of undying would do, but this require a changeable armor slot :
As I needed an armor slot to make it work, I told the player was a cat, so it gets an unremovable cat head and "helmets don't fit on it"...
I never found anything like that as far as I searched, it's totally unique... but it seems to be quite unpopular...
In order to prevent deadly damage, you give resistance 5 to a player, then use a score to store any damage this player resisted.
Each time this score is greater than 0, you replace a piece of armor (the cat's head, which is permanent in the pack) by a similar item, but with a MaxHealth attribute equal to -(PlayerHealth - DamageResisted) (I hardcoded each different head for that).
Then, you refresh the player's health (I used a health boost effect), reset damage score and you give back a regular head, displaying again the 10 hearts. Now the player must have lost health as if he really took damage.
And if (PlayerHealth - DamageResisted) < 1 then you fully heal the player and reset its damage score, as it means deadly damage.
Basically, what it does :
-Register damage taken
-If (PlayerHealth - DamageTaken) < 1, resurrect
-If (PlayerHealth - DamageTaken) > 0 give damage
-Reset damage taken
It's like getting true damage converted to fake damage to deal real damage... so funny. I hope this trick will be more well-known...
Rollback Post to RevisionRollBack
I got into chiptune music composition.
You can listen to them on my Youtube channel : https://www.youtube.com/channel/UCjWYbJGk7nvNDbnCvMlZGkw
Descriptions are in french, you'd just need some google translation copy-paste...
Also made some more or less complicated datapacks, shared here (planetminecraft).
I was wondering if you can enchant a player head up to protection 14567223, etc.
It would be cool to wear a custom head with an enchant on it
You can enchant it but it will not have the enchantment animation when worn.
Command block engineer // Developer // #TeamTrees
That's not the right command. This is:
/give @s minecraft:player_head{Enchantments:[{id: protection,lvl:14567223}]} 1
Also the player head won't be able to protect you even though it has the protection enchantment.
Well it works as well as yours, only minor things changed... minecraft can read different things for arguments; <SkullOwner:Eglaios> and <SkullOwner:"Eglaios"> are both valid, for example.
Yes, protection on heads works fine. However, as I saw on the wiki, protection enchantment's max damage reduction is capped, and wearing more than a specific level does not reduce any more damage. More, protection does not affect all damage sources.
For getting a complete damage mitigation, the best is a system giving the player resistance 5 effect (100% damage reduction on all damage sources except void and /kill).
I got into chiptune music composition.
You can listen to them on my Youtube channel :
https://www.youtube.com/channel/UCjWYbJGk7nvNDbnCvMlZGkw
Descriptions are in french, you'd just need some google translation copy-paste...
Also made some more or less complicated datapacks, shared here (planetminecraft).
Fun fact : using custom armor content like heads, you can even make a resurrection system! As soon as I thought about it, I created a datapack allowing to instantly heal players when they get deadly damage, preventing their death, as a totem of undying would do, but this require a changeable armor slot :
https://www.planetminecraft.com/data-pack/eglaios-s-cats-have-nine-lives/
As I needed an armor slot to make it work, I told the player was a cat, so it gets an unremovable cat head and "helmets don't fit on it"...
I never found anything like that as far as I searched, it's totally unique... but it seems to be quite unpopular...
In order to prevent deadly damage, you give resistance 5 to a player, then use a score to store any damage this player resisted.
Each time this score is greater than 0, you replace a piece of armor (the cat's head, which is permanent in the pack) by a similar item, but with a MaxHealth attribute equal to -(PlayerHealth - DamageResisted) (I hardcoded each different head for that).
Then, you refresh the player's health (I used a health boost effect), reset damage score and you give back a regular head, displaying again the 10 hearts. Now the player must have lost health as if he really took damage.
And if (PlayerHealth - DamageResisted) < 1 then you fully heal the player and reset its damage score, as it means deadly damage.
Basically, what it does :
-Register damage taken
-If (PlayerHealth - DamageTaken) < 1, resurrect
-If (PlayerHealth - DamageTaken) > 0 give damage
-Reset damage taken
It's like getting true damage converted to fake damage to deal real damage... so funny. I hope this trick will be more well-known...
I got into chiptune music composition.
You can listen to them on my Youtube channel :
https://www.youtube.com/channel/UCjWYbJGk7nvNDbnCvMlZGkw
Descriptions are in french, you'd just need some google translation copy-paste...
Also made some more or less complicated datapacks, shared here (planetminecraft).