Teleporter recipes

This commit is contained in:
Evert Prants 2018-08-02 20:32:31 +03:00
parent 51a96687b5
commit 54be1f66a0
No known key found for this signature in database
GPG Key ID: 1688DA83D222D0B5
6 changed files with 61 additions and 3 deletions

@ -80,7 +80,7 @@ minetest.register_craftitem("elepower_dynamics:zinc_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",
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")
end
local transmitters = get_transmitters_in_range(pos, player, transmitter, 16)
local transmitters = get_transmitters_in_range(pos, player, transmitter, 8)
local receivers = {}
if transmitter then
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_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_nodedef = {
tiles = {
@ -172,7 +179,7 @@ ele.register_machine("elepower_wireless:dialler", {
local trans = minetest.string_to_pos(meta:get_string("transmitter"))
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 = {}
if trans then
receivers = get_player_receivers(player)

@ -1,6 +1,13 @@
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_transmitter.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_device_side.png", "elewireless_device_side.png", "elewireless_device_side.png"
},
drawtype = "nodebox",
node_box = elewi.slab_nodebox,
ele_active_node = true,
ele_active_nodedef = {
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_device_side.png", "elewireless_device_side.png", "elewireless_device_side.png"
},
drawtype = "nodebox",
node_box = elewi.slab_nodebox,
ele_active_node = true,
ele_active_nodedef = {
tiles = {