mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2025-07-13 14:00:29 +02:00
isolate primordial item default dependencies to one file, add stub translations
This commit is contained in:
@ -11,14 +11,14 @@ minetest.register_node("df_primordial_items:fern_1", {
|
||||
inventory_image = "dfcaverns_jungle_fern_01.png",
|
||||
wield_image = "dfcaverns_jungle_fern_01.png",
|
||||
groups = {snappy = 3, flora = 1, attached_node = 1, flammable = 1, primordial_jungle_plant = 1, light_sensitive_fungus = 13},
|
||||
_dfcaverns_dead_node = "default:dry_shrub",
|
||||
_dfcaverns_dead_node = df_primordial_items.node_names.dry_shrub,
|
||||
visual_scale = 1.69,
|
||||
paramtype = "light",
|
||||
drawtype = "plantlike",
|
||||
buildable_to = true,
|
||||
is_ground_content = false,
|
||||
walkable = false,
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
use_texture_alpha = true,
|
||||
sunlight_propagates = true,
|
||||
})
|
||||
@ -32,13 +32,13 @@ minetest.register_node("df_primordial_items:fern_2", {
|
||||
inventory_image = "dfcaverns_jungle_fern_02.png",
|
||||
wield_image = "dfcaverns_jungle_fern_02.png",
|
||||
groups = {snappy = 3, flora = 1, attached_node = 1, flammable = 1, primordial_jungle_plant = 1, light_sensitive_fungus = 13},
|
||||
_dfcaverns_dead_node = "default:dry_shrub",
|
||||
_dfcaverns_dead_node = df_primordial_items.node_names.dry_shrub,
|
||||
paramtype = "light",
|
||||
drawtype = "plantlike",
|
||||
buildable_to = true,
|
||||
is_ground_content = false,
|
||||
walkable = false,
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
use_texture_alpha = true,
|
||||
sunlight_propagates = true,
|
||||
})
|
||||
@ -54,14 +54,14 @@ minetest.register_node("df_primordial_items:glow_plant_1", {
|
||||
inventory_image = "dfcaverns_jungle_flower_01.png",
|
||||
wield_image = "dfcaverns_jungle_flower_01.png",
|
||||
groups = {snappy = 3, flora = 1, attached_node = 1, flammable = 1, primordial_jungle_plant = 1, light_sensitive_fungus = 13},
|
||||
_dfcaverns_dead_node = "default:dry_shrub",
|
||||
_dfcaverns_dead_node = df_primordial_items.node_names.dry_shrub,
|
||||
paramtype = "light",
|
||||
drawtype = "plantlike",
|
||||
buildable_to = true,
|
||||
is_ground_content = false,
|
||||
walkable = false,
|
||||
light_source = 6,
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
use_texture_alpha = true,
|
||||
sunlight_propagates = true,
|
||||
})
|
||||
@ -74,14 +74,14 @@ minetest.register_node("df_primordial_items:glow_plant_2", {
|
||||
inventory_image = "dfcaverns_jungle_glow_plant_01.png",
|
||||
wield_image = "dfcaverns_jungle_glow_plant_01.png",
|
||||
groups = {snappy = 3, flora = 1, attached_node = 1, flammable = 1, primordial_jungle_plant = 1, light_sensitive_fungus = 13},
|
||||
_dfcaverns_dead_node = "default:dry_shrub",
|
||||
_dfcaverns_dead_node = df_primordial_items.node_names.dry_shrub,
|
||||
paramtype = "light",
|
||||
drawtype = "plantlike",
|
||||
buildable_to = true,
|
||||
is_ground_content = false,
|
||||
walkable = false,
|
||||
light_source = 6,
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
use_texture_alpha = true,
|
||||
sunlight_propagates = true,
|
||||
})
|
||||
@ -94,14 +94,14 @@ minetest.register_node("df_primordial_items:glow_plant_3", {
|
||||
inventory_image = "dfcaverns_jungle_glow_plant_02.png",
|
||||
wield_image = "dfcaverns_jungle_glow_plant_02.png",
|
||||
groups = {snappy = 3, flora = 1, attached_node = 1, flammable = 1, primordial_jungle_plant = 1, light_sensitive_fungus = 13},
|
||||
_dfcaverns_dead_node = "default:dry_shrub",
|
||||
_dfcaverns_dead_node = df_primordial_items.node_names.dry_shrub,
|
||||
paramtype = "light",
|
||||
drawtype = "plantlike",
|
||||
buildable_to = true,
|
||||
is_ground_content = false,
|
||||
walkable = false,
|
||||
light_source = 6,
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
use_texture_alpha = true,
|
||||
sunlight_propagates = true,
|
||||
})
|
||||
@ -118,13 +118,13 @@ minetest.register_node("df_primordial_items:jungle_grass_1", {
|
||||
inventory_image = "dfcaverns_jungle_grass_01.png",
|
||||
wield_image = "dfcaverns_jungle_grass_01.png",
|
||||
groups = {snappy = 3, flora = 1, attached_node = 1, flammable = 1, primordial_jungle_plant = 1, light_sensitive_fungus = 13},
|
||||
_dfcaverns_dead_node ="default:dry_grass_3",
|
||||
_dfcaverns_dead_node = df_primordial_items.node_names.dry_grass_3,
|
||||
paramtype = "light",
|
||||
drawtype = "plantlike",
|
||||
buildable_to = true,
|
||||
is_ground_content = false,
|
||||
walkable = false,
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
use_texture_alpha = true,
|
||||
sunlight_propagates = true,
|
||||
})
|
||||
@ -137,14 +137,14 @@ minetest.register_node("df_primordial_items:jungle_grass_2", {
|
||||
inventory_image = "dfcaverns_jungle_grass_02.png",
|
||||
wield_image = "dfcaverns_jungle_grass_02.png",
|
||||
groups = {snappy = 3, flora = 1, attached_node = 1, flammable = 1, primordial_jungle_plant = 1, light_sensitive_fungus = 13},
|
||||
_dfcaverns_dead_node ="default:dry_grass_4",
|
||||
_dfcaverns_dead_node = df_primordial_items.node_names.dry_grass_4,
|
||||
paramtype = "light",
|
||||
drawtype = "plantlike",
|
||||
buildable_to = true,
|
||||
is_ground_content = false,
|
||||
walkable = false,
|
||||
place_param2 = 3,
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
use_texture_alpha = true,
|
||||
sunlight_propagates = true,
|
||||
})
|
||||
@ -157,14 +157,14 @@ minetest.register_node("df_primordial_items:jungle_grass_3", {
|
||||
inventory_image = "dfcaverns_jungle_grass_03.png",
|
||||
wield_image = "dfcaverns_jungle_grass_03.png",
|
||||
groups = {snappy = 3, flora = 1, attached_node = 1, flammable = 1, primordial_jungle_plant = 1, light_sensitive_fungus = 13},
|
||||
_dfcaverns_dead_node ="default:dry_grass_4",
|
||||
_dfcaverns_dead_node = df_primordial_items.node_names.dry_grass_4,
|
||||
paramtype = "light",
|
||||
drawtype = "plantlike",
|
||||
buildable_to = true,
|
||||
is_ground_content = false,
|
||||
walkable = false,
|
||||
place_param2 = 3,
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
use_texture_alpha = true,
|
||||
sunlight_propagates = true,
|
||||
})
|
||||
@ -186,7 +186,7 @@ minetest.register_node("df_primordial_items:jungle_ivy", {
|
||||
place_param2 = 3,
|
||||
--paramtype2 = "wallmouinted",
|
||||
--drawtype = "signlike",
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
use_texture_alpha = true,
|
||||
sunlight_propagates = true,
|
||||
is_ground_content = false,
|
||||
@ -213,7 +213,7 @@ minetest.register_node("df_primordial_items:jungle_mushroom_1", {
|
||||
buildable_to = true,
|
||||
is_ground_content = false,
|
||||
walkable = false,
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
use_texture_alpha = true,
|
||||
sunlight_propagates = true,
|
||||
})
|
||||
@ -231,7 +231,7 @@ minetest.register_node("df_primordial_items:jungle_mushroom_2", {
|
||||
buildable_to = true,
|
||||
is_ground_content = false,
|
||||
walkable = false,
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
use_texture_alpha = true,
|
||||
sunlight_propagates = true,
|
||||
})
|
||||
@ -246,15 +246,15 @@ minetest.register_node("df_primordial_items:dirt_with_jungle_grass", {
|
||||
tiles = {"dfcaverns_jungle_plant_grass_node_01.png"},
|
||||
paramtype = "light",
|
||||
groups = {crumbly = 3, soil = 1, light_sensitive_fungus = 13},
|
||||
_dfcaverns_dead_node = "default:dirt",
|
||||
_dfcaverns_dead_node = df_primordial_items.node_names.dirt,
|
||||
is_ground_content = false,
|
||||
drops = "default:dirt",
|
||||
sounds = default.node_sound_dirt_defaults(),
|
||||
drops = df_primordial_items.node_names.dirt,
|
||||
sounds = df_primordial_items.sounds.dirt,
|
||||
})
|
||||
|
||||
minetest.register_abm{
|
||||
label = "df_primordial_items:jungle_grass_spread",
|
||||
nodenames = {"default:dirt"},
|
||||
nodenames = {df_primordial_items.node_names.dirt},
|
||||
neighbors = {"df_mapitems:dirt_with_jungle_grass"},
|
||||
interval = 60,
|
||||
chance = 50,
|
||||
@ -275,7 +275,7 @@ minetest.register_node("df_primordial_items:plant_matter", {
|
||||
is_ground_content = false,
|
||||
paramtype = "light",
|
||||
groups = {crumbly = 3, soil = 1, flammable = 1},
|
||||
sounds = default.node_sound_dirt_defaults(),
|
||||
sounds = df_primordial_items.sounds.dirt,
|
||||
on_timer = function(pos, elapsed)
|
||||
if elapsed > 130 then
|
||||
-- the timer triggered more than ten seconds after it was suppposed to,
|
||||
@ -298,7 +298,7 @@ minetest.register_node("df_primordial_items:packed_roots", {
|
||||
paramtype2 = "facedir",
|
||||
is_ground_content = false,
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
sounds = df_primordial_items.sounds.wood,
|
||||
})
|
||||
|
||||
|
||||
@ -347,7 +347,7 @@ minetest.register_node("df_primordial_items:jungle_roots_1", {
|
||||
groups = {snappy = 3, flora = 1, flammable = 1, vines = 1},
|
||||
paramtype = "light",
|
||||
drawtype = "plantlike",
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
use_texture_alpha = true,
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
@ -365,7 +365,7 @@ minetest.register_node("df_primordial_items:jungle_roots_2", {
|
||||
groups = {snappy = 3, flora = 1, flammable = 1, vines = 1},
|
||||
paramtype = "light",
|
||||
drawtype = "plantlike",
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
use_texture_alpha = true,
|
||||
is_ground_content = false,
|
||||
sunlight_propagates = true,
|
||||
@ -390,7 +390,7 @@ minetest.register_node("df_primordial_items:jungle_thorns", {
|
||||
walkable = false,
|
||||
is_ground_content = false,
|
||||
place_param2 = 3,
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
use_texture_alpha = true,
|
||||
sunlight_propagates = true,
|
||||
damage_per_second = 1,
|
||||
|
Reference in New Issue
Block a user