Fix bug with blueberry bushes. Make permafrost dig like gravel (#723)

I repaired bug with blueberry bush, which dropped unknown item (blueberries). I also made all types of permafrost "crumbly = 2", so they will be diggable by hand (same as gravel).
This commit is contained in:
Axaxax88 2020-12-22 16:34:41 +01:00 committed by GitHub
parent 678689eb58
commit a37be6ba54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -500,7 +500,7 @@ minetest.register_node("default:dirt_with_coniferous_litter", {
minetest.register_node("default:permafrost", { minetest.register_node("default:permafrost", {
description = "Permafrost", description = "Permafrost",
tiles = {"default_permafrost.png"}, tiles = {"default_permafrost.png"},
groups = {cracky = 3}, groups = {cracky = 3, crumbly = 2},
sounds = default.node_sound_dirt_defaults(), sounds = default.node_sound_dirt_defaults(),
}) })
@ -508,7 +508,7 @@ minetest.register_node("default:permafrost_with_stones", {
description = "Permafrost with Stones", description = "Permafrost with Stones",
tiles = {"default_permafrost.png^default_stones.png", tiles = {"default_permafrost.png^default_stones.png",
"default_permafrost.png"}, "default_permafrost.png"},
groups = {cracky = 3}, groups = {cracky = 3, crumbly = 2},
drop = "default:permafrost", drop = "default:permafrost",
sounds = default.node_sound_gravel_defaults(), sounds = default.node_sound_gravel_defaults(),
}) })
@ -518,7 +518,7 @@ minetest.register_node("default:permafrost_with_moss", {
tiles = {"default_moss.png", "default_permafrost.png", tiles = {"default_moss.png", "default_permafrost.png",
{name = "default_permafrost.png^default_moss_side.png", {name = "default_permafrost.png^default_moss_side.png",
tileable_vertical = false}}, tileable_vertical = false}},
groups = {cracky = 3}, groups = {cracky = 3, crumbly = 2},
drop = "default:permafrost", drop = "default:permafrost",
sounds = default.node_sound_dirt_defaults({ sounds = default.node_sound_dirt_defaults({
footstep = {name = "default_grass_footstep", gain = 0.25}, footstep = {name = "default_grass_footstep", gain = 0.25},
@ -1284,14 +1284,9 @@ minetest.register_node("default:blueberry_bush_leaves_with_berries", {
waving = 1, waving = 1,
tiles = {"default_blueberry_bush_leaves.png^default_blueberry_overlay.png"}, tiles = {"default_blueberry_bush_leaves.png^default_blueberry_overlay.png"},
paramtype = "light", paramtype = "light",
groups = {snappy = 3, flammable = 2, leaves = 1, dig_immediate = 3}, groups = {snappy = 3, flammable = 2, leaves = 1},
drop = "default:blueberries", drop = "default:blueberry_bush_leaves",
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
node_dig_prediction = "default:blueberry_bush_leaves",
after_dig_node = function(pos, oldnode, oldmetadata, digger)
minetest.set_node(pos, {name = "default:blueberry_bush_leaves"})
end,
}) })
minetest.register_node("default:blueberry_bush_leaves", { minetest.register_node("default:blueberry_bush_leaves", {