mirror of
https://github.com/sirrobzeroone/elepower.git
synced 2024-11-30 18:43:49 +01:00
Teleporter recipes
This commit is contained in:
parent
51a96687b5
commit
54be1f66a0
@ -80,7 +80,7 @@ minetest.register_craftitem("elepower_dynamics:zinc_lump", {
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("elepower_dynamics:xycrone_lump", {
|
minetest.register_craftitem("elepower_dynamics:xycrone_lump", {
|
||||||
description = "Xycrone\nUsed for Quantum Superpositioning\nUnstable",
|
description = "Xycrone\nUsed for Quantum Entanglement\nUnstable",
|
||||||
inventory_image = "elepower_xycrone.png",
|
inventory_image = "elepower_xycrone.png",
|
||||||
groups = {xycrone = 1, lump = 1}
|
groups = {xycrone = 1, lump = 1}
|
||||||
})
|
})
|
||||||
|
@ -0,0 +1,40 @@
|
|||||||
|
|
||||||
|
-- Receiver
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "elepower_wireless:matter_receiver",
|
||||||
|
recipe = {
|
||||||
|
{"elepower_dynamics:wound_silver_coil", "elepower_dynamics:soc", "elepower_dynamics:wound_silver_coil"},
|
||||||
|
{"elepower_dynamics:electrum_gear", "default:steelblock", "elepower_dynamics:electrum_gear"},
|
||||||
|
{"elepower_dynamics:xycrone_lump", "elepower_dynamics:viridisium_ingot", "elepower_dynamics:xycrone_lump"},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Transmitter
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "elepower_wireless:matter_transmitter",
|
||||||
|
recipe = {
|
||||||
|
{"elepower_dynamics:wound_silver_coil", "elepower_dynamics:soc", "elepower_dynamics:wound_silver_coil"},
|
||||||
|
{"elepower_dynamics:xycrone_lump", "default:steelblock", "elepower_dynamics:xycrone_lump"},
|
||||||
|
{"elepower_dynamics:electrum_gear", "elepower_dynamics:viridisium_ingot", "elepower_dynamics:electrum_gear"},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Dialler
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "elepower_wireless:dialler",
|
||||||
|
recipe = {
|
||||||
|
{"elepower_dynamics:wound_silver_coil", "elepower_dynamics:soc", "elepower_dynamics:wound_silver_coil"},
|
||||||
|
{"elepower_dynamics:wound_copper_coil", "default:steelblock", "elepower_dynamics:wound_copper_coil"},
|
||||||
|
{"elepower_dynamics:electrum_gear", "elepower_dynamics:viridisium_ingot", "elepower_dynamics:electrum_gear"},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Wireless Porter
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "elepower_wireless:wireless_porter",
|
||||||
|
recipe = {
|
||||||
|
{"elepower_dynamics:wound_silver_coil", "elepower_dynamics:xycrone_lump", "elepower_dynamics:wound_silver_coil"},
|
||||||
|
{"elepower_dynamics:xycrone_lump", "elepower_dynamics:copper_wire", "elepower_dynamics:xycrone_lump"},
|
||||||
|
{"elepower_dynamics:wound_silver_coil", "elepower_dynamics:xycrone_lump", "elepower_dynamics:wound_silver_coil"},
|
||||||
|
}
|
||||||
|
})
|
@ -118,7 +118,7 @@ local function dialler_timer(pos)
|
|||||||
ele.helpers.swap_node(pos, "elepower_wireless:dialler")
|
ele.helpers.swap_node(pos, "elepower_wireless:dialler")
|
||||||
end
|
end
|
||||||
|
|
||||||
local transmitters = get_transmitters_in_range(pos, player, transmitter, 16)
|
local transmitters = get_transmitters_in_range(pos, player, transmitter, 8)
|
||||||
local receivers = {}
|
local receivers = {}
|
||||||
if transmitter then
|
if transmitter then
|
||||||
receivers = get_player_receivers(player)
|
receivers = get_player_receivers(player)
|
||||||
@ -136,6 +136,13 @@ ele.register_machine("elepower_wireless:dialler", {
|
|||||||
"elewireless_device_side.png", "elewireless_device_side.png", "elewireless_device_side.png",
|
"elewireless_device_side.png", "elewireless_device_side.png", "elewireless_device_side.png",
|
||||||
"elewireless_device_side.png", "elewireless_device_side.png", "elewireless_dialler_inactive.png"
|
"elewireless_device_side.png", "elewireless_device_side.png", "elewireless_dialler_inactive.png"
|
||||||
},
|
},
|
||||||
|
drawtype = "nodebox",
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{-0.5000, -0.5000, 0.4375, 0.5000, 0.5000, 0.5000}
|
||||||
|
}
|
||||||
|
},
|
||||||
ele_active_node = true,
|
ele_active_node = true,
|
||||||
ele_active_nodedef = {
|
ele_active_nodedef = {
|
||||||
tiles = {
|
tiles = {
|
||||||
@ -172,7 +179,7 @@ ele.register_machine("elepower_wireless:dialler", {
|
|||||||
local trans = minetest.string_to_pos(meta:get_string("transmitter"))
|
local trans = minetest.string_to_pos(meta:get_string("transmitter"))
|
||||||
|
|
||||||
local player = sender:get_player_name()
|
local player = sender:get_player_name()
|
||||||
local transmitters = get_transmitters_in_range(pos, player, trans, 16)
|
local transmitters = get_transmitters_in_range(pos, player, trans, 8)
|
||||||
local receivers = {}
|
local receivers = {}
|
||||||
if trans then
|
if trans then
|
||||||
receivers = get_player_receivers(player)
|
receivers = get_player_receivers(player)
|
||||||
|
@ -1,6 +1,13 @@
|
|||||||
|
|
||||||
local mp = elewi.modpath .. "/machines/"
|
local mp = elewi.modpath .. "/machines/"
|
||||||
|
|
||||||
|
elewi.slab_nodebox = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{-0.5000, -0.5000, -0.5000, 0.5000, -0.4375, 0.5000}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
dofile(mp .. "matter_receiver.lua")
|
dofile(mp .. "matter_receiver.lua")
|
||||||
dofile(mp .. "matter_transmitter.lua")
|
dofile(mp .. "matter_transmitter.lua")
|
||||||
dofile(mp .. "dialler.lua")
|
dofile(mp .. "dialler.lua")
|
||||||
|
@ -68,6 +68,8 @@ ele.register_machine("elepower_wireless:matter_receiver", {
|
|||||||
"elewireless_teleport_top.png", "elewireless_device_side.png^elepower_power_port.png", "elewireless_device_side.png",
|
"elewireless_teleport_top.png", "elewireless_device_side.png^elepower_power_port.png", "elewireless_device_side.png",
|
||||||
"elewireless_device_side.png", "elewireless_device_side.png", "elewireless_device_side.png"
|
"elewireless_device_side.png", "elewireless_device_side.png", "elewireless_device_side.png"
|
||||||
},
|
},
|
||||||
|
drawtype = "nodebox",
|
||||||
|
node_box = elewi.slab_nodebox,
|
||||||
ele_active_node = true,
|
ele_active_node = true,
|
||||||
ele_active_nodedef = {
|
ele_active_nodedef = {
|
||||||
tiles = {
|
tiles = {
|
||||||
|
@ -75,6 +75,8 @@ ele.register_machine("elepower_wireless:matter_transmitter", {
|
|||||||
"elewireless_teleport_top.png", "elewireless_device_side.png^elepower_power_port.png", "elewireless_device_side.png",
|
"elewireless_teleport_top.png", "elewireless_device_side.png^elepower_power_port.png", "elewireless_device_side.png",
|
||||||
"elewireless_device_side.png", "elewireless_device_side.png", "elewireless_device_side.png"
|
"elewireless_device_side.png", "elewireless_device_side.png", "elewireless_device_side.png"
|
||||||
},
|
},
|
||||||
|
drawtype = "nodebox",
|
||||||
|
node_box = elewi.slab_nodebox,
|
||||||
ele_active_node = true,
|
ele_active_node = true,
|
||||||
ele_active_nodedef = {
|
ele_active_nodedef = {
|
||||||
tiles = {
|
tiles = {
|
||||||
|
Loading…
Reference in New Issue
Block a user