Changes

moved my note about hardcoded torch sprite index to the torch_item context tag so that it's more likely to be seen by people who need it
Line 769: Line 769:  
| <samp>campfire_item</samp>
 
| <samp>campfire_item</samp>
 
| Marks the item as a [[campfire]]. If the item also has the <samp>torch_item</samp> context tag, when it's placed in the world and turned on...
 
| Marks the item as a [[campfire]]. If the item also has the <samp>torch_item</samp> context tag, when it's placed in the world and turned on...
* campfire flames are drawn over it;
+
* Campfire flames are drawn over it;
* if the item is [[Modding:Items#Big craftables|big craftable]], light is emitted from its center instead of the top.
+
* If the item is [[Modding:Items#Big craftables|big craftable]], light is emitted from its center instead of the top.
 
|-
 
|-
 
| <samp>fish_pond_ignore</samp>
 
| <samp>fish_pond_ignore</samp>
Line 800: Line 800:  
| <samp>torch_item</samp>
 
| <samp>torch_item</samp>
 
| Marks the item as a [[torch]], which lets the player turn it on/off to emit light.
 
| Marks the item as a [[torch]], which lets the player turn it on/off to emit light.
 +
* Items with the "torch_item" context tag will default to sprite index 93 upon purchase due to hardcoded torch behaviour. To avoid visual bugs, custom torches should be on sprite index 93 of their tilesheet.
    
See also <samp>campfire_item</samp>.
 
See also <samp>campfire_item</samp>.
Line 1,121: Line 1,122:  
* Named [[buffs]] (like [[Oil of Garlic]], [[Life Elixir]], or [[Buffs#Tipsy|Tipsy]]) are implemented in code and can't be set in the food buff fields.
 
* Named [[buffs]] (like [[Oil of Garlic]], [[Life Elixir]], or [[Buffs#Tipsy|Tipsy]]) are implemented in code and can't be set in the food buff fields.
 
* The spritesheet and data have items that can't normally be found in the player inventory (like twigs and lumber), and some sprites have no corresponding item data. There are also multiple entries for ''weeds'' and ''stone'' corresponding to different sprites, but the player can only normally obtain one ''stone'' item (index 390) and no ''weeds'' items.
 
* The spritesheet and data have items that can't normally be found in the player inventory (like twigs and lumber), and some sprites have no corresponding item data. There are also multiple entries for ''weeds'' and ''stone'' corresponding to different sprites, but the player can only normally obtain one ''stone'' item (index 390) and no ''weeds'' items.
* Custom items with the "torch_item" context tag will default to sprite index 93 upon purchase due to hardcoded torch behaviour. To avoid visual bugs, custom torches should be on sprite index 93 of their tilesheet.
      
==Big craftables==
 
==Big craftables==
24

edits