1
0
Fork 0

Add more node groups

This commit is contained in:
Wuzzy 2019-12-13 10:20:08 +01:00
parent 7df94278cf
commit 1a02ccd36f
5 changed files with 29 additions and 18 deletions

View File

@ -56,6 +56,11 @@ Please read <http://minecraft.gamepedia.com/Breaking> to learn how digging times
* `anvil`: Anvil. 1: No damage. 2-3: Higher damage levels * `anvil`: Anvil. 1: No damage. 2-3: Higher damage levels
* `no_rename=1`: Item cannot be renamed by anvil * `no_rename=1`: Item cannot be renamed by anvil
* `comparator_signal=X`: If set, this node outputs a constant (!) comparator signal output of strength X. * `comparator_signal=X`: If set, this node outputs a constant (!) comparator signal output of strength X.
* `piston=X`: Piston (main body) (1 = normal, 2 = sticky)
* `piston_pusher=X`: Piston pusher (1 = normal, 2 = sticky)
* `hopper=X`: Hopper (1 = downwards, 2 = sideways)
* `portal=1`: Portal (node that teleports players and things by standing inside)
* `end_portal_frame=X`: End portal frame (1 = no eye, 2 = with eye)
#### Footnotes #### Footnotes

View File

@ -188,7 +188,7 @@ minetest.register_node("mesecons_pistons:piston_normal_off", {
"mesecons_piston_back.png", "mesecons_piston_back.png",
"mesecons_piston_pusher_front.png" "mesecons_piston_pusher_front.png"
}, },
groups = {handy = 1}, groups = {handy = 1, piston=1},
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
is_ground_content = false, is_ground_content = false,
@ -220,7 +220,7 @@ minetest.register_node("mesecons_pistons:piston_normal_on", {
"mesecons_piston_back.png", "mesecons_piston_back.png",
"mesecons_piston_on_front.png" "mesecons_piston_on_front.png"
}, },
groups = {handy=1, not_in_creative_inventory = 1}, groups = {handy=1, piston=1, not_in_creative_inventory = 1},
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
is_ground_content = false, is_ground_content = false,
@ -252,6 +252,7 @@ minetest.register_node("mesecons_pistons:piston_pusher_normal", {
}, },
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
groups = { piston_pusher = 1 },
is_ground_content = false, is_ground_content = false,
after_destruct = piston_remove_base, after_destruct = piston_remove_base,
diggable = false, diggable = false,
@ -290,7 +291,7 @@ minetest.register_node("mesecons_pistons:piston_sticky_off", {
"mesecons_piston_back.png", "mesecons_piston_back.png",
"mesecons_piston_pusher_front_sticky.png" "mesecons_piston_pusher_front_sticky.png"
}, },
groups = {handy=1}, groups = {handy=1, piston=2},
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
is_ground_content = false, is_ground_content = false,
@ -322,7 +323,7 @@ minetest.register_node("mesecons_pistons:piston_sticky_on", {
"mesecons_piston_back.png", "mesecons_piston_back.png",
"mesecons_piston_on_front.png" "mesecons_piston_on_front.png"
}, },
groups = {handy=1, not_in_creative_inventory = 1}, groups = {handy=1, piston=2, not_in_creative_inventory = 1},
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
is_ground_content = false, is_ground_content = false,
@ -354,6 +355,7 @@ minetest.register_node("mesecons_pistons:piston_pusher_sticky", {
}, },
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
groups = { piston_pusher = 2 },
is_ground_content = false, is_ground_content = false,
after_destruct = piston_remove_base, after_destruct = piston_remove_base,
diggable = false, diggable = false,
@ -406,7 +408,7 @@ minetest.register_node("mesecons_pistons:piston_up_normal_off", {
"mesecons_piston_bottom.png", "mesecons_piston_bottom.png",
"mesecons_piston_bottom.png", "mesecons_piston_bottom.png",
}, },
groups = {handy=1, not_in_creative_inventory = 1}, groups = {handy=1, piston=1, not_in_creative_inventory = 1},
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
is_ground_content = false, is_ground_content = false,
@ -441,7 +443,7 @@ minetest.register_node("mesecons_pistons:piston_up_normal_on", {
"mesecons_piston_bottom.png", "mesecons_piston_bottom.png",
"mesecons_piston_bottom.png", "mesecons_piston_bottom.png",
}, },
groups = {hanry=1, not_in_creative_inventory = 1}, groups = {handy=1, piston_=1, not_in_creative_inventory = 1},
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
is_ground_content = false, is_ground_content = false,
@ -473,6 +475,7 @@ minetest.register_node("mesecons_pistons:piston_up_pusher_normal", {
}, },
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
groups = { piston_pusher = 1 },
is_ground_content = false, is_ground_content = false,
after_destruct = piston_remove_base, after_destruct = piston_remove_base,
diggable = false, diggable = false,
@ -508,7 +511,7 @@ minetest.register_node("mesecons_pistons:piston_up_sticky_off", {
"mesecons_piston_bottom.png", "mesecons_piston_bottom.png",
"mesecons_piston_bottom.png", "mesecons_piston_bottom.png",
}, },
groups = {handy=1, not_in_creative_inventory = 1}, groups = {handy=1, piston=2, not_in_creative_inventory = 1},
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
is_ground_content = false, is_ground_content = false,
@ -543,7 +546,7 @@ minetest.register_node("mesecons_pistons:piston_up_sticky_on", {
"mesecons_piston_bottom.png", "mesecons_piston_bottom.png",
"mesecons_piston_bottom.png", "mesecons_piston_bottom.png",
}, },
groups = {handy=1, not_in_creative_inventory = 1}, groups = {handy=1, piston=2, not_in_creative_inventory = 1},
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
is_ground_content = false, is_ground_content = false,
@ -575,6 +578,7 @@ minetest.register_node("mesecons_pistons:piston_up_pusher_sticky", {
}, },
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
groups = { piston_pusher = 2 },
is_ground_content = false, is_ground_content = false,
after_destruct = piston_remove_base, after_destruct = piston_remove_base,
diggable = false, diggable = false,
@ -629,7 +633,7 @@ minetest.register_node("mesecons_pistons:piston_down_normal_off", {
"mesecons_piston_bottom.png^[transformR180", "mesecons_piston_bottom.png^[transformR180",
"mesecons_piston_bottom.png^[transformR180", "mesecons_piston_bottom.png^[transformR180",
}, },
groups = {handy=1, not_in_creative_inventory = 1}, groups = {handy=1, piston=1, not_in_creative_inventory = 1},
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
is_ground_content = false, is_ground_content = false,
@ -662,7 +666,7 @@ minetest.register_node("mesecons_pistons:piston_down_normal_on", {
"mesecons_piston_bottom.png^[transformR180", "mesecons_piston_bottom.png^[transformR180",
"mesecons_piston_bottom.png^[transformR180", "mesecons_piston_bottom.png^[transformR180",
}, },
groups = {handy=1, not_in_creative_inventory = 1}, groups = {handy=1, piston=1, not_in_creative_inventory = 1},
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
is_ground_content = false, is_ground_content = false,
@ -694,6 +698,7 @@ minetest.register_node("mesecons_pistons:piston_down_pusher_normal", {
}, },
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
groups = { piston_pusher = 1 },
is_ground_content = false, is_ground_content = false,
after_destruct = piston_remove_base, after_destruct = piston_remove_base,
diggable = false, diggable = false,
@ -726,7 +731,7 @@ minetest.register_node("mesecons_pistons:piston_down_sticky_off", {
"mesecons_piston_bottom.png^[transformR180", "mesecons_piston_bottom.png^[transformR180",
"mesecons_piston_bottom.png^[transformR180", "mesecons_piston_bottom.png^[transformR180",
}, },
groups = {handy=1, not_in_creative_inventory = 1}, groups = {handy=1, piston=2, not_in_creative_inventory = 1},
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
is_ground_content = false, is_ground_content = false,
@ -759,7 +764,7 @@ minetest.register_node("mesecons_pistons:piston_down_sticky_on", {
"mesecons_piston_bottom.png^[transformR180", "mesecons_piston_bottom.png^[transformR180",
"mesecons_piston_bottom.png^[transformR180", "mesecons_piston_bottom.png^[transformR180",
}, },
groups = {handy=1, not_in_creative_inventory = 1}, groups = {handy=1, piston=1, not_in_creative_inventory = 1},
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
is_ground_content = false, is_ground_content = false,
@ -791,6 +796,7 @@ minetest.register_node("mesecons_pistons:piston_down_pusher_sticky", {
}, },
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
groups = { piston_pusher = 2 },
is_ground_content = false, is_ground_content = false,
after_destruct = piston_remove_base, after_destruct = piston_remove_base,
diggable = false, diggable = false,

View File

@ -21,7 +21,7 @@ local mcl_hoppers_formspec =
local def_hopper = { local def_hopper = {
inventory_image = "mcl_hoppers_item.png", inventory_image = "mcl_hoppers_item.png",
wield_image = "mcl_hoppers_item.png", wield_image = "mcl_hoppers_item.png",
groups = {pickaxey=1, container=2,deco_block=1,}, groups = {pickaxey=1, container=2,deco_block=1,hopper=1},
drawtype = "nodebox", drawtype = "nodebox",
paramtype = "light", paramtype = "light",
-- FIXME: mcl_hoppers_hopper_inside.png is unused by hoppers. -- FIXME: mcl_hoppers_hopper_inside.png is unused by hoppers.
@ -208,7 +208,7 @@ end
local def_hopper_side = { local def_hopper_side = {
_doc_items_create_entry = false, _doc_items_create_entry = false,
drop = "mcl_hoppers:hopper", drop = "mcl_hoppers:hopper",
groups = {pickaxey=1, container=2,not_in_creative_inventory=1}, groups = {pickaxey=1, container=2,not_in_creative_inventory=1,hopper=2},
drawtype = "nodebox", drawtype = "nodebox",
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",

View File

@ -59,7 +59,7 @@ minetest.register_node("mcl_portals:portal_end", {
{-0.5, -0.5, -0.5, 0.5, 4/16, 0.5}, {-0.5, -0.5, -0.5, 0.5, 4/16, 0.5},
}, },
}, },
groups = {not_in_creative_inventory = 1, disable_jump = 1 }, groups = {portal=1, not_in_creative_inventory = 1, disable_jump = 1},
_mcl_hardness = -1, _mcl_hardness = -1,
_mcl_blast_resistance = 18000000, _mcl_blast_resistance = 18000000,
@ -293,7 +293,7 @@ minetest.register_node("mcl_portals:end_portal_frame", {
description = S("End Portal Frame"), description = S("End Portal Frame"),
_doc_items_longdesc = S("End portal frames are used in the construction of End portals. Each block has a socket for an eye of ender.") .. "\n" .. S("NOTE: The End dimension is currently incomplete and might change in future versions."), _doc_items_longdesc = S("End portal frames are used in the construction of End portals. Each block has a socket for an eye of ender.") .. "\n" .. S("NOTE: The End dimension is currently incomplete and might change in future versions."),
_doc_items_usagehelp = S("To create an End portal, you need 12 end portal frames and 12 eyes of ender. The end portal frames have to be arranged around a horizontal 3×3 area with each block facing inward. Any other arrangement will fail.") .. "\n" .. S("Place an eye of ender into each block. The end portal appears in the middle after placing the final eye.") .. "\n" .. S("Once placed, an eye of ender can not be taken back."), _doc_items_usagehelp = S("To create an End portal, you need 12 end portal frames and 12 eyes of ender. The end portal frames have to be arranged around a horizontal 3×3 area with each block facing inward. Any other arrangement will fail.") .. "\n" .. S("Place an eye of ender into each block. The end portal appears in the middle after placing the final eye.") .. "\n" .. S("Once placed, an eye of ender can not be taken back."),
groups = { creative_breakable = 1, deco_block = 1 }, groups = { creative_breakable = 1, deco_block = 1, end_portal_frame = 1 },
tiles = { "mcl_portals_endframe_top.png", "mcl_portals_endframe_bottom.png", "mcl_portals_endframe_side.png" }, tiles = { "mcl_portals_endframe_top.png", "mcl_portals_endframe_bottom.png", "mcl_portals_endframe_side.png" },
paramtype2 = "facedir", paramtype2 = "facedir",
drawtype = "nodebox", drawtype = "nodebox",
@ -316,7 +316,7 @@ minetest.register_node("mcl_portals:end_portal_frame", {
minetest.register_node("mcl_portals:end_portal_frame_eye", { minetest.register_node("mcl_portals:end_portal_frame_eye", {
description = S("End Portal Frame with Eye of Ender"), description = S("End Portal Frame with Eye of Ender"),
_doc_items_create_entry = false, _doc_items_create_entry = false,
groups = { creative_breakable = 1, deco_block = 1, comparator_signal = 15 }, groups = { creative_breakable = 1, deco_block = 1, comparator_signal = 15, end_portal_frame = 2 },
tiles = { "mcl_portals_endframe_top.png^[lowpart:75:mcl_portals_endframe_eye.png", "mcl_portals_endframe_bottom.png", "mcl_portals_endframe_eye.png^mcl_portals_endframe_side.png" }, tiles = { "mcl_portals_endframe_top.png^[lowpart:75:mcl_portals_endframe_eye.png", "mcl_portals_endframe_bottom.png", "mcl_portals_endframe_eye.png^mcl_portals_endframe_side.png" },
paramtype2 = "facedir", paramtype2 = "facedir",
drawtype = "nodebox", drawtype = "nodebox",

View File

@ -127,7 +127,7 @@ minetest.register_node("mcl_portals:portal", {
{-0.5, -0.5, -0.1, 0.5, 0.5, 0.1}, {-0.5, -0.5, -0.1, 0.5, 0.5, 0.1},
}, },
}, },
groups = {not_in_creative_inventory = 1}, groups = {portal=1, not_in_creative_inventory = 1},
on_destruct = destroy_portal, on_destruct = destroy_portal,
_mcl_hardness = -1, _mcl_hardness = -1,