43 Commits

Author SHA1 Message Date
Montandalar
510c34d2e0 Do not crash when a skeleton key is used on an unknown node (#2806) 2021-01-15 17:43:19 +01:00
Lejo
4a47d92b90 Make can_interact_with_node() check for key group instead of default:key 2020-01-06 21:16:33 +00:00
Thomas--S
bf990a47c8 Move duplicate recipe from books to default.register_craft_metadata_copy()
This allows mods to easily implement the same behaviour, e.g. for letters.
2020-01-04 00:09:58 +00:00
An0n3m0us
6a941ec2cc Move crafting, cooking and fuel recipes into corresponding files 2020-01-01 01:38:06 +00:00
sfan5
9ead16fb3c Fix more translation strings (#2487) 2019-09-18 20:38:27 +02:00
sfan5
6ab06a9feb Fix and improve translation strings (#2471) 2019-09-12 19:03:10 +02:00
Yves Quemener
abefcac109 Add support for MT 5 game translation (rebasing ) (#2466)
rebased #2368
2019-09-10 19:09:51 +02:00
An0n3m0us
e263a70fd4 Add groups for tools and mushrooms (#2378) 2019-06-01 21:10:30 +02:00
tenplus1
12ce134ada Add food groups to blueberries (#2335) 2019-03-31 22:20:47 +02:00
Paramat
03fdb21b66 Remove uses of default.gui_bg/bg_img/slots
Keep their definitions, to not break mods, but move them to legacy.lua.
2019-01-03 01:57:13 +00:00
random-geek
8b4fe4618e Add blueberry bushes 2018-10-09 20:54:22 +01:00
SmallJoker
b2b1dfaf83 Replace deprecated function calls 2018-07-01 20:44:03 +01:00
Coder12a
33fbb82a1e Books: Convert \r to \n
Some files or editors may use \r instand of \n like notepad++. If you copy
text written in notepad++ and pasted into the book. The book will only have
one page.
2017-10-23 04:39:44 +01:00
red-001
92785b98f6 Books: Also limit the max size of the title
This limits the max size of the full title of the book to `80` letters and
the size of the part thats displayed in the tooltip to `35` letters.
2017-06-16 04:11:00 +01:00
red-001
1b2b66ae8f Books: Limit the size of books
Really large books just waste hard drive space and the engine is not designed to
handle that much data in item metadata, this can cause strange things to happen.
2017-06-14 20:28:40 +01:00
red-001
2de5039f1f Books: Add nil value checks to the book formspec handler 2017-06-14 20:26:17 +01:00
Auke Kok
c1e96173b3 Fix books getting erased on page button use.
Changing the book page caused the entire itemstack meta to
get wiped due to improper calling of meta:from_table().

Fixes #1711
2017-04-28 21:52:39 -07:00
rubenwardy
99f4a5eb04 Fix owner not being checked on write to book 2017-04-27 02:28:23 +01:00
paramat
e2c0665d2c Ores: Add tin ore, lump, ingot and block
Use Calinou's textures from moreores mod.
Craft bronze from tin and copper instead of steel and copper.
Match ore density to the moreores mod but start ore at a depth of
y = -32 to be part of the depth progression of other ores.
2017-04-20 19:55:05 +01:00
octacian
16608e2dc1 Keys: Move skeleton key to craftitems.lua
Commit 73d61cbb103415c9a3970eaf2c48aeadabfff828 makes skeleton keys
craftitems rather than tools, warranting the move from tools.lua
to craftitems.lua.
2017-04-20 19:51:51 +01:00
octacian
f03cde7e75 Books: Fix backwards compatibility issues
Commit c68b8274fed183f30bd7609018766a261448b83d prevented books from
being copied in the crafting grid, and made it so that old books, though
seemingly successfully transferred to the new format, could not be written
to as the old data still persisted.
2017-03-20 00:13:31 +00:00
octacian
d44b46f2b5 Show title and author of book in description
Utilizes the new key-meta (as with nodes) and the ability to set the description of an itemstack with the `description` meta key. Includes code to convert old metadata to new key-meta.
2017-02-28 18:16:55 -08:00
Fernando Carmona Varo
e461bf192d Make flammable: Flowers, grasses and several crafitems 2016-10-25 02:37:36 +01:00
Tim
34efbf4fe2 Default: Prevent possible nil-crash on invalid book metadata 2016-10-05 22:23:49 +01:00
Tim
cce0244c98 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
kilbith
b67938f30e Books: Split text per page relatively to number of lines 2016-04-14 02:45:57 +01:00
Jean-Patrick Guerrero
8bbd09733d Books: Ensure backward compatibility for older written books 2016-03-25 13:15:12 +00:00
Jean-Patrick Guerrero
5fca60284e Books: Move page buttons at the bottom 2016-03-22 15:46:19 +00:00
Jean-Patrick Guerrero
565078dd3c Books: Add support for multiple pages 2016-03-21 06:17:40 +00:00
Jean-Patrick Guerrero
501adaeaba Add flint and flint-and-steel 2016-03-15 16:22:42 +00:00
paramat
b626e2a5e6 Default/craftitems: Fix whitespace and code style issues 2016-03-06 01:30:40 +00:00
tenplus1
1accc48363 Fix book formspec to word-wrap lines
Books still don't wrap long lines of text properly so until this has been sorted out I suggest reverting back to a previous working formspec which lets players read books properly until a fix is found (and maybe scrollbars added to texarea's).  Also adding a recipe to blank written books.
2016-03-03 00:37:07 +00:00
MT-Modder
271e313a75 Add background image to book formspec 2016-02-19 19:54:45 +00:00
Auke Kok
67a5b36f91 Allow books to be copied on the craft grid.
Combine any written book with an empty book to copy it. The
copy is in player hands when using, and the original is put
back on the crafting grid and can be directly copied again.

All ownership and metadata is retained, so the copy of the book
is as writable as the original is, or isn't.
2016-01-05 23:29:08 +00:00
Auke Kok
1a4d5b00e5 Add a separate image for a written book.
Since written books are quite different from empty books, the
visual clue that they are different items is really needed in-game.

I've added a "clasp" or "belt-with-buckle" like element to the
png from default_book, keeping them very similar but also
immediately recgnizably different.

I added the new texture to blockmen's license list since it's
obviously derivative of his work.

The PNG was run through a minimizer/optimizer to save space.
2015-12-12 19:56:56 +01:00
Rui
e89c76d37d Default/book: textarea -> table 2015-10-18 18:02:27 +01:00
tenplus1
30d1f65e50 word-wrap book text
This change word-wraps text when reading a book.
2015-06-08 16:29:44 +02:00
ShadowNinja
08d2841318 Make books writable 2015-06-07 15:57:29 +02:00
PilzAdam
df764ccc4e Allow the group book to be placed into bookshelfs 2014-12-06 11:46:04 +01:00
BlockMen
053e061fbd Fix dye stuff, fixes #243 2014-09-16 19:40:50 +02:00
BlockMen
508bc82e17 More new Textures, Clean up a bit 2014-07-05 16:03:06 +02:00
ShadowNinja
99d20f0836 Add and use the stick group 2013-11-01 11:34:24 -04:00
PilzAdam
7bb8804365 Split init.lua into several files 2013-05-19 18:43:04 +02:00