remove default dependecy

This commit is contained in:
2022-08-18 16:45:50 +02:00
parent 3165cba518
commit 2dc5e5623b
13 changed files with 29 additions and 173 deletions
+10 -17
View File
@@ -107,10 +107,9 @@ after_place_node = function(pos, placer)
end,
tiles = {"default_steel_block.png"},
tiles = {"steel_block.png"},
groups = {mesecon=2,snappy = 3, not_in_creative_inventory=0},
sounds = default.node_sound_stone_defaults(),
is_ground_content = false,
is_ground_content = false,
--mesecons = {receptor = {state = "off"}},
mesecons = {
@@ -138,10 +137,9 @@ minetest.register_node("mesetec:objdec", {
on_rightclick = function(pos, node, player, itemstack, pointed_thing)
mesetec.form1(pos,player,"obj")
end,
tiles = {"default_steel_block.png","jeija_object_detector_off.png^[transform2"},
tiles = {"steel_block.png","jeija_object_detector_off.png^[transform2"},
groups = {mesecon=2,snappy = 3, not_in_creative_inventory=0},
sounds = default.node_sound_stone_defaults(),
is_ground_content = false,
is_ground_content = false,
mesecons = {receptor = {state = "off"}},
on_construct = function(pos)
if not mesecon then return false end
@@ -168,10 +166,9 @@ minetest.register_node("mesetec:objdec2", {
on_rightclick = function(pos, node, player, itemstack, pointed_thing)
mesetec.form1(pos,player,"obj")
end,
tiles = {"default_steel_block.png","jeija_object_detector_on.png^[transform2"},
tiles = {"steel_block.png","jeija_object_detector_on.png^[transform2"},
groups = {mesecon=2,snappy = 3, not_in_creative_inventory=1},
sounds = default.node_sound_stone_defaults(),
is_ground_content = false,
is_ground_content = false,
mesecons = {receptor = {state = "on"}},
on_timer = function (pos, elapsed)
local meta=minetest.get_meta(pos)
@@ -199,8 +196,7 @@ on_rightclick = function(pos, node, player, itemstack, pointed_thing)
end,
tiles = {"mesetec_ttp.png"},
groups = {mesecon=2,snappy = 3, not_in_creative_inventory=0},
sounds = default.node_sound_stone_defaults(),
is_ground_content = false,
is_ground_content = false,
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
@@ -234,8 +230,7 @@ minetest.register_node("mesetec:mtptarget", {
description = "Mese teleport target",
tiles = {"mesetec_ttp_target.png"},
groups = {mesecon=2,snappy = 3, not_in_creative_inventory=0},
sounds = default.node_sound_stone_defaults(),
is_ground_content = false,
is_ground_content = false,
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
@@ -256,8 +251,7 @@ minetest.register_node("mesetec:ptp", {
description = "Player teleport",
tiles = {"mesetec_ptp.png"},
groups = {mesecon=2,snappy = 3, not_in_creative_inventory=0},
sounds = default.node_sound_stone_defaults(),
is_ground_content = false,
is_ground_content = false,
mesecons = {effector = {
action_on = function (pos, node)
local names={}
@@ -284,8 +278,7 @@ minetest.register_node("mesetec:ptptarget", {
description = "Player teleport target",
tiles = {"mesetecptp_target.png"},
groups = {mesecon=2,snappy = 3, not_in_creative_inventory=0},
sounds = default.node_sound_stone_defaults(),
is_ground_content = false,
is_ground_content = false,
walkable = false,
mesecons = {effector = {
action_on = function (pos, node)