write something there

This commit is contained in:
N-Nachtigal 2025-05-04 16:01:41 +02:00
commit b4b6c08f4f
8546 changed files with 309825 additions and 0 deletions

9
mods/leafstride/LICENSE Normal file
View file

@ -0,0 +1,9 @@
MIT License
Copyright © 2023 EmptyStar <https://github.com/EmptyStar>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

11
mods/leafstride/README.md Normal file
View file

@ -0,0 +1,11 @@
Leafstride
==========
Climb through trees and glide through forests with Leafstride! This mod gives natural substance to leaves, allowing players to climb and walk through all forms of leaves. Although Leafstride allows players to move through leaves, the dense foliage will slow players down as they pass through -- but as a bonus, this also allows leaves to gently break a player's fall!
How to Use
----------
Simply download and install Leafstride and it will automatically apply to all of the leaves in your world. Every node in your world that has `group:leaves` will be modified.
The movement resistance caused by leaves can be configured via Settings > All Settings > Content: Mods > Leafstride. The value can range from 0 to 7; a value of 0 will not slow players down at all while a value of 7 will slow players down greatly. The default value of 2 offers a good middle ground.

15
mods/leafstride/init.lua Normal file
View file

@ -0,0 +1,15 @@
-- Get movement speed from settings if defined
local resistance = tonumber(minetest.settings:get("leafstride_move_resistance") or 2)
-- Apply movement attributes to leaves after all mods have been loaded
minetest.register_on_mods_loaded(function()
for node,def in pairs(minetest.registered_nodes) do
if def.groups and def.groups.leaves and def.groups.leaves > 0 then
minetest.override_item(node,{
walkable = false,
climbable = true,
move_resistance = resistance,
})
end
end
end)

4
mods/leafstride/mod.conf Normal file
View file

@ -0,0 +1,4 @@
name = leafstride
title = Leafstride
description = Allows players to climb and walk through leaves
author = EmptyStar

View file

@ -0,0 +1,2 @@
# The amount of node move_resistance to apply to leaves. Value can range from 0 (leaves do not slow down players) to 7 (leaves greatly slow down players).
leafstride_move_resistance (Leaves movement resistance) int 2 0 7