zrcadlo
https://github.com/D00Med/scifi_nodes.git
synchronizováno 2025-06-30 23:20:41 +02:00
More plants
>added new plants >added damage for plant table >removed selection box from plant pots
Tento commit je obsažen v:
20
init.lua
20
init.lua
@ -388,18 +388,23 @@ for _, row in ipairs(node.types) do
|
||||
end
|
||||
|
||||
node.plants = {
|
||||
{"flower1", "Glow flower", 1, 50},
|
||||
{"flower2", "Pink flower", 1.5, 10},
|
||||
{"flower3", "Triffid", 2, 0},
|
||||
{"plant1", "Bulb plant", 1, 0},
|
||||
{"plant2", "Trap plant", 1.5, 30},
|
||||
{"flower1", "Glow Flower", 1,0, 50},
|
||||
{"flower2", "Pink Flower", 1.5,0, 10},
|
||||
{"flower3", "Triffid", 2,5, 0},
|
||||
{"flower4", "Weeping flower", 1.5,0, 0},
|
||||
{"plant1", "Bulb Plant", 1,0, 0},
|
||||
{"plant2", "Trap Plant", 1.5,0, 30},
|
||||
{"plant3", "Blue Jelly Plant", 1.2,0, 10},
|
||||
{"plant4", "Green Jelly Plant", 1.2,0, 10},
|
||||
{"plant5", "Fern Plant", 1.7,0, 0},
|
||||
}
|
||||
|
||||
for _, row in ipairs(node.plants) do
|
||||
local name = row[1]
|
||||
local desc = row[2]
|
||||
local size = row[3]
|
||||
local light = row[4]
|
||||
local dmg = row[4]
|
||||
local light = row[5]
|
||||
-- Node Definition
|
||||
minetest.register_node("scifi_nodes:"..name, {
|
||||
description = desc,
|
||||
@ -409,6 +414,9 @@ for _, row in ipairs(node.plants) do
|
||||
groups = {snappy=1, oddly_breakable_by_hand=1, dig_immediate=3, flora=1},
|
||||
paramtype = "light",
|
||||
visual_scale = size,
|
||||
buildable_to = true,
|
||||
walkable = false,
|
||||
damage_per_second = dmg,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
|
@ -22,7 +22,7 @@ minetest.register_node("scifi_nodes:pot_lid", {
|
||||
sunlight_propagates = true,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -1, -0.5, 0.5, 0.1, 0.5}
|
||||
fixed = {0, 0, 0, 0, 0, 0}
|
||||
},
|
||||
collision_box = {
|
||||
type = "fixed",
|
||||
|
binární
textures/scifi_nodes_flower3.png
binární
textures/scifi_nodes_flower3.png
Binární soubor nebyl zobrazen.
Před Šířka: | Výška: | Velikost: 733 B Za Šířka: | Výška: | Velikost: 1006 B |
binární
textures/scifi_nodes_flower4.png
Normální soubor
binární
textures/scifi_nodes_flower4.png
Normální soubor
Binární soubor nebyl zobrazen.
Za Šířka: | Výška: | Velikost: 565 B |
binární
textures/scifi_nodes_plant3.png
Normální soubor
binární
textures/scifi_nodes_plant3.png
Normální soubor
Binární soubor nebyl zobrazen.
Za Šířka: | Výška: | Velikost: 257 B |
binární
textures/scifi_nodes_plant4.png
Normální soubor
binární
textures/scifi_nodes_plant4.png
Normální soubor
Binární soubor nebyl zobrazen.
Za Šířka: | Výška: | Velikost: 261 B |
binární
textures/scifi_nodes_plant5.png
Normální soubor
binární
textures/scifi_nodes_plant5.png
Normální soubor
Binární soubor nebyl zobrazen.
Za Šířka: | Výška: | Velikost: 863 B |
Odkázat v novém úkolu
Zablokovat Uživatele