Go to file
raphael leroux f7adbb884f Add 3d_armor support 2015-12-15 14:05:58 +01:00
creative_enhanced nodes affected by rotate_and_place (mainly *_tree) are now handled correctly in creative_enhanced 2015-12-11 12:22:58 +01:00
gamemode Proper return for creative_enhanced | remove broken 3d armor plugin 2015-04-24 22:28:25 +02:00
inventory_enhanced Add 3d_armor support 2015-12-15 14:05:58 +01:00
README.md Update README.md 2015-12-11 12:24:54 +01:00
modpack.txt first commit 2015-03-03 01:21:03 +01:00

README.md

minetest_inventory_enhanced

Note: creative_enhanced and inventory_enhanced are interdepedendent, gamemode is optional.

creative_enhanced

This component is needed by inventory enhanced to handle creative gameplay

inventory enhanced

A reworked version of the default minetest inventory.

  • Adds a searching field to the creative inventory
  • Adds a trash
  • Toggles dynamically when gamemode is used

Depends on default, creative_enhanced and (optionnaly) gamemode

gamemode

Requires the 'gamemode' privilege.

This component adds the ability to dynamically change your gamemode. Commands are:

/gamemode 0 --> survival
/gamemode 1 --> creative

/gm -->shortcommand

Note : gamemode's creative keeps the damage settings from minetest.conf (not a god mode)

Gamemode also comes with an API :

 -- register a function which gets executed when the gamemode of a player is changed
 gamemode.register_on_change = function(func)

Example with inventory_enhanced :

-- register an inventory change if gamemode is enabled
if gamemode then
	gamemode.register_on_change(function(name, mode)
		local player = minetest.get_player_by_name(name)
		if mode == 1 then
			inventory_enhanced.init_creative_inventory(player)
			inventory_enhanced.set_creative_formspec(player, 0, 1)
		elseif mode == 0 then
			inventory_enhanced.set_survival_formspec(player)
		end
	end)
end

Licence :

GNU lgpl 2.1

Credit :

Based on the default mod 'creative' by Perttu Ahola (celeron55) celeron55@gmail.com