Removed some duplicated blocks

This commit is contained in:
JoseDouglas26 2024-06-10 07:36:31 -03:00
parent 08a84a28f4
commit 0dd50fb296
3 changed files with 0 additions and 113 deletions

View File

@ -1,13 +1,6 @@
-- Building blocks and decorative nodes
local S = minetest.get_translator(minetest.get_current_modname())
local mod_screwdriver = minetest.get_modpath("screwdriver")
local on_rotate
if mod_screwdriver then
on_rotate = screwdriver.rotate_3way
end
minetest.register_node("mcl_end:end_stone", {
description = S("End Stone"),
_doc_items_longdesc = doc.sub.items.temp.build,
@ -20,73 +13,6 @@ minetest.register_node("mcl_end:end_stone", {
_mcl_hardness = 3,
})
local end_rod_name = "mcl_end:end_rod"
local end_rod_def = {
description = S("End Rod"),
_doc_items_longdesc = S("End rods are decorative light sources."),
tiles = {
"mcl_end_end_rod.png",
},
drawtype = "mesh",
mesh = "mcl_end_rod.obj",
is_ground_content = false,
paramtype = "light",
paramtype2 = "facedir",
light_source = minetest.LIGHT_MAX,
sunlight_propagates = true,
groups = { dig_immediate=3, deco_block=1, destroy_by_lava_flow=1, end_rod=1 },
use_texture_alpha = "clip",
selection_box = {
type = "fixed",
fixed = {
{-0.125, -0.5, -0.125, 0.125, 0.5, 0.125}, -- Base
},
},
collision_box = {
type = "fixed",
fixed = {
{-0.125, -0.5, -0.125, 0.125, 0.5, 0.125}, -- Base
},
},
on_place = function(itemstack, placer, pointed_thing)
if pointed_thing.type ~= "node" then
return itemstack
end
local p0 = pointed_thing.under
local p1 = pointed_thing.above
local param2 = 0
local placer_pos = placer:get_pos()
if placer_pos then
local dir = {
x = p1.x - placer_pos.x,
y = p1.y - placer_pos.y,
z = p1.z - placer_pos.z
}
param2 = minetest.dir_to_facedir(dir)
end
if p0.y - 1 == p1.y then
param2 = 20
elseif p0.x - 1 == p1.x then
param2 = 16
elseif p0.x + 1 == p1.x then
param2 = 12
elseif p0.z - 1 == p1.z then
param2 = 8
elseif p0.z + 1 == p1.z then
param2 = 4
end
return minetest.item_place(itemstack, placer, pointed_thing, param2)
end,
sounds = mcl_sounds.node_sound_glass_defaults(),
_mcl_blast_resistance = 0,
}
minetest.register_node(end_rod_name, end_rod_def)
minetest.register_node("mcl_end:dragon_egg", {
description = S("Dragon Egg"),
_doc_items_longdesc = S("A dragon egg is a decorative item which can be placed."),

View File

@ -189,28 +189,6 @@ mcl_farming:add_gourd("mcl_farming:pumpkintige_unconnect", "mcl_farming:pumpkint
pumpkin_face_base_def.after_destruct = minetest.registered_nodes["mcl_farming:pumpkin"].after_destruct
minetest.register_node("mcl_farming:pumpkin_face", pumpkin_face_base_def)
-- Jack o'Lantern
minetest.register_node("mcl_farming:pumpkin_face_light", {
description = S("Jack o'Lantern"),
_doc_items_longdesc = S("A jack o'lantern is a traditional Halloween decoration made from a pumpkin. It glows brightly."),
is_ground_content = false,
stack_max = 64,
paramtype = "light",
paramtype2 = "facedir",
light_source = minetest.LIGHT_MAX,
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 = {handy=1, axey=1, pumpkin=1, building_block=1, dig_by_piston=1 },
sounds = mcl_sounds.node_sound_wood_defaults(),
on_construct = function(pos)
-- Attempt to spawn iron golem or snow golem
mobs_mc.check_iron_golem_summon(pos)
mobs_mc.check_snow_golem_summon(pos)
end,
on_rotate = on_rotate,
_mcl_blast_resistance = 1,
_mcl_hardness = 1,
})
-- Crafting
minetest.register_craft({

View File

@ -61,23 +61,6 @@ minetest.register_craftitem("mcl_honey:honeycomb", {
end,
})
minetest.register_node("mcl_honey:honeycomb_block", {
description = S("Honeycomb Block"),
_doc_items_longdesc = S("Honeycomb Block. Used as a decoration."),
tiles = {
"mcl_honey_honeycomb_block.png"
},
groups = { handy = 1, deco_block = 1 },
sounds = {
dig = { name = "slimenodes_dug", gain = 0.6, pitch = 1.2 },
dug = { name = "slimenodes_dug", gain = 0.6 },
place = { name = "slimenodes_place", gain = 0.6 },
footstep = { name = "slimenodes_step", gain = 0.3 },
},
_mcl_blast_resistance = 0.6,
_mcl_hardness = 0.6,
})
-- Honey
minetest.register_craftitem("mcl_honey:honey_bottle", {
description = S("Honey Bottle"),