Commit Graph

51 Commits

Author SHA1 Message Date
Yves Quemener bb9279ccb8 Add support for MT 5 game translation (rebasing ) (#2466)
rebased #2368
2019-09-10 19:09:51 +02:00
Paramat e8097c9e87
Creative: Override the hand instead of re-registering
Allows the initial hand registration to alter the 'wield_scale' without
needing to also alter it in creative mod.
Also make default mod a dependency again, as the initial hand
registration is required.
2019-08-31 19:44:17 +01:00
Paramat 2063fcd075
Make the creative mod hand dig 'dig_immediate' nodes fast
Engine change now makes this possible.
2019-08-03 20:51:58 +01:00
rubenwardy 64a923f7fb Fix sfinv not updating on creative grant/revoke 2019-02-03 11:45:45 +00:00
raymoo 8b5ad0f028 Creative: Make the placenode registration check for non-player placers 2017-11-11 21:34:30 +00:00
raymoo 319b9eeeaf Creative: Make handle_node_drops override work for non-player diggers 2017-11-11 21:34:05 +00:00
Lars Hofhansl 12a971660d Creative: Do not give creative priv to admin 2017-10-07 18:48:18 +02:00
tenplus1 0157175346 Creative: Add 'creative' privilege for survival servers
This adds a 'creative' privilege to survival servers which OPs can bestow
on admin or competent builders to give access to the creative inventory.
2017-06-14 20:47:11 +01:00
paramat eec1c5a03b Settings: Use new settings object 2017-05-24 07:18:26 +01:00
Dániel Juhász 24559d012e Creative: Automatic item colorization for creative mode 2017-04-23 23:05:06 +01:00
zaoqi 077316b4cd Use creative.is_enabled_for for creative mode if possible (#1558) 2017-03-29 21:02:26 +02:00
paramat e86955afae Creative: Cache creative mode setting 2017-02-01 17:51:35 +00:00
rubenwardy b06368adf2 Fix node drops not being added to inventory when not in creative mode 2017-01-27 19:48:59 +00:00
rubenwardy bee5b316a8 Creative: Add creative.is_enabled_for 2017-01-26 17:54:45 +00:00
paramat fa17fe31d6 Creative: Re-implement constant hand dig times, add comment 2016-11-28 01:28:24 +00:00
rubenwardy d42ae715b8 Sfinv: Add sfinv to allow tabs to be added to the inventory 2016-11-27 03:27:12 +00:00
tenplus1 022d22ceca Creative: Fix missing item bug caused by 'start_i' value
This fixes the missing item issue in creative inventory caused by using
1 instead of 0 for 'start_i'.
2016-11-18 05:38:25 +00:00
Rui 5868274b00 Creative: Fix crash when turning on creative in-game 2016-11-07 14:13:10 +00:00
rubenwardy 53179b8d10 Creative: Use element instead of parameter to disable close on enter 2016-10-08 18:02:14 +01:00
paramat 0664570d22 Creative: Make dig times near-identical for nodes of all levels
Dig time is modified according to difference (leveldiff) between tool
'maxlevel' and node 'level'. Digtime is divided by the larger of leveldiff
and 1. In creative mode, where the hand is redefined to have maxlevel 3,
this results in higher level nodes taking significantly longer to break.

Now, to speed up digging, hand 'maxlevel' and 'digtime' have been
increased such that nodes of differing levels have an insignificant
effect on digtime. Dig time for all nodes is now identical to that of, for
example, dirt nodes.
2016-09-03 01:07:49 +01:00
rubenwardy 471d1cf159 Add search on enter press to creative inventory 2016-08-27 21:24:07 +01:00
Tim 30b0a155fb Stop shadowing upvalues and definitions. 2016-07-15 21:58:49 +01:00
Tim 4473627de0 Remove unused and clean up missused variable-value assignments.
* Unused variables
* Unused values (assigned to variables, but overwritten before use)
* Defining already defined variables instead of reassigning to them.
2016-07-15 21:58:49 +01:00
paramat 50eb079813 Creative: Add missing 'formspec_escape' to fix bug
Symbols used in search caused the game to hang with a grey screen,
for example searching for 'diamond;ingot'
2016-06-14 23:29:21 +01:00
red-001 b1e0864cf1 Creative: Reset 'start_i' to 1 when the inventory filter is changed 2016-05-21 03:02:10 +01:00
tenplus1 b36b154257 Creative: Fix inventory crash after toggling creative mode in-game 2016-05-08 00:40:52 +01:00
tenplus1 3976dc6a5b Creative: Fix '-' glitch in playername
Fix the glitch when players use the '-' character in their username
on a server, causing creative inventory to not pass page 2
2016-05-07 02:13:00 +01:00
tenplus1 8ea031ef77 Creative: Add global variable creative.formspec_add
This pull adds a new global variable called creative.formspec_add
that will allow mods to add to the creative inventory screen
without the need to fork the mod altogether.  Simple solution
that works already for inventory_plus' BACK button
2016-05-07 02:07:55 +01:00
Jean-Patrick Guerrero 1a5f89e750 Creative: Code cleaning + Fix items moving in virtual inventory 2016-03-22 15:45:48 +00:00
Jean-Patrick Guerrero 4c9944b263 Creative: Rename fields with correct naming convention to avoid possible conflicts 2016-02-21 15:31:37 +00:00
Muhammad Rifqi Priyo Susanto 9e54b379c8 Creative: Extend search function to descriptions 2016-02-06 01:24:24 +00:00
Craig Davison 09dbaf7972 Follow naming conventions of textures in creative 2016-02-03 19:33:59 +00:00
kilbith 0ea23a50d3 Creative: move player datas in separate table (fixes #812) 2016-02-03 19:33:31 +00:00
kilbith 250be40ecd Fix blank page in creative in some rare case and keep crafting tab's size stationary 2016-01-20 22:17:38 +00:00
kilbith 6d79d157c3 New design of the creative inventory (with tabs) 2016-01-15 04:56:24 +00:00
jeanpatrick.guerrero@gmail.com 7488f483c7 Minor polishing of creative 2016-01-05 23:29:15 +00:00
jeanpatrick.guerrero@gmail.com b1e2ece638 Add a search field to the creative inventory 2015-12-25 15:36:55 +00:00
jeanpatrick.guerrero@gmail.com b8333cf82a Speed-up creative inventory initializing (~10x faster) 2015-12-06 00:22:12 +00:00
Amaz 7361eb5e05 Add the listring functionality c977fbd928 2015-06-23 19:17:57 +02:00
Craig Davison 64bf6c1b89 Add crafting grid result arrow to creative inventory 2015-01-10 15:32:16 +01:00
BlockMen 49ad1c1bf7 Make gui part of default 2014-07-05 16:06:16 +02:00
webdesigner97 fa485f7d63 Make creative inventory use new fancy layout 2014-07-05 16:02:26 +02:00
PilzAdam 51de4236ab Remove / replace all print() calls 2013-11-17 11:55:46 +01:00
ShadowNinja 1d4eb43f26 Revert dig time in creative mode to 0.5
This made it impossible to punch things without breaking them in creative
2013-11-04 18:46:39 -05:00
PilzAdam e547d279ab Longer range and insta-dig in creative 2013-09-28 23:52:59 +02:00
PilzAdam fcf0816fa8 Move all common mods back to minetest_game 2013-05-18 16:05:16 +02:00
PilzAdam 7e843c92a6 Move creative, dye, vessels and wool to common 2013-03-23 17:42:40 +01:00
PilzAdam 61e60724f6 Use infinite stacks in creative mode and make the hand break anything 2012-12-17 20:27:01 +01:00
PilzAdam dfa0f096ce Use full stacks in the creative inventory and add a trash field 2012-11-25 14:09:25 +01:00
Perttu Ahola 61a9bb2b47 Fix crash when a player happens to join the server quicker than the creative inventory filler is called 2012-08-12 17:03:05 +03:00