2018-07-24 11:10:17 +02:00
2018-07-24 11:10:17 +02:00
2018-07-20 22:25:18 +02:00
2018-07-23 21:46:37 +02:00
2018-07-24 11:10:17 +02:00
2018-07-23 16:36:34 +02:00
2018-07-23 16:32:18 +02:00
2018-07-23 20:58:08 +02:00
2018-07-24 11:01:48 +02:00
2018-07-23 15:14:54 +02:00
2018-07-24 11:10:17 +02:00
2018-07-23 21:39:18 +02:00
2018-07-20 09:27:13 +02:00
2018-07-23 22:19:48 +02:00
2018-06-29 14:36:01 +02:00
2018-07-23 21:35:58 +02:00
2018-07-20 22:25:18 +02:00
2018-07-22 21:46:35 +02:00

Minetest mission mod (missions)

Minetest mod for in-game mission creation Adds blocks to create missions with rewards, timeout and penalties

Supported missions:

  • Transport (to mission-chest)
  • Craft
  • Build
  • Dig

Install

  • Unzip/Clone it to your worldmods folder

Blocks

The blocks have no recipe because they should be used by a admin or creative-player. The nature of the mission-reward could be abused for cheating if a survival-player could craft it.

Mission-chest (missions:chest)

The mission chest acts as a target for transport-missions. The book in the right-click menu is used as a reference to it (placed in the transport block menu)

Mission-types

Transport (missions:transport)

A simple transport mission, in which blocks/items must be place in the target chest (displayed in hud, if started) This block can be configured only by its owner:

  • Target: The target mission-chest (book-reference)
  • Time: Time for the mission in seconds
  • Reward: Block/Items rewards if the mission is completed
  • Transport: Blocks/items to transport/craft. All items must be placed in the to-chest for mission completion

XP mod fields (for xp_redo, if enabled)

  • XP-Reward amount of xp to reward on completion
  • XP-Penalty amount of xp to take away if the mission fails (timeout) must be positive

Buttons:

  • Save Saves the configuration
  • Start Starts the mission for the player

Build

Build nodes

Dig

Dig nodes/items

Craft

Craft items

Depends

Screenshots

Mission-blocks (chest and mission-types)

Note: Android screenshot

Mission chest with book as reference

Example transport mission configuration

Running transport mission

Running dig-mission

Lua api

misssions.start_mission(player, missionSpec)

missionSpec = {
	name = "Mission name",
	type = "transport", -- "build", "craft", "dig"
	time = 300, -- seconds
	cooldown = 600, -- seconds between same mission (name), optional
	xp = { -- optional
		reward = 100,
		penalty = 50
	},
	reward = {
		"default:stone 50"
	},

	-- build, craft, dig, transport mission
	context = {
		list: {
			"default:stone 10"
		}
	},

	-- transport mission
	target = {
		x = 100,
		y = 200,
		z = 300,
		title = "Town chest"
	}
}

Pull requests / bugs

I'm happy for any bug reports or pull requests (code and textures)

TODO / Ideas

  • Kill mission
  • Goto mission
  • Walk mission
  • Display current missions in sfinv/unified inv
  • Mission stats / export
  • Persist missions across server-restart (player:set_attribute)
  • HUD improvements
Description
No description provided
Readme 13 MiB
Languages
Lua 100%