MisterE 13db6dbee4 FIX texture deprecations | 1 year ago | |
---|---|---|
.. | ||
.github | 1 year ago | |
compat | 1 year ago | |
doc | 1 year ago | |
engines | 1 year ago | |
fleet | 1 year ago | |
move | 1 year ago | |
override | 1 year ago | |
patches | 1 year ago | |
screenshots | 1 year ago | |
sounds | 1 year ago | |
textures | 1 year ago | |
.luacheckrc | 1 year ago | |
backbone.lua | 1 year ago | |
blacklist.lua | 1 year ago | |
bookmark.lua | 1 year ago | |
common.lua | 1 year ago | |
crafts.lua | 1 year ago | |
digiline.lua | 1 year ago | |
fuel.lua | 1 year ago | |
infotext.lua | 1 year ago | |
init.lua | 1 year ago | |
integration-test.sh | 1 year ago | |
integration_test.lua | 1 year ago | |
is_area_empty.lua | 1 year ago | |
is_area_protected.lua | 1 year ago | |
license.txt | 1 year ago | |
mapgen.lua | 1 year ago | |
marker.lua | 1 year ago | |
metrics.lua | 1 year ago | |
migrate.lua | 1 year ago | |
mod.conf | 1 year ago | |
readme.md | 1 year ago | |
technic_run.lua | 1 year ago | |
upgrade.lua | 1 year ago |
A simple Jumpdrive for minetest
Take your buildings with you on your journey
Optional dependencies:
The engine can be connected to a technic HV network or fuelled with power items. Power items are one of the following
default:mese_crystal_fragment
default:mese_crystal
default:mese
The energy requirements formula looks like this: 10 x radius x distance
For example:
If the technic
mod is installed the following items can be used in the upgrade slot:
technic:red_energy_crystal
increases power storagetechnic:green_energy_crystal
increases power storagetechnic:blue_energy_crystal
increases power storagetechnic:control_logic_unit
increases power recharge rateThe source and destination areas are checked for protection so you can't remove and jump into someone else's buildings.
Interface:
Example:
You can place empty books into the drive inventory and write the coordinates to it with the "Write to book" button The "Read from book" reads the coordinates from the next book in the inventory
Settings in minetest.conf:
The preflight check can be overriden to execute additional checks:
jumpdrive.preflight_check = function(source, destination, radius, player)
-- check for height limit, only space travel allowed
if destination.y < 1000 then
return { success=false, message="Atmospheric travel not allowed!" }
end
-- everything ok
return { success=true }
end
The default fuel calc can be overwritten by a depending mod:
-- calculates the power requirements for a jump
jumpdrive.calculate_power = function(radius, distance, sourcePos, targetPos)
return 10 * distance * radius
end