forked from mtcontrib/farming
better mineclone/mineclonia support
This commit is contained in:
parent
12eb5579a1
commit
a0dd3db65f
@ -115,10 +115,12 @@ minetest.register_node("farming:hemp_block", {
|
|||||||
tiles = {"farming_hemp_block.png"},
|
tiles = {"farming_hemp_block.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {
|
groups = {
|
||||||
handy = 1, snappy = 2, oddly_breakable_by_hand = 1, flammable = 2,
|
axey = 1, handy = 1, snappy = 2, oddly_breakable_by_hand = 1, flammable = 2,
|
||||||
compostability = 85
|
compostability = 85
|
||||||
},
|
},
|
||||||
sounds = farming.sounds.node_sound_leaves_defaults()
|
sounds = farming.sounds.node_sound_leaves_defaults(),
|
||||||
|
_mcl_hardness = 0.8,
|
||||||
|
_mcl_blast_resistance = 1
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
@ -188,7 +190,9 @@ minetest.register_node("farming:hemp_rope", {
|
|||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7}
|
fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7}
|
||||||
}
|
},
|
||||||
|
_mcl_hardness = 0.8,
|
||||||
|
_mcl_blast_resistance = 1
|
||||||
})
|
})
|
||||||
|
|
||||||
-- string
|
-- string
|
||||||
|
@ -86,7 +86,9 @@ minetest.register_node("farming:melon_8", {
|
|||||||
drop = "farming:melon_8",
|
drop = "farming:melon_8",
|
||||||
sounds = farming.sounds.node_sound_wood_defaults(),
|
sounds = farming.sounds.node_sound_wood_defaults(),
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
on_place = minetest.rotate_node
|
on_place = minetest.rotate_node,
|
||||||
|
_mcl_hardness = 0.8,
|
||||||
|
_mcl_blast_resistance = 1
|
||||||
})
|
})
|
||||||
|
|
||||||
-- add to registered_plants
|
-- add to registered_plants
|
||||||
|
@ -49,7 +49,9 @@ minetest.register_node("farming:jackolantern", {
|
|||||||
if minetest.is_protected(pos, name) then return end
|
if minetest.is_protected(pos, name) then return end
|
||||||
node.name = "farming:jackolantern_on"
|
node.name = "farming:jackolantern_on"
|
||||||
minetest.swap_node(pos, node)
|
minetest.swap_node(pos, node)
|
||||||
end
|
end,
|
||||||
|
_mcl_hardness = 0.8,
|
||||||
|
_mcl_blast_resistance = 1
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("farming:jackolantern_on", {
|
minetest.register_node("farming:jackolantern_on", {
|
||||||
@ -74,7 +76,9 @@ minetest.register_node("farming:jackolantern_on", {
|
|||||||
if minetest.is_protected(pos, name) then return end
|
if minetest.is_protected(pos, name) then return end
|
||||||
node.name = "farming:jackolantern"
|
node.name = "farming:jackolantern"
|
||||||
minetest.swap_node(pos, node)
|
minetest.swap_node(pos, node)
|
||||||
end
|
end,
|
||||||
|
_mcl_hardness = 0.8,
|
||||||
|
_mcl_blast_resistance = 1
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
@ -100,7 +104,9 @@ minetest.register_node("farming:scarecrow_bottom", {
|
|||||||
{-12/16, 4/16, -1/16, 12/16, 2/16, 1/16},
|
{-12/16, 4/16, -1/16, 12/16, 2/16, 1/16},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
groups = {handy = 1, snappy = 3, flammable = 2}
|
groups = {axey = 1, handy = 1, snappy = 3, flammable = 2},
|
||||||
|
_mcl_hardness = 0.8,
|
||||||
|
_mcl_blast_resistance = 1
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
@ -194,12 +200,14 @@ minetest.register_node("farming:pumpkin_8", {
|
|||||||
},
|
},
|
||||||
groups = {
|
groups = {
|
||||||
food_pumpkin = 1, snappy = 3, choppy = 3, oddly_breakable_by_hand = 2,
|
food_pumpkin = 1, snappy = 3, choppy = 3, oddly_breakable_by_hand = 2,
|
||||||
flammable = 2, plant = 1
|
flammable = 2, plant = 1, handy = 1
|
||||||
},
|
},
|
||||||
drop = "farming:pumpkin_8",
|
drop = "farming:pumpkin_8",
|
||||||
sounds = farming.sounds.node_sound_wood_defaults(),
|
sounds = farming.sounds.node_sound_wood_defaults(),
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
on_place = minetest.rotate_node
|
on_place = minetest.rotate_node,
|
||||||
|
_mcl_hardness = 0.8,
|
||||||
|
_mcl_blast_resistance = 1
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_alias("farming:pumpkin", "farming:pumpkin_8")
|
minetest.register_alias("farming:pumpkin", "farming:pumpkin_8")
|
||||||
|
@ -38,8 +38,10 @@ minetest.register_node("farming:straw", {
|
|||||||
description = S("Straw"),
|
description = S("Straw"),
|
||||||
tiles = {"farming_straw.png"},
|
tiles = {"farming_straw.png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = {snappy = 3, flammable = 4, fall_damage_add_percent = -30},
|
groups = {handy = 1, snappy = 3, flammable = 4, fall_damage_add_percent = -30},
|
||||||
sounds = farming.sounds.node_sound_leaves_defaults()
|
sounds = farming.sounds.node_sound_leaves_defaults(),
|
||||||
|
_mcl_hardness = 0.8,
|
||||||
|
_mcl_blast_resistance = 1
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
12
food.lua
12
food.lua
@ -135,9 +135,11 @@ end
|
|||||||
minetest.register_node("farming:sugar_cube", {
|
minetest.register_node("farming:sugar_cube", {
|
||||||
description = S("Sugar Cube"),
|
description = S("Sugar Cube"),
|
||||||
tiles = {"farming_sugar_cube.png"},
|
tiles = {"farming_sugar_cube.png"},
|
||||||
groups = {crumbly = 2},
|
groups = {pickaxey = 1, crumbly = 2},
|
||||||
floodable = true,
|
floodable = true,
|
||||||
sounds = farming.sounds.node_sound_gravel_defaults()
|
sounds = farming.sounds.node_sound_gravel_defaults(),
|
||||||
|
_mcl_hardness = 0.8,
|
||||||
|
_mcl_blast_resistance = 1
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
@ -248,12 +250,14 @@ minetest.register_node("farming:salt_crystal", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
light_source = 1,
|
light_source = 1,
|
||||||
tiles = {"farming_salt_crystal.png"},
|
tiles = {"farming_salt_crystal.png"},
|
||||||
groups = { dig_immediate = 3, attached_node = 1},
|
groups = {dig_immediate = 3, attached_node = 1},
|
||||||
sounds = farming.sounds.node_sound_defaults(),
|
sounds = farming.sounds.node_sound_defaults(),
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25}
|
fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25}
|
||||||
}
|
},
|
||||||
|
_mcl_hardness = 0.8,
|
||||||
|
_mcl_blast_resistance = 1
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
Loading…
Reference in New Issue
Block a user