MisterE 13db6dbee4 FIX texture deprecations 1 year ago
..
.github 45d1e23d3e add documentation to /doc folder. add old resources to /mods_disabled folder. 1 year ago
compat 45d1e23d3e add documentation to /doc folder. add old resources to /mods_disabled folder. 1 year ago
doc 13db6dbee4 FIX texture deprecations 1 year ago
engines 45d1e23d3e add documentation to /doc folder. add old resources to /mods_disabled folder. 1 year ago
fleet 45d1e23d3e add documentation to /doc folder. add old resources to /mods_disabled folder. 1 year ago
move 45d1e23d3e add documentation to /doc folder. add old resources to /mods_disabled folder. 1 year ago
override 45d1e23d3e add documentation to /doc folder. add old resources to /mods_disabled folder. 1 year ago
patches 45d1e23d3e add documentation to /doc folder. add old resources to /mods_disabled folder. 1 year ago
screenshots 45d1e23d3e add documentation to /doc folder. add old resources to /mods_disabled folder. 1 year ago
sounds 45d1e23d3e add documentation to /doc folder. add old resources to /mods_disabled folder. 1 year ago
textures 45d1e23d3e add documentation to /doc folder. add old resources to /mods_disabled folder. 1 year ago
.luacheckrc 45d1e23d3e add documentation to /doc folder. add old resources to /mods_disabled folder. 1 year ago
backbone.lua 45d1e23d3e add documentation to /doc folder. add old resources to /mods_disabled folder. 1 year ago
blacklist.lua 45d1e23d3e add documentation to /doc folder. add old resources to /mods_disabled folder. 1 year ago
bookmark.lua 45d1e23d3e add documentation to /doc folder. add old resources to /mods_disabled folder. 1 year ago
common.lua 45d1e23d3e add documentation to /doc folder. add old resources to /mods_disabled folder. 1 year ago
crafts.lua 45d1e23d3e add documentation to /doc folder. add old resources to /mods_disabled folder. 1 year ago
digiline.lua 45d1e23d3e add documentation to /doc folder. add old resources to /mods_disabled folder. 1 year ago
fuel.lua 45d1e23d3e add documentation to /doc folder. add old resources to /mods_disabled folder. 1 year ago
infotext.lua 45d1e23d3e add documentation to /doc folder. add old resources to /mods_disabled folder. 1 year ago
init.lua 45d1e23d3e add documentation to /doc folder. add old resources to /mods_disabled folder. 1 year ago
integration-test.sh 45d1e23d3e add documentation to /doc folder. add old resources to /mods_disabled folder. 1 year ago
integration_test.lua 45d1e23d3e add documentation to /doc folder. add old resources to /mods_disabled folder. 1 year ago
is_area_empty.lua 45d1e23d3e add documentation to /doc folder. add old resources to /mods_disabled folder. 1 year ago
is_area_protected.lua 45d1e23d3e add documentation to /doc folder. add old resources to /mods_disabled folder. 1 year ago
license.txt 45d1e23d3e add documentation to /doc folder. add old resources to /mods_disabled folder. 1 year ago
mapgen.lua 45d1e23d3e add documentation to /doc folder. add old resources to /mods_disabled folder. 1 year ago
marker.lua 45d1e23d3e add documentation to /doc folder. add old resources to /mods_disabled folder. 1 year ago
metrics.lua 45d1e23d3e add documentation to /doc folder. add old resources to /mods_disabled folder. 1 year ago
migrate.lua 45d1e23d3e add documentation to /doc folder. add old resources to /mods_disabled folder. 1 year ago
mod.conf 45d1e23d3e add documentation to /doc folder. add old resources to /mods_disabled folder. 1 year ago
readme.md 45d1e23d3e add documentation to /doc folder. add old resources to /mods_disabled folder. 1 year ago
technic_run.lua 45d1e23d3e add documentation to /doc folder. add old resources to /mods_disabled folder. 1 year ago
upgrade.lua 45d1e23d3e add documentation to /doc folder. add old resources to /mods_disabled folder. 1 year ago

readme.md

Minetest jumpdrive

A simple Jumpdrive for minetest

Take your buildings with you on your journey

Operation

  • Place a 'jumpdrive:engine' into the center of your creation.
  • Connect the engine to a technic HV network
  • Let the engine charge
  • Choose your target coordinates (should be air or ignore blocks)
  • Select your cube-radius
  • Click "show" and check the green (source) and red (target) destination markers if everything is in range
  • Click "jump"

Compatibility

Optional dependencies:

  • Mesecon interaction (execute jump on signal)
  • Technic rechargeable (HV)
  • Travelnet box (gets rewired after jump)
  • Elevator (on_place gets called after jump)
  • Locator (gets removed and added after each jump)
  • Pipeworks teleport tubes (with a patch to pipeworks)
  • Beds (thx to @tuedel)
  • Ropes (thx to @tuedel)
  • Mission-wand as coordinate bookmark (thx to @SwissalpS)
  • Areas
  • Drawers

Fuel

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

Energy requirements

The energy requirements formula looks like this: 10 x radius x distance

For example:

  • Distance: 100 blocks
  • Radius: 5 blocks
  • Required energy: 10 x 5 x 100 = 5000

Upgrades

If the technic mod is installed the following items can be used in the upgrade slot:

  • technic:red_energy_crystal increases power storage
  • technic:green_energy_crystal increases power storage
  • technic:blue_energy_crystal increases power storage
  • technic:control_logic_unit increases power recharge rate

Protection

The source and destination areas are checked for protection so you can't remove and jump into someone else's buildings.

Screenshots

Interface:

Example:

Advanced operation

Coordinate bookmarking

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

Diglines

Settings

Settings in minetest.conf:

  • jumpdrive.max_radius max radius of the jumpdrive (default: 15)
  • jumpdrive.max_area_radius max radius of the area jumpdrive (default: 25)
  • jumpdrive.powerstorage power storage of the drive (default: 1000000)
  • jumpdrive.power_requirement power requirement for chargin (default: 2500)

Lua api

Preflight check

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

Fuel calc

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

Sources

Contributors

History

Next

  • optional technic mod
  • upgrade slots

2.0

  • various fixes and optimizations
  • Fleetcontroller
  • Digiline interface
  • mod.conf (minetest >= 5.0)
  • Beds,ropes,missions compatibility
  • calculate_power() override
  • overlap check
  • No fuel consumption if creative
  • Protection checks for source and destination
  • preflight check with custom override
  • Settings in minetest.conf
  • vacuum compatibility (jump into vacuum with air filled vessel)

1.1

  • improved performance
  • Documentation
  • Removed complicated cascade function

1.0

  • Initial version
  • Cascade operation (with issues)