mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2025-01-24 17:20:19 +01:00
bypass dependency indirection for df_primordial_items
This commit is contained in:
parent
a416678cc5
commit
d476e5b325
@ -13,7 +13,7 @@ minetest.register_node("df_primordial_items:glownode", {
|
||||
sunlight_propagates = true,
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 3, oddly_breakable_by_hand = 3},
|
||||
sounds = df_primordial_items.sounds.glass,
|
||||
sounds = df_dependencies.sound_glass(),
|
||||
light_source = minetest.LIGHT_MAX,
|
||||
_mcl_blast_resistance = 0.3,
|
||||
_mcl_hardness = 0.3,
|
||||
@ -27,7 +27,7 @@ minetest.register_node("df_primordial_items:glownode_stalk", {
|
||||
paramtype2 = "facedir",
|
||||
is_ground_content = false,
|
||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
||||
sounds = df_primordial_items.sounds.wood,
|
||||
sounds = df_dependencies.sound_wood(),
|
||||
on_place = minetest.rotate_node,
|
||||
_mcl_blast_resistance = 2,
|
||||
_mcl_hardness = 2,
|
||||
@ -48,7 +48,7 @@ minetest.register_node("df_primordial_items:glow_orb_hanging", {
|
||||
is_ground_content = false,
|
||||
walkable = false,
|
||||
light_source = 6,
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
sounds = df_dependencies.sound_leaves(),
|
||||
use_texture_alpha = "clip",
|
||||
sunlight_propagates = true,
|
||||
_mcl_blast_resistance = 0.2,
|
||||
|
@ -1,29 +0,0 @@
|
||||
--This file contains references to external dependencies, in hopes of making it easier to make those optional in the future
|
||||
|
||||
df_primordial_items.node_names = {}
|
||||
|
||||
df_primordial_items.node_names.dirt = df_dependencies.node_name_dirt
|
||||
df_primordial_items.node_names.dry_shrub = df_dependencies.node_name_dry_shrub
|
||||
df_primordial_items.node_names.dry_grass_3 = df_dependencies.node_name_dry_grass_3
|
||||
df_primordial_items.node_names.dry_grass_4 = df_dependencies.node_name_dry_grass_4
|
||||
df_primordial_items.node_names.junglewood = df_dependencies.node_name_junglewood
|
||||
|
||||
df_primordial_items.sounds = {}
|
||||
|
||||
df_primordial_items.sounds.leaves = df_dependencies.sound_leaves()
|
||||
df_primordial_items.sounds.wood = df_dependencies.sound_wood()
|
||||
df_primordial_items.sounds.glass = df_dependencies.sound_glass()
|
||||
df_primordial_items.sounds.dirt = df_dependencies.sound_dirt()
|
||||
|
||||
df_primordial_items.register_leafdecay = df_dependencies.register_leafdecay
|
||||
df_primordial_items.after_place_leaves = df_dependencies.after_place_leaves
|
||||
|
||||
df_primordial_items.textures = {}
|
||||
df_primordial_items.textures.wood = df_dependencies.texture_wood
|
||||
|
||||
-- This stuff should only be used during initialization
|
||||
minetest.after(0, function()
|
||||
df_primordial_items.node_names = nil
|
||||
df_primordial_items.sounds = nil
|
||||
df_primordial_items.textures = nil
|
||||
end)
|
@ -19,7 +19,7 @@ minetest.register_node("df_primordial_items:fungal_grass_1", {
|
||||
is_ground_content = false,
|
||||
walkable = false,
|
||||
floodable = true,
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
sounds = df_dependencies.sound_leaves(),
|
||||
use_texture_alpha = "clip",
|
||||
sunlight_propagates = true,
|
||||
_mcl_blast_resistance = 0.2,
|
||||
@ -41,7 +41,7 @@ minetest.register_node("df_primordial_items:fungal_grass_2", {
|
||||
walkable = false,
|
||||
floodable = true,
|
||||
place_param2 = 3,
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
sounds = df_dependencies.sound_leaves(),
|
||||
use_texture_alpha = "clip",
|
||||
sunlight_propagates = true,
|
||||
_mcl_blast_resistance = 0.2,
|
||||
@ -65,7 +65,7 @@ minetest.register_node("df_primordial_items:glow_orb", {
|
||||
walkable = false,
|
||||
floodable = true,
|
||||
light_source = 9,
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
sounds = df_dependencies.sound_leaves(),
|
||||
use_texture_alpha = "clip",
|
||||
sunlight_propagates = true,
|
||||
_mcl_blast_resistance = 0.2,
|
||||
@ -87,7 +87,7 @@ minetest.register_node("df_primordial_items:glow_orb_stalks", {
|
||||
walkable = false,
|
||||
floodable = true,
|
||||
light_source = 6,
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
sounds = df_dependencies.sound_leaves(),
|
||||
use_texture_alpha = "clip",
|
||||
sunlight_propagates = true,
|
||||
_mcl_blast_resistance = 0.2,
|
||||
@ -122,7 +122,7 @@ minetest.register_node("df_primordial_items:glow_pods", {
|
||||
walkable = false,
|
||||
floodable = true,
|
||||
light_source = 6,
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
sounds = df_dependencies.sound_leaves(),
|
||||
use_texture_alpha = "clip",
|
||||
sunlight_propagates = true,
|
||||
_mcl_blast_resistance = 0.2,
|
||||
@ -138,11 +138,11 @@ minetest.register_node("df_primordial_items:dirt_with_mycelium", {
|
||||
_doc_items_usagehelp = df_primordial_items.doc.dirt_with_mycelium_usage,
|
||||
tiles = {"dfcaverns_mush_soil.png"},
|
||||
groups = {crumbly = 3, soil = 1, light_sensitive_fungus = 13},
|
||||
_dfcaverns_dead_node = df_primordial_items.node_names.dirt,
|
||||
_dfcaverns_dead_node = df_dependencies.node_name_dirt,
|
||||
is_ground_content = false,
|
||||
paramtype = "light",
|
||||
drop = df_primordial_items.node_names.dirt,
|
||||
sounds = df_primordial_items.sounds.dirt,
|
||||
drop = df_dependencies.node_name_dirt,
|
||||
sounds = df_dependencies.sound_dirt(),
|
||||
light_source = 3,
|
||||
_mcl_blast_resistance = 0.5,
|
||||
_mcl_hardness = 0.6,
|
||||
@ -150,7 +150,7 @@ minetest.register_node("df_primordial_items:dirt_with_mycelium", {
|
||||
|
||||
minetest.register_abm{
|
||||
label = "df_primordial_items:dirt_with_mycelium_spread",
|
||||
nodenames = {df_primordial_items.node_names.dirt},
|
||||
nodenames = {df_dependencies.node_name_dirt},
|
||||
neighbors = {"df_mapitems:dirt_with_mycelium"},
|
||||
interval = 60,
|
||||
chance = 50,
|
||||
|
@ -12,7 +12,7 @@ minetest.register_node("df_primordial_items:giant_fern_tree", {
|
||||
is_ground_content = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sounds = df_primordial_items.sounds.wood,
|
||||
sounds = df_dependencies.sound_wood(),
|
||||
sunlight_propagates = true,
|
||||
on_place = minetest.rotate_node,
|
||||
_mcl_blast_resistance = 2,
|
||||
@ -37,7 +37,7 @@ minetest.register_node("df_primordial_items:giant_fern_tree_slant_bottom", {
|
||||
paramtype = "light",
|
||||
drop = "df_primordial_items:giant_fern_tree",
|
||||
groups = {choppy = 2, tree = 1, oddly_breakable_by_hand=1, flammable = 2, fern_stem = 1},
|
||||
sounds = df_primordial_items.sounds.wood,
|
||||
sounds = df_dependencies.sound_wood(),
|
||||
is_ground_content = false,
|
||||
on_place = minetest.rotate_node,
|
||||
selection_box = {
|
||||
@ -76,7 +76,7 @@ minetest.register_node("df_primordial_items:giant_fern_tree_slant_top", {
|
||||
paramtype = "light",
|
||||
drop = "df_primordial_items:giant_fern_tree",
|
||||
groups = {choppy = 2, tree = 1, oddly_breakable_by_hand=1, flammable = 2, fern_stem = 1},
|
||||
sounds = df_primordial_items.sounds.wood,
|
||||
sounds = df_dependencies.sound_wood(),
|
||||
is_ground_content = false,
|
||||
on_place = minetest.rotate_node,
|
||||
selection_box = {
|
||||
@ -115,7 +115,7 @@ minetest.register_node("df_primordial_items:giant_fern_tree_slant_full", {
|
||||
paramtype = "light",
|
||||
drop = "df_primordial_items:giant_fern_tree",
|
||||
groups = {choppy = 2, tree = 1, oddly_breakable_by_hand=1, flammable = 2, fern_stem = 1},
|
||||
sounds = df_primordial_items.sounds.wood,
|
||||
sounds = df_dependencies.sound_wood(),
|
||||
is_ground_content = false,
|
||||
on_place = minetest.rotate_node,
|
||||
selection_box = {
|
||||
@ -141,10 +141,10 @@ minetest.register_node("df_primordial_items:fern_wood", {
|
||||
_doc_items_longdesc = df_primordial_items.doc.giant_fern_desc,
|
||||
_doc_items_usagehelp = df_primordial_items.doc.giant_fern_usage,
|
||||
paramtype2 = "facedir",
|
||||
tiles = {df_primordial_items.textures.wood .. "^[multiply:#10FF10"},
|
||||
tiles = {df_dependencies.texture_wood .. "^[multiply:#10FF10"},
|
||||
is_ground_content = false,
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, wood = 1},
|
||||
sounds = df_primordial_items.sounds.wood,
|
||||
sounds = df_dependencies.sound_wood(),
|
||||
_mcl_blast_resistance = 3,
|
||||
_mcl_hardness = 1,
|
||||
})
|
||||
@ -173,10 +173,10 @@ minetest.register_node("df_primordial_items:giant_fern_leaves", {
|
||||
buildable_to = true,
|
||||
walkable = false,
|
||||
waving = 2,
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
sounds = df_dependencies.sound_leaves(),
|
||||
use_texture_alpha = "clip",
|
||||
sunlight_propagates = true,
|
||||
after_place_node = df_primordial_items.after_place_leaves,
|
||||
after_place_node = df_dependencies.after_place_leaves,
|
||||
place_param2 = 1, -- Prevent leafdecay for placed nodes
|
||||
drop = {
|
||||
max_items = 1,
|
||||
@ -195,7 +195,7 @@ minetest.register_node("df_primordial_items:giant_fern_leaves", {
|
||||
_mcl_hardness = 0.2,
|
||||
})
|
||||
|
||||
df_primordial_items.register_leafdecay({
|
||||
df_dependencies.register_leafdecay({
|
||||
trunks = {"df_primordial_items:giant_fern_tree_slant_full", "df_primordial_items:giant_fern_tree_slant_top", "df_primordial_items:giant_fern_tree_slant_bottom", "df_primordial_items:giant_fern_tree"},
|
||||
leaves = {"df_primordial_items:giant_fern_leaves"},
|
||||
radius = 2,
|
||||
@ -305,7 +305,7 @@ minetest.register_node("df_primordial_items:fern_sapling", {
|
||||
inventory_image = "dfcaverns_jungle_fern_03.png",
|
||||
wield_image = "dfcaverns_jungle_fern_03.png",
|
||||
groups = {snappy = 3, flora = 1, attached_node = 1, flammable = 1, sapling = 1, light_sensitive_fungus = 13},
|
||||
_dfcaverns_dead_node = df_primordial_items.node_names.dry_shrub,
|
||||
_dfcaverns_dead_node = df_dependencies.node_name_dry_shrub,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 7 / 16, 4 / 16}
|
||||
@ -315,7 +315,7 @@ minetest.register_node("df_primordial_items:fern_sapling", {
|
||||
buildable_to = true,
|
||||
is_ground_content = false,
|
||||
walkable = false,
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
sounds = df_dependencies.sound_leaves(),
|
||||
use_texture_alpha = "clip",
|
||||
sunlight_propagates = true,
|
||||
_mcl_blast_resistance = 0.2,
|
||||
|
@ -4,7 +4,6 @@ df_primordial_items.doc = {}
|
||||
local modname = minetest.get_current_modname()
|
||||
local modpath = minetest.get_modpath(modname)
|
||||
|
||||
dofile(modpath.."/dependencies.lua")
|
||||
dofile(modpath.."/doc.lua")
|
||||
dofile(modpath.."/jungle_nodes.lua")
|
||||
dofile(modpath.."/jungle_tree.lua")
|
||||
|
@ -110,7 +110,7 @@ minetest.register_node("df_primordial_items:jungle_mushroom_sapling", {
|
||||
buildable_to = true,
|
||||
is_ground_content = false,
|
||||
walkable = false,
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
sounds = df_dependencies.sound_leaves(),
|
||||
use_texture_alpha = "clip",
|
||||
sunlight_propagates = true,
|
||||
_mcl_blast_resistance = 0.2,
|
||||
|
@ -11,7 +11,7 @@ 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 = df_primordial_items.node_names.dry_shrub,
|
||||
_dfcaverns_dead_node = df_dependencies.node_name_dry_shrub,
|
||||
visual_scale = 1.69,
|
||||
paramtype = "light",
|
||||
drawtype = "plantlike",
|
||||
@ -19,7 +19,7 @@ minetest.register_node("df_primordial_items:fern_1", {
|
||||
is_ground_content = false,
|
||||
walkable = false,
|
||||
floodable = true,
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
sounds = df_dependencies.sound_leaves(),
|
||||
use_texture_alpha = "clip",
|
||||
sunlight_propagates = true,
|
||||
_mcl_blast_resistance = 0.2,
|
||||
@ -35,14 +35,14 @@ 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 = df_primordial_items.node_names.dry_shrub,
|
||||
_dfcaverns_dead_node = df_dependencies.node_name_dry_shrub,
|
||||
paramtype = "light",
|
||||
drawtype = "plantlike",
|
||||
buildable_to = true,
|
||||
is_ground_content = false,
|
||||
walkable = false,
|
||||
floodable = true,
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
sounds = df_dependencies.sound_leaves(),
|
||||
use_texture_alpha = "clip",
|
||||
sunlight_propagates = true,
|
||||
_mcl_blast_resistance = 0.2,
|
||||
@ -60,7 +60,7 @@ 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 = df_primordial_items.node_names.dry_shrub,
|
||||
_dfcaverns_dead_node = df_dependencies.node_name_dry_shrub,
|
||||
paramtype = "light",
|
||||
drawtype = "plantlike",
|
||||
buildable_to = true,
|
||||
@ -81,7 +81,7 @@ minetest.register_node("df_primordial_items:glow_plant_1", {
|
||||
},
|
||||
},
|
||||
},
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
sounds = df_dependencies.sound_leaves(),
|
||||
use_texture_alpha = "clip",
|
||||
sunlight_propagates = true,
|
||||
_mcl_blast_resistance = 0.2,
|
||||
@ -96,7 +96,7 @@ 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 = df_primordial_items.node_names.dry_shrub,
|
||||
_dfcaverns_dead_node = df_dependencies.node_name_dry_shrub,
|
||||
paramtype = "light",
|
||||
drawtype = "plantlike",
|
||||
buildable_to = true,
|
||||
@ -105,7 +105,7 @@ minetest.register_node("df_primordial_items:glow_plant_2", {
|
||||
floodable = true,
|
||||
drop = "df_primordial_items:glowtato",
|
||||
light_source = 6,
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
sounds = df_dependencies.sound_leaves(),
|
||||
use_texture_alpha = "clip",
|
||||
sunlight_propagates = true,
|
||||
_mcl_blast_resistance = 0.2,
|
||||
@ -120,7 +120,7 @@ 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 = df_primordial_items.node_names.dry_shrub,
|
||||
_dfcaverns_dead_node = df_dependencies.node_name_dry_shrub,
|
||||
paramtype = "light",
|
||||
drawtype = "plantlike",
|
||||
drop = "df_primordial_items:glowtato 2",
|
||||
@ -129,7 +129,7 @@ minetest.register_node("df_primordial_items:glow_plant_3", {
|
||||
walkable = false,
|
||||
floodable = true,
|
||||
light_source = 6,
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
sounds = df_dependencies.sound_leaves(),
|
||||
use_texture_alpha = "clip",
|
||||
sunlight_propagates = true,
|
||||
_mcl_blast_resistance = 0.2,
|
||||
@ -148,14 +148,14 @@ 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 = df_primordial_items.node_names.dry_grass_3,
|
||||
_dfcaverns_dead_node = df_dependencies.node_name_dry_grass_3,
|
||||
paramtype = "light",
|
||||
drawtype = "plantlike",
|
||||
buildable_to = true,
|
||||
is_ground_content = false,
|
||||
walkable = false,
|
||||
floodable = true,
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
sounds = df_dependencies.sound_leaves(),
|
||||
use_texture_alpha = "clip",
|
||||
sunlight_propagates = true,
|
||||
_mcl_blast_resistance = 0.2,
|
||||
@ -170,7 +170,7 @@ 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 = df_primordial_items.node_names.dry_grass_4,
|
||||
_dfcaverns_dead_node = df_dependencies.node_name_dry_grass_4,
|
||||
paramtype = "light",
|
||||
drawtype = "plantlike",
|
||||
buildable_to = true,
|
||||
@ -178,7 +178,7 @@ minetest.register_node("df_primordial_items:jungle_grass_2", {
|
||||
walkable = false,
|
||||
floodable = true,
|
||||
place_param2 = 3,
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
sounds = df_dependencies.sound_leaves(),
|
||||
use_texture_alpha = "clip",
|
||||
sunlight_propagates = true,
|
||||
_mcl_blast_resistance = 0.2,
|
||||
@ -193,7 +193,7 @@ 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 = df_primordial_items.node_names.dry_grass_4,
|
||||
_dfcaverns_dead_node = df_dependencies.node_name_dry_grass_4,
|
||||
paramtype = "light",
|
||||
drawtype = "plantlike",
|
||||
buildable_to = true,
|
||||
@ -201,7 +201,7 @@ minetest.register_node("df_primordial_items:jungle_grass_3", {
|
||||
walkable = false,
|
||||
floodable = true,
|
||||
place_param2 = 3,
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
sounds = df_dependencies.sound_leaves(),
|
||||
use_texture_alpha = "clip",
|
||||
sunlight_propagates = true,
|
||||
_mcl_blast_resistance = 0.2,
|
||||
@ -226,7 +226,7 @@ minetest.register_node("df_primordial_items:jungle_ivy", {
|
||||
place_param2 = 3,
|
||||
--paramtype2 = "wallmouinted",
|
||||
--drawtype = "signlike",
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
sounds = df_dependencies.sound_leaves(),
|
||||
use_texture_alpha = "clip",
|
||||
sunlight_propagates = true,
|
||||
is_ground_content = false,
|
||||
@ -256,7 +256,7 @@ minetest.register_node("df_primordial_items:jungle_mushroom_1", {
|
||||
is_ground_content = false,
|
||||
walkable = false,
|
||||
floodable = true,
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
sounds = df_dependencies.sound_leaves(),
|
||||
use_texture_alpha = "clip",
|
||||
sunlight_propagates = true,
|
||||
_mcl_blast_resistance = 0.2,
|
||||
@ -277,7 +277,7 @@ minetest.register_node("df_primordial_items:jungle_mushroom_2", {
|
||||
is_ground_content = false,
|
||||
walkable = false,
|
||||
floodable = true,
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
sounds = df_dependencies.sound_leaves(),
|
||||
use_texture_alpha = "clip",
|
||||
sunlight_propagates = true,
|
||||
_mcl_blast_resistance = 0.2,
|
||||
@ -294,17 +294,17 @@ 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 = df_primordial_items.node_names.dirt,
|
||||
_dfcaverns_dead_node = df_dependencies.node_name_dirt,
|
||||
is_ground_content = false,
|
||||
drop = df_primordial_items.node_names.dirt,
|
||||
sounds = df_primordial_items.sounds.dirt,
|
||||
drop = df_dependencies.node_name_dirt,
|
||||
sounds = df_dependencies.sound_dirt(),
|
||||
_mcl_blast_resistance = 0.5,
|
||||
_mcl_hardness = 0.6,
|
||||
})
|
||||
|
||||
minetest.register_abm{
|
||||
label = "df_primordial_items:jungle_grass_spread",
|
||||
nodenames = {df_primordial_items.node_names.dirt},
|
||||
nodenames = {df_dependencies.node_name_dirt},
|
||||
neighbors = {"df_mapitems:dirt_with_jungle_grass"},
|
||||
interval = 60,
|
||||
chance = 50,
|
||||
@ -325,7 +325,7 @@ minetest.register_node("df_primordial_items:plant_matter", {
|
||||
is_ground_content = false,
|
||||
paramtype = "light",
|
||||
groups = {crumbly = 3, soil = 1, flammable = 1},
|
||||
sounds = df_primordial_items.sounds.dirt,
|
||||
sounds = df_dependencies.sound_dirt(),
|
||||
on_timer = function(pos, elapsed)
|
||||
if elapsed > 130 then
|
||||
-- the timer triggered more than ten seconds after it was suppposed to,
|
||||
@ -350,7 +350,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 = df_primordial_items.sounds.wood,
|
||||
sounds = df_dependencies.sound_wood(),
|
||||
_mcl_blast_resistance = 3,
|
||||
_mcl_hardness = 3,
|
||||
})
|
||||
@ -401,7 +401,7 @@ minetest.register_node("df_primordial_items:jungle_roots_1", {
|
||||
groups = {snappy = 3, flora = 1, flammable = 1, vines = 1},
|
||||
paramtype = "light",
|
||||
drawtype = "plantlike",
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
sounds = df_dependencies.sound_leaves(),
|
||||
use_texture_alpha = "clip",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
@ -421,7 +421,7 @@ minetest.register_node("df_primordial_items:jungle_roots_2", {
|
||||
groups = {snappy = 3, flora = 1, flammable = 1, vines = 1},
|
||||
paramtype = "light",
|
||||
drawtype = "plantlike",
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
sounds = df_dependencies.sound_leaves(),
|
||||
use_texture_alpha = "clip",
|
||||
is_ground_content = false,
|
||||
sunlight_propagates = true,
|
||||
@ -449,7 +449,7 @@ minetest.register_node("df_primordial_items:jungle_thorns", {
|
||||
floodable = true,
|
||||
is_ground_content = false,
|
||||
place_param2 = 3,
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
sounds = df_dependencies.sound_leaves(),
|
||||
use_texture_alpha = "clip",
|
||||
sunlight_propagates = true,
|
||||
damage_per_second = 1,
|
||||
|
@ -16,7 +16,7 @@ minetest.register_node("df_primordial_items:jungle_leaves", {
|
||||
is_ground_content = false,
|
||||
buildable_to = true,
|
||||
groups = {snappy = 3, leafdecay = 1, flammable = 2, leaves = 1},
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
sounds = df_dependencies.sound_leaves(),
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
@ -29,7 +29,7 @@ minetest.register_node("df_primordial_items:jungle_leaves", {
|
||||
}
|
||||
}
|
||||
},
|
||||
after_place_node = df_primordial_items.after_place_leaves,
|
||||
after_place_node = df_dependencies.after_place_leaves,
|
||||
place_param2 = 1, -- Prevent leafdecay for placed nodes
|
||||
_mcl_blast_resistance = 0.2,
|
||||
_mcl_hardness = 0.2,
|
||||
@ -51,7 +51,7 @@ minetest.register_node("df_primordial_items:jungle_leaves_glowing", {
|
||||
buildable_to = true,
|
||||
light_source = 2,
|
||||
groups = {snappy = 3, leafdecay = 1, flammable = 2, leaves = 1},
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
sounds = df_dependencies.sound_leaves(),
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
@ -64,7 +64,7 @@ minetest.register_node("df_primordial_items:jungle_leaves_glowing", {
|
||||
}
|
||||
}
|
||||
},
|
||||
after_place_node = df_primordial_items.after_place_leaves,
|
||||
after_place_node = df_dependencies.after_place_leaves,
|
||||
place_param2 = 1, -- Prevent leafdecay for placed nodes
|
||||
_mcl_blast_resistance = 0.2,
|
||||
_mcl_hardness = 0.2,
|
||||
@ -80,7 +80,7 @@ minetest.register_node("df_primordial_items:jungle_tree", {
|
||||
paramtype2 = "facedir",
|
||||
is_ground_content = false,
|
||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, primordial_jungle_tree = 1},
|
||||
sounds = df_primordial_items.sounds.wood,
|
||||
sounds = df_dependencies.sound_wood(),
|
||||
on_place = minetest.rotate_node,
|
||||
_mcl_blast_resistance = 2,
|
||||
_mcl_hardness = 2,
|
||||
@ -94,7 +94,7 @@ minetest.register_node("df_primordial_items:jungle_tree_mossy", {
|
||||
paramtype2 = "facedir",
|
||||
is_ground_content = false,
|
||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, primordial_jungle_tree = 1},
|
||||
sounds = df_primordial_items.sounds.wood,
|
||||
sounds = df_dependencies.sound_wood(),
|
||||
on_place = minetest.rotate_node,
|
||||
_mcl_blast_resistance = 2,
|
||||
_mcl_hardness = 2,
|
||||
@ -109,20 +109,20 @@ minetest.register_node("df_primordial_items:jungle_tree_glowing", {
|
||||
is_ground_content = false,
|
||||
light_source = 4,
|
||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, primordial_jungle_tree = 1},
|
||||
sounds = df_primordial_items.sounds.wood,
|
||||
sounds = df_dependencies.sound_wood(),
|
||||
on_place = minetest.rotate_node,
|
||||
_mcl_blast_resistance = 2,
|
||||
_mcl_hardness = 2,
|
||||
})
|
||||
|
||||
df_primordial_items.register_leafdecay({
|
||||
df_dependencies.register_leafdecay({
|
||||
trunks = {"df_primordial_items:jungle_tree", "df_primordial_items:jungle_tree_mossy", "df_primordial_items:jungle_tree_glowing"},
|
||||
leaves = {"df_primordial_items:jungle_leaves", "df_primordial_items:jungle_leaves_glowing"},
|
||||
radius = 1,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = df_primordial_items.node_names.junglewood .. " 4",
|
||||
output = df_dependencies.node_name_junglewood .. " 4",
|
||||
recipe = {
|
||||
{"group:primordial_jungle_tree"},
|
||||
}
|
||||
@ -235,7 +235,7 @@ minetest.register_node("df_primordial_items:jungletree_sapling", {
|
||||
inventory_image = "dfcaverns_jungle_sapling.png",
|
||||
wield_image = "dfcaverns_jungle_sapling.png",
|
||||
groups = {snappy = 3, flora = 1, attached_node = 1, flammable = 1, sapling = 1, light_sensitive_fungus = 13},
|
||||
_dfcaverns_dead_node = df_primordial_items.node_names.dry_shrub,
|
||||
_dfcaverns_dead_node = df_dependencies.node_name_dry_shrub,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 7 / 16, 4 / 16}
|
||||
@ -245,7 +245,7 @@ minetest.register_node("df_primordial_items:jungletree_sapling", {
|
||||
buildable_to = true,
|
||||
walkable = false,
|
||||
is_ground_content = false,
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
sounds = df_dependencies.sound_leaves(),
|
||||
use_texture_alpha = "clip",
|
||||
sunlight_propagates = true,
|
||||
_mcl_blast_resistance = 0.2,
|
||||
|
@ -42,7 +42,7 @@ minetest.register_node("df_primordial_items:mushroom_gills", {
|
||||
walkable = false,
|
||||
climbable = true,
|
||||
is_ground_content = false,
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
sounds = df_dependencies.sound_leaves(),
|
||||
use_texture_alpha = "clip",
|
||||
sunlight_propagates = true,
|
||||
drop = {
|
||||
@ -58,7 +58,7 @@ minetest.register_node("df_primordial_items:mushroom_gills", {
|
||||
}
|
||||
}
|
||||
},
|
||||
after_place_node = df_primordial_items.after_place_leaves,
|
||||
after_place_node = df_dependencies.after_place_leaves,
|
||||
place_param2 = 1, -- Prevent leafdecay for placed nodes
|
||||
_mcl_blast_resistance = 0.2,
|
||||
_mcl_hardness = 0.2,
|
||||
@ -79,7 +79,7 @@ minetest.register_node("df_primordial_items:mushroom_gills_glowing", {
|
||||
climbable = true,
|
||||
is_ground_content = false,
|
||||
light_source = 6,
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
sounds = df_dependencies.sound_leaves(),
|
||||
use_texture_alpha = "clip",
|
||||
sunlight_propagates = true,
|
||||
drop = {
|
||||
@ -95,13 +95,13 @@ minetest.register_node("df_primordial_items:mushroom_gills_glowing", {
|
||||
}
|
||||
}
|
||||
},
|
||||
after_place_node = df_primordial_items.after_place_leaves,
|
||||
after_place_node = df_dependencies.after_place_leaves,
|
||||
place_param2 = 1, -- Prevent leafdecay for placed nodes
|
||||
_mcl_blast_resistance = 0.2,
|
||||
_mcl_hardness = 0.2,
|
||||
})
|
||||
|
||||
df_primordial_items.register_leafdecay({
|
||||
df_dependencies.register_leafdecay({
|
||||
trunks = {"df_primordial_items:mushroom_trunk", "df_primordial_items:mushroom_cap"},
|
||||
leaves = {"df_primordial_items:mushroom_gills", "df_primordial_items:mushroom_gills_glowing"},
|
||||
radius = 5,
|
||||
@ -115,7 +115,7 @@ minetest.register_node("df_primordial_items:primordial_mush_trunk_wood", {
|
||||
tiles = {"dfcaverns_mush_shaft_side.png^(dfcaverns_mush_gills.png^[multiply:#888888)"},
|
||||
is_ground_content = false,
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, wood = 1},
|
||||
sounds = df_primordial_items.sounds.wood,
|
||||
sounds = df_dependencies.sound_wood(),
|
||||
_mcl_blast_resistance = 4,
|
||||
_mcl_hardness = 3,
|
||||
})
|
||||
@ -137,7 +137,7 @@ minetest.register_node("df_primordial_items:primordial_mush_cap_wood", {
|
||||
tiles = {"dfcaverns_mush_cap.png^dfcaverns_mush_gills.png"},
|
||||
is_ground_content = false,
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, wood = 1},
|
||||
sounds = df_primordial_items.sounds.wood,
|
||||
sounds = df_dependencies.sound_wood(),
|
||||
_mcl_blast_resistance = 3,
|
||||
_mcl_hardness = 2,
|
||||
})
|
||||
@ -758,7 +758,7 @@ minetest.register_node("df_primordial_items:mush_sapling", {
|
||||
buildable_to = true,
|
||||
walkable = false,
|
||||
is_ground_content = false,
|
||||
sounds = df_primordial_items.sounds.leaves,
|
||||
sounds = df_dependencies.sound_leaves(),
|
||||
use_texture_alpha = "clip",
|
||||
sunlight_propagates = true,
|
||||
_mcl_blast_resistance = 0.2,
|
||||
|
@ -1,4 +1,4 @@
|
||||
name = df_trees
|
||||
description = Adds various types of underground fungal "trees". Light kills their saplings, they only grow in the dark.
|
||||
depends = df_dependencies
|
||||
optional_depends = doc, vessels, basic_materials, df_farming, mapgen_helper
|
||||
optional_depends = doc, basic_materials, df_farming, mapgen_helper
|
Loading…
Reference in New Issue
Block a user