README.txt 2.0 KB

1234567891011121314151617181920212223242526272829
  1. Licenses: Source code MIT. Textures CC BY-SA (3.0)
  2. This mod was developed by paramat from 'desire path' mod by Casimir
  3. https://forum.minetest.net/viewtopic.php?id=3390
  4. Trail 0.3.1 by paramat
  5. Version 0.4 for Minetest 0.5 was developed by FaceDeer
  6. New trampled nodes can be registered with this API:
  7. trail.register_trample_node(trampleable_node_name, trample_def)
  8. trample_def:
  9. {
  10. trampled_node_name = , -- If this is not defined it defaults to the trampleable node name with "_trampled" appended.
  11. trampled_node_def_override = {}, -- If trampled_node_name doesn't exist a new node will be registered based on the definition of trampleable_node_name. Any properties in this table will be used to override properties ignored if trampled_node_name is a node that already exists.
  12. probability = 1, -- chance that stepping on this node will cause it to turn into the trampled version
  13. randomize_trampled_param2 = nil, -- if true, sets param2 of trampled node to math.random(0,3)
  14. erodes = true, -- sets the trampled node up to erode back into the non-trampled verison. ignored if trampled_node_name is a node that already exists, since that may already have an erosion target established
  15. add_footprint_overlay = true, -- Applies the footprint texture over the +Y tile of the trampleable node. ignored if trampled_node_name is a node that already exists
  16. hard_pack_node_name = nil, -- If the trampled node is walked on again this is the node that it can get trampled into further. ignored if trampled_node_name is a node that already exists, since it's expected this has already been established
  17. hard_pack_probability = 0.1, -- The probability that walking on a trampled node will turn it into the hard-packed node. ignored if trampled_node_name is a node that already exists
  18. }
  19. If you've defined a hard_pack_node and want to have it able to erode back to base soil, you can use this callback to manually add it to the erosion system:
  20. trail.register_erosion(source_node_name, destination_node_name)
  21. Note that the source_node should be in group trail_erodes or an error will be thrown.