1
0
zrcadlo https://github.com/mt-mods/plantlife_modpack.git synchronizováno 2025-11-05 07:55:31 +01:00

2 Commity

Autor SHA1 Zpráva Datum
VanessaE
622016713e respect protection when placing twigs 2020-12-02 10:05:01 -05:00
VanessaE
9963e588d6 add minimum minetest version key for contentdb 2020-06-03 13:00:31 -04:00
2 změnil soubory, kde provedl 9 přidání a 0 odebrání

1
modpack.conf Normální soubor
Zobrazit soubor

@@ -0,0 +1 @@
min_minetest_version = 5.2.0

Zobrazit soubor

@@ -42,6 +42,14 @@ for i in pairs(NoDe) do
liquids_pointable = true,
on_place = function(itemstack, placer, pointed_thing)
local pt = pointed_thing
if not placer then return end
local playername = placer:get_player_name()
if minetest.is_protected(pt.above, playername) then
minetest.record_protection_violation(pt.above, playername)
return
end
local direction = minetest.dir_to_facedir(placer:get_look_dir())
if minetest.get_node(pt.above).name=="air" then
minetest.swap_node(pt.above, {name="trunks:twig_"..math.random(1,4), param2=direction})