mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2026-01-02 14:15:18 +01:00
MAJ plantlife_modpack
(garde les modifs antérieur sur les « mushrooms » et sur les bugfixs liés au mod « areas »)
This commit is contained in:
43
mods/plantlife_modpack/dryplants/reedmace.lua
Executable file → Normal file
43
mods/plantlife_modpack/dryplants/reedmace.lua
Executable file → Normal file
@@ -57,21 +57,21 @@ abstract_dryplants.grow_reedmace_water = function(pos)
|
||||
local pos_04 = {x = pos.x, y = pos.y + 4, z = pos.z}
|
||||
minetest.add_entity(pos_01, "dryplants:reedmace_water_entity")
|
||||
if minetest.get_node(pos_02).name == "air" then -- bug fix
|
||||
if minetest.get_node(pos_03).name ~= "air" then
|
||||
minetest.set_node(pos_02, {name="dryplants:reedmace_top"})
|
||||
elseif minetest.get_node(pos_04).name ~= "air" then
|
||||
minetest.set_node(pos_02, {name="dryplants:reedmace_height_2"})
|
||||
elseif size == 1 then
|
||||
minetest.set_node(pos_02, {name="dryplants:reedmace_top"})
|
||||
elseif size == 2 then
|
||||
minetest.set_node(pos_02, {name="dryplants:reedmace_height_2"})
|
||||
elseif size == 3 then
|
||||
if spikes == 1 then
|
||||
minetest.set_node(pos_02, {name="dryplants:reedmace_height_3_spikes"})
|
||||
else
|
||||
minetest.set_node(pos_02, {name="dryplants:reedmace_height_3"})
|
||||
end
|
||||
end
|
||||
if minetest.get_node(pos_03).name ~= "air" then
|
||||
minetest.set_node(pos_02, {name="dryplants:reedmace_top"})
|
||||
elseif minetest.get_node(pos_04).name ~= "air" then
|
||||
minetest.set_node(pos_02, {name="dryplants:reedmace_height_2"})
|
||||
elseif size == 1 then
|
||||
minetest.set_node(pos_02, {name="dryplants:reedmace_top"})
|
||||
elseif size == 2 then
|
||||
minetest.set_node(pos_02, {name="dryplants:reedmace_height_2"})
|
||||
elseif size == 3 then
|
||||
if spikes == 1 then
|
||||
minetest.set_node(pos_02, {name="dryplants:reedmace_height_3_spikes"})
|
||||
else
|
||||
minetest.set_node(pos_02, {name="dryplants:reedmace_height_3"})
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -125,7 +125,7 @@ minetest.register_node("dryplants:reedmace_top", {
|
||||
minetest.register_node("dryplants:reedmace_height_2", {
|
||||
description = "Reedmace, height: 2",
|
||||
drawtype = "plantlike",
|
||||
visual_scale = 2,
|
||||
visual_scale = 2.8,
|
||||
paramtype = "light",
|
||||
tiles = {"dryplants_reedmace_height_2.png"},
|
||||
inventory_image = "dryplants_reedmace_top.png",
|
||||
@@ -148,7 +148,7 @@ minetest.register_node("dryplants:reedmace_height_2", {
|
||||
minetest.register_node("dryplants:reedmace_height_3", {
|
||||
description = "Reedmace, height: 3",
|
||||
drawtype = "plantlike",
|
||||
visual_scale = 2,
|
||||
visual_scale = 2.8,
|
||||
paramtype = "light",
|
||||
tiles = {"dryplants_reedmace_height_3.png"},
|
||||
inventory_image = "dryplants_reedmace_top.png",
|
||||
@@ -171,7 +171,7 @@ minetest.register_node("dryplants:reedmace_height_3", {
|
||||
minetest.register_node("dryplants:reedmace_height_3_spikes", {
|
||||
description = "Reedmace, height: 3 & Spikes",
|
||||
drawtype = "plantlike",
|
||||
visual_scale = 2,
|
||||
visual_scale = 2.8,
|
||||
paramtype = "light",
|
||||
tiles = {"dryplants_reedmace_height_3_spikes.png"},
|
||||
inventory_image = "dryplants_reedmace_top.png",
|
||||
@@ -308,9 +308,10 @@ minetest.register_node("dryplants:reedmace_water", {
|
||||
-- REEDMACE WATER ENTITY
|
||||
-----------------------------------------------------------------------------------------------
|
||||
minetest.register_entity("dryplants:reedmace_water_entity",{
|
||||
visual = "wielditem",
|
||||
visual_size = {x=2/3, y=2/3, z=2/3},
|
||||
textures = {"dryplants:reedmace_water"},
|
||||
visual = "mesh",
|
||||
mesh = "plantlike.obj",
|
||||
visual_size = {x=10, y=10},
|
||||
textures = {"dryplants_reedmace_water.png"},
|
||||
collisionbox = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3},
|
||||
on_punch = function(self, puncher)
|
||||
if puncher:is_player() and puncher:get_inventory() then
|
||||
|
||||
Reference in New Issue
Block a user