mirror of
https://github.com/HybridDog/riesenpilz.git
synced 2025-06-28 22:26:24 +02:00
Compare commits
5 Commits
v1.0.0
...
nalc-1.2.0
Author | SHA1 | Date | |
---|---|---|---|
06525f43eb | |||
cd44a194ec | |||
739d63eeda | |||
35687b0957 | |||
d319e4a9d5 |
13
init.lua
13
init.lua
@ -895,7 +895,7 @@ local head_sounds = default.node_sound_wood_defaults({
|
|||||||
dig = {name="riesenpilz_head", gain=0.2},
|
dig = {name="riesenpilz_head", gain=0.2},
|
||||||
dug = {name="riesenpilz_stem", gain=0.1}
|
dug = {name="riesenpilz_stem", gain=0.1}
|
||||||
})
|
})
|
||||||
local add_fence = minetest.register_fence
|
local add_fence = default.register_fence
|
||||||
local node_groups = {oddly_breakable_by_hand=3, fall_damage_add_percent=-80, bouncy=10}
|
local node_groups = {oddly_breakable_by_hand=3, fall_damage_add_percent=-80, bouncy=10}
|
||||||
|
|
||||||
for _,i in pairs({
|
for _,i in pairs({
|
||||||
@ -1034,7 +1034,14 @@ for _,i in pairs({
|
|||||||
|
|
||||||
if add_fence
|
if add_fence
|
||||||
and i.fence ~= false then
|
and i.fence ~= false then
|
||||||
add_fence({fence_of = nodename})
|
add_fence(
|
||||||
|
nodename.."_fence",
|
||||||
|
{
|
||||||
|
material = nodename,
|
||||||
|
texture = textures[#textures],
|
||||||
|
groups = node_groups,
|
||||||
|
sounds = sounds,
|
||||||
|
})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -1267,5 +1274,5 @@ local msg = "[riesenpilz] loaded after ca. "..time
|
|||||||
if time > 0.05 then
|
if time > 0.05 then
|
||||||
print(msg)
|
print(msg)
|
||||||
else
|
else
|
||||||
minetest.log("info", msg)
|
minetest.log("action", msg)
|
||||||
end
|
end
|
||||||
|
@ -19,7 +19,7 @@ riesenpilz.inform_all = false--minetest.is_singleplayer()
|
|||||||
riesenpilz.max_spam = 2
|
riesenpilz.max_spam = 2
|
||||||
|
|
||||||
--3d apple
|
--3d apple
|
||||||
riesenpilz.change_apple = true
|
riesenpilz.change_apple = false
|
||||||
|
|
||||||
--disallows growing a mushroom if it not every node would have a free place
|
--disallows growing a mushroom if it not every node would have a free place
|
||||||
riesenpilz.giant_restrict_area = false
|
riesenpilz.giant_restrict_area = false
|
||||||
|
Reference in New Issue
Block a user