Rats! In Minecraft!
These are done with a resourcepack and custom model data—meaning that when you place them down, they become a carved pumpkin again.
You may need to extract the files and deleted the .DS_Store files, I can't remove them as I am on MacOS
Datapack that makes them a bit more silly!
Things added:
- Rat (Carved Pumpkin)
- Rat Food (Oxbow) (Sugar)
- Rat Spawn Egg (Ghast Spawn Egg)
These all need to be given via commands, commands are:
Rat
/give @p carved_pumpkin[item_name="Rat",custom_model_data=1] 1
Oxbow
/give @p minecraft:sugar[minecraft:custom_model_data=1, minecraft:item_name='{"text":"Oxbow"}']
Spawn Egg
/give @p ghast_spawn_egg[custom_name='"Rat Spawn Egg"',custom_model_data=1,entity_data={id:"minecraft:armor_stand",Invisible:1b,Tags:["Rat"],attributes:[{id:"minecraft:generic.follow_range",base:10},{id:"minecraft:generic.max_health",base:8}],DisabledSlots:4144959,ArmorItems:[{},{},{},{id:"minecraft:carved_pumpkin",count:1,components:{"minecraft:custom_model_data":1}}],CustomName:'"Rat"'}] 1
I will also put up the datapack that lets you lure the rats around with the Oxbow and also that makes the commands for these shorter! (Functions instead, basically just /function rat:(function)
instead)
To have a rat just exist, summon it into the head slot of an invisible armor stand
/summon armor_stand ~ ~ ~ {Invisible:1b,ArmorItems:[{},{},{},{id:"minecraft:carved_pumpkin",count:1,components:{"minecraft:custom_model_data":1}}]}
In order to use this with the datapack (for the luring of rats), rats summoned need to have a "Rat" tag on whatever mob they are on!
Eg.
/summon armor_stand ~ ~ ~ {Invisible:1b,Tags:["Rat"],ArmorItems:[{},{},{},{id:"minecraft:carved_pumpkin",count:1,components:{"minecraft:custom_model_data":1}}],CustomName:'"Rat"'}
You can also use Item Displays!
/summon item_display ~ ~ ~ {item_display:"head",Tags:["Rat"],CustomName:'"Rat"',item:{id:"minecraft:carved_pumpkin",count:1,components:{"minecraft:item_name":'"Rat"',"minecraft:custom_model_data":1}}}