Add soul_group to s.soil&sand, torch fix recpipe

This commit is contained in:
cora 2022-05-24 13:24:22 +02:00
parent 1931a85f24
commit 11e8e7d4cc
3 changed files with 7 additions and 6 deletions

@ -103,6 +103,7 @@ Please read <http://minecraft.gamepedia.com/Breaking> to learn how digging times
* `enchantability=X`: How good the enchantments are the item gets (1 equals book) * `enchantability=X`: How good the enchantments are the item gets (1 equals book)
* `enchanted=1`: The item is already enchanted, meaning that it can't be enchanted using an enchanting table * `enchanted=1`: The item is already enchanted, meaning that it can't be enchanted using an enchanting table
* `cobble=1`: Cobblestone of any kind * `cobble=1`: Cobblestone of any kind
* `soul_block`: Fire burning on these blocks turns to soul fire, can be used to craft soul torch
### Material groups ### Material groups

@ -124,7 +124,7 @@ minetest.register_node("mcl_blackstone:soul_soil", {
tiles = {"mcl_blackstone_soul_soil.png"}, tiles = {"mcl_blackstone_soul_soil.png"},
is_ground_content = false, is_ground_content = false,
sounds = mcl_sounds.node_sound_sand_defaults(), sounds = mcl_sounds.node_sound_sand_defaults(),
groups = {cracky = 3, handy=1, shovely=1}, groups = { cracky = 3, handy = 1, shovely = 1, soul_block = 1 },
_mcl_blast_resistance = 0.5, _mcl_blast_resistance = 0.5,
_mcl_hardness = 0.5, _mcl_hardness = 0.5,
}) })
@ -154,13 +154,13 @@ minetest.register_node("mcl_blackstone:soul_fire", {
groups = {fire = 1, dig_immediate = 3, not_in_creative_inventory = 1, dig_by_piston = 1, destroys_items = 1, set_on_fire=8}, groups = {fire = 1, dig_immediate = 3, not_in_creative_inventory = 1, dig_by_piston = 1, destroys_items = 1, set_on_fire=8},
floodable = true, floodable = true,
on_flood = function(pos, oldnode, newnode) on_flood = function(pos, oldnode, newnode)
if minetest.get_item_group(newnode.name, "water") ~= 0 then if minetest.get_item_group(newnode.name, "water") > 0 then
minetest.sound_play("fire_extinguish_flame", {pos = pos, gain = 0.25, max_hear_distance = 16}, true) minetest.sound_play("fire_extinguish_flame", {pos = pos, gain = 0.25, max_hear_distance = 16}, true)
end end
end, end,
on_construct=function(pos) on_construct=function(pos)
local under = minetest.get_node(vector.offset(pos,0,-1,0)).name local under = minetest.get_node(vector.offset(pos,0,-1,0)).name
if under ~= "mcl_nether:soul_sand" and under ~= "mcl_blackstone:soul_soil" then if minetest.get_item_group(under,"soul_block") > 0 then
minetest.swap_node(pos, {name = "air"}) minetest.swap_node(pos, {name = "air"})
end end
end end
@ -169,7 +169,7 @@ minetest.register_node("mcl_blackstone:soul_fire", {
local old_onconstruct=minetest.registered_nodes["mcl_fire:fire"].on_construct local old_onconstruct=minetest.registered_nodes["mcl_fire:fire"].on_construct
minetest.registered_nodes["mcl_fire:fire"].on_construct=function(pos) minetest.registered_nodes["mcl_fire:fire"].on_construct=function(pos)
local under = minetest.get_node(vector.offset(pos,0,-1,0)).name local under = minetest.get_node(vector.offset(pos,0,-1,0)).name
if under == "mcl_nether:soul_sand" or under == "mcl_blackstone:soul_soil" then if minetest.get_item_group(under,"soul_block") > 0 then
minetest.swap_node(pos, {name = "mcl_blackstone:soul_fire"}) minetest.swap_node(pos, {name = "mcl_blackstone:soul_fire"})
end end
old_onconstruct(pos) old_onconstruct(pos)
@ -366,7 +366,7 @@ minetest.register_craft({
output = "mcl_blackstone:soul_torch 4", output = "mcl_blackstone:soul_torch 4",
recipe = { recipe = {
{"group:coal"}, {"group:coal"},
{ "mcl_nether:soul_sand" },
{ "mcl_core:stick" }, { "mcl_core:stick" },
{ "group:soul_block" },
} }
}) })

@ -130,7 +130,7 @@ minetest.register_node("mcl_nether:soul_sand", {
stack_max = 64, stack_max = 64,
tiles = {"mcl_nether_soul_sand.png"}, tiles = {"mcl_nether_soul_sand.png"},
is_ground_content = true, is_ground_content = true,
groups = {handy=1,shovely=1, building_block=1,soil_nether_wart=1, material_sand=1}, groups = {handy = 1, shovely = 1, building_block = 1, soil_nether_wart = 1, material_sand = 1, soul_block = 1 },
collision_box = { collision_box = {
type = "fixed", type = "fixed",
fixed = { -0.5, -0.5, -0.5, 0.5, 0.5 - 2/16, 0.5 }, fixed = { -0.5, -0.5, -0.5, 0.5, 0.5 - 2/16, 0.5 },