mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-12-28 00:07:29 +01:00
Fix onstate switch appearing the the creative inventory
This commit is contained in:
parent
f388dc475a
commit
e74241f4aa
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
mesecon.register_node("mesecons_switch:mesecon_switch", {
|
mesecon.register_node("mesecons_switch:mesecon_switch", {
|
||||||
paramtype2="facedir",
|
paramtype2="facedir",
|
||||||
groups = {dig_immediate=2},
|
|
||||||
description="Switch",
|
description="Switch",
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
on_punch = function (pos, node)
|
on_punch = function (pos, node)
|
||||||
@ -14,11 +13,13 @@ mesecon.register_node("mesecons_switch:mesecon_switch", {
|
|||||||
minetest.sound_play("mesecons_switch", {pos=pos})
|
minetest.sound_play("mesecons_switch", {pos=pos})
|
||||||
end
|
end
|
||||||
},{
|
},{
|
||||||
|
groups = {dig_immediate=2},
|
||||||
tiles = { "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png",
|
tiles = { "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png",
|
||||||
"jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png",
|
"jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png",
|
||||||
"jeija_mesecon_switch_side.png", "jeija_mesecon_switch_off.png"},
|
"jeija_mesecon_switch_side.png", "jeija_mesecon_switch_off.png"},
|
||||||
mesecons = {receptor = { state = mesecon.state.off }}
|
mesecons = {receptor = { state = mesecon.state.off }}
|
||||||
},{
|
},{
|
||||||
|
groups = {dig_immediate=2, not_in_creative_inventory=1},
|
||||||
tiles = { "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png",
|
tiles = { "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png",
|
||||||
"jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png",
|
"jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png",
|
||||||
"jeija_mesecon_switch_side.png", "jeija_mesecon_switch_on.png"},
|
"jeija_mesecon_switch_side.png", "jeija_mesecon_switch_on.png"},
|
||||||
|
Loading…
Reference in New Issue
Block a user