When the NPC goes to bed, they'll play the looping sleep animation set via <samp>{{t|name}}_sleep</samp> in <samp>Data/animationDescriptions</samp>, if it exists. For example, this content pack adds a sleep animation for an NPC named 'Pufferbob':
+
When the NPC goes to bed, they'll play the looping sleep animation set via <samp>{{t|lowercase NPC name}}_sleep</samp> in <samp>Data/animationDescriptions</samp>, if it exists. For example, this content pack adds a sleep animation for an NPC named 'Pufferbob':
{{#tag:syntaxhighlight|
{{#tag:syntaxhighlight|
{
{
Line 251:
Line 251:
"Target": "Data/animationDescriptions",
"Target": "Data/animationDescriptions",
"Entries": {
"Entries": {
−
"Pufferbob_sleep": "50/50/50"
+
"pufferbob_sleep": "50/50/50" // note: make name lowercase