mod
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
tuedel 73822011dc Fix MTG beds compat 1 year ago
.github/workflows test on pr 1 year ago
compat Fix MTG beds compat 1 year ago
doc Updated fleet docs for set and simulate commands 1 year ago
engines update formspec: book -> bookmark 1 year ago
fleet update formspec: book -> bookmark 1 year ago
move fix and improve telemosaic compat 1 year ago
override remove tp tube abm 1 year ago
patches proper position tracking for #9 2 years ago
screenshots readme cleanup 2 years ago
sounds added sounds 3 years ago
textures area engine wip 1 year ago
.luacheckrc fix #46 1 year ago
backbone.lua crafts separation 2 years ago
blacklist.lua allow jumping of the forcefield but not the emitter_on 2 years ago
bookmark.lua prepare notification if no bookmark found 1 year ago
common.lua fix digilines connectivity 1 year ago
crafts.lua crafts separation 2 years ago
digiline.lua send digiline responses with `jumpdrive.digiline_rules` 1 year ago
fuel.lua optional technic 2 years ago
infotext.lua fix infotext not displaying without technic 1 year ago
init.lua area engine wip 1 year ago
integration-test.sh fix areas and /home coord switch 2 years ago
integration_test.lua fix areas and /home coord switch 2 years ago
is_area_empty.lua check buildable_to of nodes 2 years ago
is_area_protected.lua improved protection check 2 years ago
license.txt license 3 years ago
mapgen.lua node check in integration test 2 years ago
marker.lua show center marker 2 years ago
metrics.lua enable monitoring support 2 years ago
migrate.lua upgrade calculations 2 years ago
mod.conf fix #46 1 year ago
readme.md update readme: bookmarks 1 year ago
technic_run.lua fix infotext not displaying without technic 1 year ago
upgrade.lua upgrade calculations 2 years 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)
  • Compass 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 them with the “Write to book” button. The “Read from bookmark” button reads the coordinates from the next valid bookmark item in the inventory. From right to left. A used bookmark item is placed in the first free slot from the left. Bookmark items are:

  • Written books saved by jumpdrive (or correctly by hand)
  • Mission position wands
  • Compasses

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)