forked from VoxeLibre/VoxeLibre
Removed concrete-related blocks
This commit is contained in:
parent
61359d4af8
commit
bda75ad4b8
|
@ -94,61 +94,6 @@ for _, row in ipairs(block.dyes) do
|
||||||
_mcl_hardness = 1.25,
|
_mcl_hardness = 1.25,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("mcl_colorblocks:concrete_powder_"..name, {
|
|
||||||
description = sdesc_cp,
|
|
||||||
_tt_help = ltt_cp,
|
|
||||||
_doc_items_longdesc = ldesc_cp,
|
|
||||||
_doc_items_create_entry = create_entry,
|
|
||||||
_doc_items_entry_name = ename_cp,
|
|
||||||
tiles = {"mcl_colorblocks_concrete_powder_"..name..".png"},
|
|
||||||
groups = {handy=1,shovely=1, concrete_powder=1,building_block=1,falling_node=1, material_sand=1, float=1},
|
|
||||||
stack_max = 64,
|
|
||||||
is_ground_content = false,
|
|
||||||
sounds = mcl_sounds.node_sound_sand_defaults(),
|
|
||||||
on_place = function(itemstack, placer, pointed_thing)
|
|
||||||
if pointed_thing.type ~= "node" then
|
|
||||||
return itemstack
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Call on_rightclick if the pointed node defines it
|
|
||||||
local unode = minetest.get_node(pointed_thing.under)
|
|
||||||
if placer and not placer:get_player_control().sneak then
|
|
||||||
if minetest.registered_nodes[unode.name] and minetest.registered_nodes[unode.name].on_rightclick then
|
|
||||||
return minetest.registered_nodes[unode.name].on_rightclick(pointed_thing.under, unode, placer, itemstack) or itemstack
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
-- If placed in water, immediately harden this node
|
|
||||||
local n = minetest.get_node(pointed_thing.above)
|
|
||||||
local oldname = itemstack:get_name()
|
|
||||||
if minetest.get_item_group(n.name, "water") ~= 0 then
|
|
||||||
itemstack:set_name(itemstack:get_definition()._mcl_colorblocks_harden_to)
|
|
||||||
end
|
|
||||||
itemstack = minetest.item_place_node(itemstack, placer, pointed_thing)
|
|
||||||
itemstack:set_name(oldname)
|
|
||||||
return itemstack
|
|
||||||
end,
|
|
||||||
|
|
||||||
-- Specify the node to which this node will convert after getting in contact with water
|
|
||||||
_mcl_colorblocks_harden_to = "mcl_colorblocks:concrete_"..name,
|
|
||||||
_mcl_blast_resistance = 0.5,
|
|
||||||
_mcl_hardness = 0.5,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("mcl_colorblocks:concrete_"..name, {
|
|
||||||
description = sdesc_c,
|
|
||||||
_doc_items_longdesc = ldesc_c,
|
|
||||||
_doc_items_create_entry = create_entry,
|
|
||||||
_doc_items_entry_name = ename_c,
|
|
||||||
tiles = {"mcl_colorblocks_concrete_"..name..".png"},
|
|
||||||
groups = {handy=1,pickaxey=1, concrete=1,building_block=1, material_stone=1},
|
|
||||||
stack_max = 64,
|
|
||||||
is_ground_content = false,
|
|
||||||
sounds = mcl_sounds.node_sound_stone_defaults(),
|
|
||||||
_mcl_blast_resistance = 1.8,
|
|
||||||
_mcl_hardness = 1.8,
|
|
||||||
})
|
|
||||||
|
|
||||||
local tex = "mcl_colorblocks_glazed_terracotta_"..name..".png"
|
local tex = "mcl_colorblocks_glazed_terracotta_"..name..".png"
|
||||||
local texes = { tex, tex, tex.."^[transformR180", tex, tex.."^[transformR270", tex.."^[transformR90" }
|
local texes = { tex, tex, tex.."^[transformR180", tex, tex.."^[transformR270", tex.."^[transformR90" }
|
||||||
minetest.register_node("mcl_colorblocks:glazed_terracotta_"..name, {
|
minetest.register_node("mcl_colorblocks:glazed_terracotta_"..name, {
|
||||||
|
|
Loading…
Reference in New Issue