Started by
Rakwist2
on
Topic category: Mod design feedback
Hello,
What i want to do that when villager dies, it drops a villager skull, wich is a placeable block like other skulls but with slightly diffrent model. In the skull's description in the inventory will contain villagers name and if he disn't have one, the name will be "Unnamed". In the description there will also be the profession of the villager and if it's possible, the date when the villager died. The skull will be unstackable, fire immune and of course placeble.
Does anyone have an idea how to do it? I have no modding experience whatsoever.
Thanks in advance for help.
professions are NBT Tags so should be possible, name I don't know, but basically create the skull for all the Professions and on trigger Entity Dies
if Event/Target Entity is type Villager
do if get Event/Target Entity Tag "THE_PROFESSION"
do spawn gem at X Y Z SKULL_OF_THE_VILLAGER
else if get Event/Target Entity Tag "THE_PROFESSION_2"
do spawn gem at X Y Z SKULL_OF_THE_VILLAGER_2
and do this for all professions