1
0
Fork 0

Add hardness to farming stuff

This commit is contained in:
Wuzzy 2017-02-27 01:26:07 +01:00
parent 94f66c77ed
commit 4bf05de37d
3 changed files with 10 additions and 5 deletions

View File

@ -2,7 +2,7 @@ minetest.register_node("mcl_farming:melon", {
description = "Melon", description = "Melon",
stack_max = 64, stack_max = 64,
tiles = {"farming_melon_top.png", "farming_melon_top.png", "farming_melon_side.png", "farming_melon_side.png", "farming_melon_side.png", "farming_melon_side.png"}, tiles = {"farming_melon_top.png", "farming_melon_top.png", "farming_melon_side.png", "farming_melon_side.png", "farming_melon_side.png", "farming_melon_side.png"},
groups = {choppy=2, oddly_breakable_by_hand=2, building_block=1}, groups = {handy=1,axey=1, oddly_breakable_by_hand=2, building_block=1},
drop = { drop = {
max_items = 1, max_items = 1,
items = { items = {
@ -36,6 +36,7 @@ minetest.register_node("mcl_farming:melon", {
end, end,
sounds = mcl_sounds.node_sound_wood_defaults(), sounds = mcl_sounds.node_sound_wood_defaults(),
_mcl_blast_resistance = 5, _mcl_blast_resistance = 5,
_mcl_hardness = 1,
}) })
local stemdrop = { local stemdrop = {

View File

@ -73,7 +73,7 @@ minetest.register_node("mcl_farming:pumpkin_face", {
stack_max = 64, stack_max = 64,
paramtype2 = "facedir", paramtype2 = "facedir",
tiles = {"farming_pumpkin_top.png", "farming_pumpkin_top.png", "farming_pumpkin_side.png", "farming_pumpkin_side.png", "farming_pumpkin_side.png", "farming_pumpkin_face.png"}, tiles = {"farming_pumpkin_top.png", "farming_pumpkin_top.png", "farming_pumpkin_side.png", "farming_pumpkin_side.png", "farming_pumpkin_side.png", "farming_pumpkin_face.png"},
groups = {choppy=2, oddly_breakable_by_hand=2, building_block=1}, groups = {handy=1,axey=1, building_block=1},
after_dig_node = function(pos, oldnode, oldmetadata, user) after_dig_node = function(pos, oldnode, oldmetadata, user)
local have_change = 0 local have_change = 0
for x=-1,1 do for x=-1,1 do
@ -97,6 +97,7 @@ minetest.register_node("mcl_farming:pumpkin_face", {
end, end,
sounds = mcl_sounds.node_sound_wood_defaults(), sounds = mcl_sounds.node_sound_wood_defaults(),
_mcl_blast_resistance = 5, _mcl_blast_resistance = 5,
_mcl_hardness = 1,
}) })
minetest.register_node("mcl_farming:pumpkintige_unconnect", { minetest.register_node("mcl_farming:pumpkintige_unconnect", {
@ -303,9 +304,10 @@ minetest.register_node("mcl_farming:pumpkin_face_light", {
-- Real light level: 15 (Minetest caps at 14) -- Real light level: 15 (Minetest caps at 14)
light_source = 14, light_source = 14,
tiles = {"farming_pumpkin_top.png", "farming_pumpkin_top.png", "farming_pumpkin_side.png", "farming_pumpkin_side.png", "farming_pumpkin_side.png", "farming_pumpkin_face_light.png"}, tiles = {"farming_pumpkin_top.png", "farming_pumpkin_top.png", "farming_pumpkin_side.png", "farming_pumpkin_side.png", "farming_pumpkin_side.png", "farming_pumpkin_face_light.png"},
groups = {choppy=2, oddly_breakable_by_hand=2, building_block=1}, groups = {handy=1,axey=1, building_block=1},
sounds = mcl_sounds.node_sound_wood_defaults(), sounds = mcl_sounds.node_sound_wood_defaults(),
_mcl_blast_resistance = 5, _mcl_blast_resistance = 5,
_mcl_hardness = 1,
}) })
minetest.register_craft({ minetest.register_craft({

View File

@ -11,9 +11,10 @@ minetest.register_node("mcl_farming:soil", {
{-0.5, -0.5, -0.5, 0.5, 0.4375, 0.5}, {-0.5, -0.5, -0.5, 0.5, 0.4375, 0.5},
} }
}, },
groups = { crumbly=3, not_in_creative_inventory=1, soil=2, soil_sapling=1 }, groups = {handy=1,shovely=1, not_in_creative_inventory=1, soil=2, soil_sapling=1 },
sounds = mcl_sounds.node_sound_dirt_defaults(), sounds = mcl_sounds.node_sound_dirt_defaults(),
_mcl_blast_resistance = 3, _mcl_blast_resistance = 3,
_mcl_hardness = 0.9,
}) })
minetest.register_node("mcl_farming:soil_wet", { minetest.register_node("mcl_farming:soil_wet", {
@ -28,9 +29,10 @@ minetest.register_node("mcl_farming:soil_wet", {
{-0.5, -0.5, -0.5, 0.5, 0.4375, 0.5}, {-0.5, -0.5, -0.5, 0.5, 0.4375, 0.5},
} }
}, },
groups = { crumbly=3, not_in_creative_inventory=1, soil=3, soil_sapling=1 }, groups = {handy=1,shovely=1, not_in_creative_inventory=1, soil=3, soil_sapling=1 },
sounds = mcl_sounds.node_sound_dirt_defaults(), sounds = mcl_sounds.node_sound_dirt_defaults(),
_mcl_blast_resistance = 3, _mcl_blast_resistance = 3,
_mcl_hardness = 0.9,
}) })
minetest.register_abm({ minetest.register_abm({