Page 1 of 1
[mod] Trample path [trample_path]

Posted:
Sat Mar 11, 2017 10:15
by burli
This mod creates a trample path with slightly lowered nodes. You can create a path by patting the nodes with the shovel (rightclick) or optionally by walking over.
You can create path on dirt, sand, gravel and snow. Plants like grass, flowers and mushrooms have to trampled down first.
Github:
https://github.com/MarkuBu/trample_pathDownload:
https://github.com/MarkuBu/trample_path ... master.zipVideo:
https://youtu.be/wZWeagnbQM8Dependencies: default
Licence: DWYWPL



Re: [mod] Trample path [wip]

Posted:
Sat Mar 11, 2017 10:36
by DS-minetest
I like it!
Does grass grow on the path, so dirt_with_grass path? I hope not.
On the right I can see a gravel path, is it made out of gravel and shovel? You didn't write anything about it.
Re: [mod] Trample path [wip]

Posted:
Sat Mar 11, 2017 11:06
by burli
DS-minetest wrote:I like it!
Does grass grow on the path, so dirt_with_grass path? I hope not.
On the right I can see a gravel path, is it made out of gravel and shovel? You didn't write anything about it.
no, grass doesn't grow on the dirt.
This mod isn't finished yet. I think about adding a trample path in sand too. And I think all path will be made with the shovel.
I also think about to optionally create the trample path automatically. Every time you walk over a node a counter is incremented and after a while a path appears
Re: [mod] Trample path [wip]

Posted:
Sat Mar 11, 2017 11:30
by azekill_DIABLO
so cool! +1
Re: [mod] Trample path [wip]

Posted:
Sat Mar 11, 2017 11:58
by burli
My plan is, that dirt with grass is converted to normal dirt first and if you don't walk over the same node for a while it will be covered with grass again. If you walk over dirt it will be converted to the trample path. Maybe I change the texture for that
Re: [mod] Trample path [wip]

Posted:
Sat Mar 11, 2017 16:45
by burli
First release. Link in the first post
Re: [mod] Trample path [wip][trample_path]

Posted:
Sun Mar 12, 2017 09:04
by burli
Trample path now generated by walking. Video at first post
Suggestions for improvements are welcome
Re: [mod] Trample path [wip][trample_path]

Posted:
Sun Mar 12, 2017 10:19
by D00Med
Cool, nice mod
Re: [mod] Trample path [wip][trample_path]

Posted:
Sun Mar 12, 2017 10:39
by burli
Now you have to trample down grass, flowers and mushrooms first and you can disable the function to trample down everything by walking over
Re: [mod] Trample path [wip]

Posted:
Sun Mar 12, 2017 14:09
by burli
DS-minetest wrote:Does grass grow on the path, so dirt_with_grass path? I hope not.
I made a change to this. Dirt with grass will be converted to regular dirt first, so there is a chance that grass will grow over again.
You also have to trample down grass or flowers first, so there is a chance that grass or flowers spread over again.
I think about to add long running node timer to cover trample paths again with grass and unused paths will disappear over time. But this will be optional.
It is also easy to add support for mods and I would be happy if someone can test this on a server for me. Multiplayer should be supported
Re: [mod] Trample path [wip][trample_path]

Posted:
Sun Mar 12, 2017 15:18
by azekill_DIABLO
can we have a transition node somethin like 'dirt with step' ?
Re: [mod] Trample path [wip][trample_path]

Posted:
Sun Mar 12, 2017 16:01
by burli
azekill_DIABLO wrote:can we have a transition node somethin like 'dirt with step' ?
default:dirt is a transition node between dirt with grass and the trample path dirt. I tried the default footstep overlay, but that looks odd.
Any suggestion and contribution is welcome
Re: [mod] Trample path [wip][trample_path]

Posted:
Sun Mar 12, 2017 16:12
by DS-minetest
You could use "default:dirt_with_grass_and_footsteps". Then you don't need to register a new node.
Re: [mod] Trample path [wip][trample_path]

Posted:
Sun Mar 12, 2017 16:21
by burli
DS-minetest wrote:You could use "default:dirt_with_grass_and_footsteps". Then you don't need to register a new node.
I tried that, but I think the footstep overlay looks strange and it only works works for dirt with grass, not for dry grass or other nodes
Re: [mod] Trample path [trample_path]

Posted:
Mon Mar 13, 2017 06:43
by burli
Released the mod in version 0.1. I think it is finished
Re: [mod] Trample path [trample_path]

Posted:
Mon Mar 13, 2017 11:57
by azekill_DIABLO
i will fork it to make te node change to a dirt with step! thank you for contributing to minetest!
Re: [mod] Trample path [trample_path]

Posted:
Mon Mar 13, 2017 12:18
by ExeterDad
This is pretty cool!
Re: [mod] Trample path [trample_path]

Posted:
Mon Mar 13, 2017 12:25
by burli
azekill_DIABLO wrote:i will fork it to make te node change to a dirt with step! thank you for contributing to minetest!
If it looks good feel free to make a pull request
Re: [mod] Trample path [trample_path]

Posted:
Tue Mar 14, 2017 14:14
by ErrorNull
that's cool! i will try it. but question: so when i walk on grass of flowers, they will automatically disappear or be removed? or is that optional behavior? thanks!
Re: [mod] Trample path [trample_path]

Posted:
Tue Mar 14, 2017 14:24
by burli
In the init.lua file are some lines looking like this
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
nodes["flowers:rose"] = {count = 1, replace = "air"}
nodes["flowers:tulip"] = {count = 1, replace = "air"}
nodes["flowers:dandelion_yellow"] = {count = 1, replace = "air"}
nodes["flowers:geranium"] = {count = 1, replace = "air"}
nodes["flowers:viola"] = {count = 1, replace = "air"}
nodes["flowers:dandelion_white"] = {count = 1, replace = "air"}
nodes["flowers:mushroom_red"] = {count = 1, replace = "air"}
nodes["flowers:mushroom_brown"] = {count = 1, replace = "air"}
You can remove them or comment them out with -- at the beginning of each line. But then you will have flowers over your trample path