64 Commits

Author SHA1 Message Date
10e85eb910 mod creative - fix check for newer lang on engine, commit f757878 2024-04-24 15:13:43 -04:00
mckayshirou
b4c29033c9 fix creative mode mod backguard compatibility for all engines
* dont follow the creative upstream mod,
  its just wrapper around get_bool(creative) setting, so create a check privilegie
  function and provide backguard compatibility checks
* backported fix from c770d5cb43
  same backported from c770d5cb43
2023-07-13 23:03:51 -04:00
f208b6312d updated upgraded simplified creative and provide privilegie feature
* register privilegie of creative for older or newer engines
* enhanced the formspec of the creative player to 4 rows
* try to upgrade most close to track upstream original
* return back text button, remove extra media
  check https://notabug.org/TenPlus1/creative/issues/2
* update readme information to diference features
2023-06-16 00:36:33 -04:00
ebdf4427d3 creative - fix mistake on privs 2023-06-11 06:29:33 -04:00
4a9e24b2f2 provide minetest.is_creative_enabled and backguard compatibilty 2023-06-11 06:19:33 -04:00
2f97407591 upgrade beds,boats,bucket,carts,creative,doors,farming,fire,stairs,tnt,wool
* beds 7b6fae96d5
* boats 3832de08f7
* bucket 1d9f32295a
* carts dcbca916cf
* creative ca09e77370
* doors a89ab0454d
* farming 10de84d12d
* fire 4e5f7ad553
* stairs c3a5af6c45
* tnt 8195861f90
* wool de642a08e8
2022-03-01 23:26:11 -04:00
Lars Hofhansl
d37c1d2312 Creative: Do not give creative priv to admin 2021-12-10 17:20:34 -04:00
tenplus1
fea78bdf54 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.
* backported from 0157175346f9af8cf9ea5ffeb5f3d91fa474d044
2021-12-09 13:00:48 -04:00
Diego Martínez
a5092c0df6 creative: Add missing tooltips. 2018-05-06 20:44:30 +02:00
raymoo
ca3e807d35 Creative: Make the placenode registration check for non-player placers 2017-11-19 23:03:38 +01:00
raymoo
ca38bb2390 Creative: Make handle_node_drops override work for non-player diggers 2017-11-19 23:03:38 +01:00
SmallJoker
532013a032 Creative: Cache inventory items on load 2017-11-19 23:03:38 +01:00
SmallJoker
1aeb2baa91 Creative: Prevent unauthorized item access (#1840) 2017-11-19 22:57:28 +01:00
paramat
eec1c5a03b Settings: Use new settings object 2017-05-24 07:18:26 +01:00
sfan5
b25317fc64 Remove set_inventory_formspec in default, remove delay in sfinv 2017-05-18 09:54:18 +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
rubenwardy
0ff09e018d Add sfinv.get_homepage_name(player)
Also sets creative:all as default inventory page
Fixes #1423
2016-12-05 01:39:50 +00:00
sfan5
04f045158f Avoid "leaking" creative inventories to other players 2016-11-28 13:43:02 +01: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
6171fb43f0 Change WTFPL to MIT (part 3)
Relicense WTFPL media to CC BY-SA 3.0.
Various corrections and edits.
2016-09-07 04:44:53 +01:00
paramat
7d70d25eeb Licenses: Change WTFPL to MIT (part 2)
Add license.txt files.
Update and improve README.txt files.
Corrections to part 1.
2016-09-06 04:45:23 +01:00
paramat
e9d26e2ee3 Licenses: Change WTFPL to MIT (part 1)
Part 1: All mods except default and xpanes.
Add license.txt files.
Add missing README.txt files.
Check and update copyright years for all contributors.
Improve text format and make more consistent.
2016-09-05 05:54:33 +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
kilbith
9a6cb2d7c8 Creative: Add myself in credits
Some people borrowed the creative code for their sub-games with an exclusive attribution to celeron55.

This is frustrating since I've largely rewritten, redesigned and carefully maintained this mod for the last months.

I expect to be credited.
2016-04-04 05:39:29 +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