Types/TreePrototypeVariation: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
m (word)
(Removed old prototype docs)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Basics ==
<div class="stub"><p>'''The prototype docs have moved to a new website with an improved format.''' This documentation page can now be found here: [https://lua-api.factorio.com/latest/types/TreeVariation.html https://lua-api.factorio.com/latest/types/TreeVariation.html]
Graphics definition for a [[Prototype/Tree]].
== Mandatory properties ==


=== trunk ===
</p><p>This wiki page is no longer updated and '''will be removed at some point in the future''', so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback [https://forums.factorio.com/viewforum.php?f=233 on the forums].</p></div>
'''Type''': [[Types/Animation]]
 
If <code>shadow</code> is not specified, this has to have one more frame than <code>leaves</code>.
 
=== leaves ===
'''Type''': [[Types/Animation]]
 
=== leaf_generation ===
'''Type''': [[Types/CreateParticleTriggerEffectItem]]
 
=== branch_generation ===
'''Type''': [[Types/CreateParticleTriggerEffectItem]]
 
== Optional properties ==
 
=== shadow ===
'''Type''': [[Types/Animation]]
 
Shadow must have 1 less frame_count than <code>leaves</code> (shadow.frame_count = leaves.frame_count + 1).
 
=== disable_shadow_distortion_beginning_at_frame ===
'''Type''': [[Types/uint32]]
 
Only loaded if <code>shadow</code> is present. Defaults to shadow.frame_count - 1.
 
=== normal ===
'''Type''': [[Types/Animation]]
 
Normal must have the same frame_count as <code>leaves</code> (normal.frame_count = leaves.frame_count).
 
=== overlay ===
'''Type''': [[Types/Animation]]
 
Overlay must have the same frame_count as <code>leaves</code> (overlay.frame_count = leaves.frame_count). Won't be tinted by the tree color unless apply_runtime_tint is set to true in the sprite definition. [https://forums.factorio.com/viewtopic.php?p=547758#p547758]
 
=== water_reflection ===
'''Type''': [[Types/WaterReflectionDefinition]]

Latest revision as of 14:32, 25 October 2024

The prototype docs have moved to a new website with an improved format. This documentation page can now be found here: https://lua-api.factorio.com/latest/types/TreeVariation.html

This wiki page is no longer updated and will be removed at some point in the future, so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback on the forums.