Changes

Jump to navigation Jump to search
→‎Sleep animation: + key must be lowercase
Line 242: Line 242:     
===Sleep animation===
 
===Sleep animation===
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
 
             }
 
             }
 
         }
 
         }
translators
8,437

edits

Navigation menu