STOP THE EVIL "LEAVES ARE SOLID" THING

master
Emoji 2022-08-27 10:33:51 +08:00
parent 91472283e5
commit 3ba14093d4
4 changed files with 15 additions and 0 deletions

2
README.md Normal file
View File

@ -0,0 +1,2 @@
# Leaves are solid blocks...
That does not make any sense, right? That's what this mod do!

9
init.lua Normal file
View File

@ -0,0 +1,9 @@
for name,def in pairs(minetest.registered_nodes) do
if def.groups and def.groups.leaves then
minetest.log("action","[soft_leaves] Modifying " .. name)
local groups = table.copy(def.groups)
groups.bouncy = 30
groups.fall_damage_add_percent = -30
minetest.override_item(name,{groups=groups})
end
end

4
mod.conf Normal file
View File

@ -0,0 +1,4 @@
name = soft_leaves
title = Soft Leaves
description = Make leaves a little bit bouncy and soft
depends = default

BIN
screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 973 KiB