added mineclone groups to all registered nodes. TODO: craftitems.

This was extremely tedious. Completely untested, aside from simply running the game.
This commit is contained in:
FaceDeer
2022-08-12 22:52:35 -06:00
parent ad723ac5ae
commit 1934e172a1
48 changed files with 226 additions and 203 deletions

View File

@ -18,7 +18,7 @@ local register_cave_wheat = function(number)
is_ground_content = false,
buildable_to = true,
floodable = true,
groups = {snappy = 3, flammable = 2, plant = 1, not_in_creative_inventory = 1, attached_node = 1, light_sensitive_fungus = 11, flora = 1},
groups = {snappy = 3, flammable = 2, plant = 1, not_in_creative_inventory = 1, attached_node = 1, light_sensitive_fungus = 11, flora = 1, handy=1, swordy=1, hoey=1, destroy_by_lava_flow=1,dig_by_piston=1},
sounds = df_dependencies.sound_leaves(),
selection_box = {
type = "fixed",
@ -167,7 +167,7 @@ minetest.register_node("df_farming:cave_straw", {
description = S("Cave Straw"),
tiles = {"dfcaverns_cave_straw.png"},
is_ground_content = false,
groups = {snappy=3, flammable=4, fall_damage_add_percent=-30, straw=1},
groups = {snappy=3, flammable=4, straw=1, handy=1,hoey=1, compostability=85, flammable=2, fire_encouragement=60, fire_flammability=20, building_block=1, fall_damage_add_percent=-80, enderman_takable=1},
sounds = df_dependencies.sound_leaves(),
_mcl_blast_resistance = 0.5,
_mcl_hardness = 0.5,
@ -208,7 +208,7 @@ if minetest.get_modpath("footprints") then
{-0.5, -0.5, -0.5, 0.5, -3 / 8, 0.5}
},
},
groups = {snappy = 3, flammable = 2, attached_node = 1},
groups = {snappy = 3, flammable = 2, attached_node = 1, handy=1, hoey=1, compostability=85, fire_encouragement=60, fire_flammability=20, fall_damage_add_percent=-30, destroy_by_lava_flow=1,dig_by_piston=1},
drop = "",
sounds = df_dependencies.sound_leaves(),
_mcl_blast_resistance = 0.5,

View File

@ -2,6 +2,8 @@ local S = minetest.get_translator(minetest.get_current_modname())
local dimple_grow_time = df_farming.config.plant_growth_time * df_farming.config.dimple_cup_delay_multiplier / 4
local dimple_cup_groups = {snappy = 3, flammable = 2, plant = 1, not_in_creative_inventory = 1, attached_node = 1, color_blue = 1, basecolor_blue = 1, excolor_blue = 1, light_sensitive_fungus = 11, flower = 1, flora = 1, fire_encouragement=60,fire_flammability=100, compostability=70, handy=1,shearsy=1,hoey=1}
local register_dimple_cup = function(number)
local name = "df_farming:dimple_cup_"..tostring(number)
local def = {
@ -16,7 +18,7 @@ local register_dimple_cup = function(number)
floodable = true,
is_ground_content = false,
buildable_to = true,
groups = {snappy = 3, flammable = 2, plant = 1, not_in_creative_inventory = 1, attached_node = 1, color_blue = 1, light_sensitive_fungus = 11, flower = 1, flora = 1},
groups = dimple_cup_groups,
sounds = df_dependencies.sound_leaves(),
selection_box = {
type = "fixed",
@ -71,7 +73,7 @@ local def = {
floodable = true,
is_ground_content = false,
buildable_to = true,
groups = {snappy = 3, flammable = 2, plant = 1, attached_node = 1, color_blue = 1, basecolor_blue = 1, excolor_blue = 1, light_sensitive_fungus = 11, flower = 1, flora = 1},
groups = dimple_cup_groups,
sounds = df_dependencies.sound_leaves(),
selection_box = {
type = "fixed",

View File

@ -18,7 +18,7 @@ local register_pig_tail = function(number)
is_ground_content = false,
floodable = true,
buildable_to = true,
groups = {snappy = 3, flammable = 2, plant = 1, not_in_creative_inventory = 1, attached_node = 1, light_sensitive_fungus = 11, flora = 1},
groups = {snappy = 3, flammable = 2, plant = 1, not_in_creative_inventory = 1, attached_node = 1, light_sensitive_fungus = 11, flora = 1, fire_encouragement=60,fire_flammability=100, compostability=70, handy=1,shearsy=1,hoey=1, destroy_by_lava_flow=1,dig_by_piston=1},
sounds = df_dependencies.sound_leaves(),
selection_box = {
type = "fixed",
@ -35,11 +35,11 @@ local register_pig_tail = function(number)
max_items = 1,
items = {
{
items = {'df_farming:pig_tail_seed 2', 'df_farming:pig_tail_thread 2'},
items = {'df_farming:pig_tail_seed 2', 'df_farming:pig_tail_thread 3'},
rarity = 9-number,
},
{
items = {'df_farming:pig_tail_seed 1', 'df_farming:pig_tail_thread'},
items = {'df_farming:pig_tail_seed 1', 'df_farming:pig_tail_thread 2'},
rarity = 9-number,
},
{
@ -137,7 +137,7 @@ if minetest.get_modpath("footprints") then
{-0.5, -0.5, -0.5, 0.5, -3 / 8, 0.5}
},
},
groups = {snappy = 3, flammable = 2, attached_node = 1},
groups = {snappy = 3, flammable = 2, attached_node = 1, handy=1, hoey=1, compostability=85, fire_encouragement=60, fire_flammability=20, fall_damage_add_percent=-30, destroy_by_lava_flow=1,dig_by_piston=1},
drop = "",
sounds = df_dependencies.sound_leaves(),
_mcl_blast_resistance = 0.2,

View File

@ -15,7 +15,7 @@ minetest.register_node("df_farming:dead_fungus", {
is_ground_content = false,
buildable_to = true,
floodable = true,
groups = {snappy = 3, flammable = 2, plant = 1, not_in_creative_inventory = 1, attached_node = 1, flow_through = 1, flora = 1},
groups = {snappy = 3, flammable = 2, plant = 1, not_in_creative_inventory = 1, attached_node = 1, flow_through = 1, flora = 1, fire_encouragement=60,fire_flammability=100,destroy_by_lava_flow=1,dig_by_piston=1, compostability=65, handy=1, hoey=1},
sounds = df_dependencies.sound_leaves(),
selection_box = {
type = "fixed",
@ -50,7 +50,7 @@ minetest.register_node("df_farming:cavern_fungi", {
buildable_to = true,
floodable = true,
light_source = 6,
groups = {snappy = 3, flammable = 2, plant = 1, not_in_creative_inventory = 1, attached_node = 1, light_sensitive_fungus = 11, flow_through = 1, flora = 1},
groups = {snappy = 3, flammable = 2, plant = 1, not_in_creative_inventory = 1, attached_node = 1, light_sensitive_fungus = 11, flow_through = 1, flora = 1, fire_encouragement=50,fire_flammability=60,destroy_by_lava_flow=1,dig_by_piston=1, compostability=65, handy=1, hoey=1},
sounds = df_dependencies.sound_leaves(),
selection_box = {
type = "fixed",
@ -157,7 +157,7 @@ df_farming.register_seed = function(name, description, image, stage_one, grow_ti
wield_image = image,
drawtype = "signlike",
paramtype2 = "wallmounted",
groups = {seed = 1, snappy = 3, attached_node = 1, flammable = 2, dfcaverns_cookable = 1, digtron_on_place=1},
groups = {seed = 1, snappy = 3, attached_node = 1, dfcaverns_cookable = 1, digtron_on_place=1,destroy_by_lava_flow=1,dig_by_piston=1, handy=1, hoey=1},
_dfcaverns_next_stage = stage_one,
_dfcaverns_next_stage_time = grow_time,
paramtype = "light",

View File

@ -67,7 +67,7 @@ minetest.register_node("df_farming:plump_helmet_spawn", {
tiles = {
"dfcaverns_plump_helmet_cap.png",
},
groups = {snappy = 3, flammable = 2, plant = 1, attached_node = 1, light_sensitive_fungus = 11, dfcaverns_cookable = 1, digtron_on_place=1, flora = 1},
groups = {snappy = 3, plant = 1, attached_node = 1, light_sensitive_fungus = 11, dfcaverns_cookable = 1, digtron_on_place=1, flora = 1, destroy_by_lava_flow=1,dig_by_piston=1, handy=1, hoey=1},
_dfcaverns_next_stage = "df_farming:plump_helmet_1",
_dfcaverns_next_stage_time = plump_helmet_grow_time,
drawtype = "nodebox",
@ -98,6 +98,8 @@ minetest.register_node("df_farming:plump_helmet_spawn", {
end,
})
local plump_helmet_groups = {snappy = 3, flammable = 2, plant = 1, not_in_creative_inventory = 1, attached_node = 1, light_sensitive_fungus = 11, dfcaverns_cookable = 1, plump_helmet = 1, food = 1, digtron_on_place=1, flora = 1, fire_encouragement=60,fire_flammability=100,destroy_by_lava_flow=1,dig_by_piston=1,compostability=65}
minetest.register_node("df_farming:plump_helmet_1", {
description = S("Plump Helmet"),
_doc_items_longdesc = df_farming.doc.plump_helmet_desc,
@ -107,7 +109,7 @@ minetest.register_node("df_farming:plump_helmet_1", {
"dfcaverns_plump_helmet_cap.png",
"dfcaverns_plump_helmet_cap.png^[lowpart:5:dfcaverns_plump_helmet_stem.png",
},
groups = {snappy = 3, flammable = 2, plant = 1, not_in_creative_inventory = 1, attached_node = 1, light_sensitive_fungus = 11, dfcaverns_cookable = 1, plump_helmet = 1, food = 1, digtron_on_place=1, flora = 1},
groups = plump_helmet_groups,
_dfcaverns_next_stage = "df_farming:plump_helmet_2",
_dfcaverns_next_stage_time = plump_helmet_grow_time,
drawtype = "nodebox",
@ -150,7 +152,7 @@ minetest.register_node("df_farming:plump_helmet_2", {
"dfcaverns_plump_helmet_cap.png",
"dfcaverns_plump_helmet_cap.png^[lowpart:15:dfcaverns_plump_helmet_stem.png",
},
groups = {snappy = 3, flammable = 2, plant = 1, not_in_creative_inventory = 1, attached_node = 1, light_sensitive_fungus = 11, dfcaverns_cookable = 1, plump_helmet = 1, food = 2, digtron_on_place=1, flora = 1},
groups = plump_helmet_groups,
_dfcaverns_next_stage = "df_farming:plump_helmet_3",
_dfcaverns_next_stage_time = plump_helmet_grow_time,
drawtype = "nodebox",
@ -192,7 +194,7 @@ minetest.register_node("df_farming:plump_helmet_3", {
"dfcaverns_plump_helmet_cap.png",
"dfcaverns_plump_helmet_cap.png^[lowpart:35:dfcaverns_plump_helmet_stem.png",
},
groups = {snappy = 3, flammable = 2, plant = 1, not_in_creative_inventory = 1, attached_node = 1, light_sensitive_fungus = 11, dfcaverns_cookable = 1, plump_helmet = 1, food = 3, digtron_on_place=1, flora = 1},
groups = plump_helmet_groups,
_dfcaverns_next_stage = "df_farming:plump_helmet_4",
_dfcaverns_next_stage_time = plump_helmet_grow_time,
drawtype = "nodebox",
@ -234,7 +236,7 @@ minetest.register_node("df_farming:plump_helmet_4", {
"dfcaverns_plump_helmet_cap.png",
"dfcaverns_plump_helmet_cap.png^[lowpart:40:dfcaverns_plump_helmet_stem.png",
},
groups = {snappy = 3, flammable = 2, plant = 1, not_in_creative_inventory = 1, attached_node = 1, light_sensitive_fungus = 11, dfcaverns_cookable = 1, plump_helmet = 1, food = 4, digtron_on_place=1, flora = 1},
groups = plump_helmet_groups,
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
@ -283,6 +285,11 @@ minetest.register_node("df_farming:plump_helmet_4", {
_hunger_ng = {satiates = 4},
})
local picked_groups = {}
for key, val in pairs(plump_helmet_groups) do
picked_groups[key]=val
end
picked_groups.not_in_creative_inventory = nil
-- Need a separate picked type to prevent it from giving infinite spawn by just placing and re-harvesting
minetest.register_node("df_farming:plump_helmet_4_picked", {
description = S("Plump Helmet"),
@ -293,7 +300,7 @@ minetest.register_node("df_farming:plump_helmet_4_picked", {
"dfcaverns_plump_helmet_cap.png",
"dfcaverns_plump_helmet_cap.png^[lowpart:40:dfcaverns_plump_helmet_stem.png",
},
groups = {snappy = 3, flammable = 2, plant = 1, attached_node = 1, light_sensitive_fungus = 11, dfcaverns_cookable = 1, plump_helmet = 1, food = 4, digtron_on_place=1, flora = 1},
groups = picked_groups,
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",

View File

@ -18,7 +18,7 @@ local register_quarry_bush = function(number)
buildable_to = true,
is_ground_content = false,
floodable = true,
groups = {snappy = 3, flammable = 2, plant = 1, not_in_creative_inventory = 1, attached_node = 1, light_sensitive_fungus = 11, flora = 1},
groups = {snappy = 3, flammable = 2, plant = 1, not_in_creative_inventory = 1, attached_node = 1, light_sensitive_fungus = 11, flora = 1, fire_encouragement=60,fire_flammability=100, compostability=50, handy=1,shearsy=1,hoey=1, destroy_by_lava_flow=1,dig_by_piston=1},
sounds = df_dependencies.sound_leaves(),
selection_box = {
type = "fixed",

View File

@ -21,7 +21,7 @@ local register_sweet_pod = function(number)
is_ground_content = false,
buildable_to = true,
floodable = true,
groups = {snappy = 3, flammable = 2, plant = 1, not_in_creative_inventory = 1, attached_node = 1, light_sensitive_fungus = 11, flora = 1},
groups = {snappy = 3, flammable = 2, plant = 1, not_in_creative_inventory = 1, attached_node = 1, light_sensitive_fungus = 11, flora = 1, fire_encouragement=60,fire_flammability=100, compostability=70, handy=1,shearsy=1,hoey=1, destroy_by_lava_flow=1,dig_by_piston=1},
sounds = df_dependencies.sound_leaves(),
selection_box = {
type = "fixed",
@ -190,7 +190,7 @@ if df_dependencies.bucket_register_liquid then
liquid_renewable = false,
liquid_range = 2,
post_effect_color = {a = 204, r = 179, g = 131, b = 88},
groups = {liquid = 3, flammable = 2, dig_by_piston=1},
groups = {liquid = 1, flammable = -1, dig_by_piston=1, fire_encouragement=5},
sounds = syrup_sound,
_mcl_blast_resistance = 100,
_mcl_hardness = -1,
@ -241,7 +241,7 @@ if df_dependencies.bucket_register_liquid then
liquid_renewable = false,
liquid_range = 2,
post_effect_color = {a = 204, r = 179, g = 131, b = 88},
groups = {liquid = 3, flammable = 2, not_in_creative_inventory = 1, dig_by_piston=1},
groups = {liquid = 1, flammable = -1, not_in_creative_inventory = 1, dig_by_piston=1, fire_encouragement = 5},
sounds = syrup_sound,
_mcl_blast_resistance = 100,
_mcl_hardness = -1,