Commit Graph

125 Commits

Author SHA1 Message Date
E 094b4077ab items/mcl_banners: use a more understandable variable name
Mineclonia/Mineclonia#15 (comment)
2021-07-13 04:31:42 -04:00
E 5f4e3bb85a items/mcl_banners: remove unnecessary nil check 2021-07-13 04:31:42 -04:00
E 98e634a0e4 items/mcl_banners: expand confusing conditional append
https://git.minetest.land/Mineclonia/Mineclonia/pulls/15/files#issuecomment-22785
2021-07-13 04:31:42 -04:00
E c29d725755 items/mcl_banners: make previews items compatible with side preview
The newly-added preview items (#40) didn't play nice with the side
preview image, mostly because the "layers" metadata wasn't generated,
and they didn't record the base color of the actual banner being crafted.

This commit re-adds that (and other) metadata.
2021-07-13 04:31:42 -04:00
E cb4173ac9e items/mcl_banners: reuse `escape` across functions 2021-07-13 04:31:42 -04:00
E 48dd5267dd items/mcl_banners: fix preview masking
The `layer` string was inherited from the old patch, which I frankly
don't understand. I restructured it to `follow make_banner_texture` more
closely, with the addition of the mcl_banners_front mask, which
prevents the rear portions of the patterns from showing up.

The numbers in the final `[combine` and `[resize` steps are arbitrary,
and were derived by trial-and-error.
2021-07-13 04:31:42 -04:00
E f7dc051adf items/mcl_banners: make `escape` local 2021-07-13 04:31:42 -04:00
E 0d61d9c495 mcl_banners, mcl_crafting_table: show banner crafting preview
A preview of a crafted banner is now shown next to the craft result box
to help players visualize what they're crafting. Due to the formspec
version, the preview can't be shown over top of the actual result slot.
A utility function (mcl_banners.get_overlay) is added to generate
formspec-able texture strings for arbitrary banners.
2021-07-13 04:31:42 -04:00
E 2feab24dd3 Allow more layers for banners with gradients
At some point in the past, Minetest had a bug that caused rendering
issues with transparent textures, like those used for banner gradients.
As a workaround, the number of allowed layers was reduced for banners
containing gradients. The engine bug has since been fixed, but the limit
was never removed.

This commit removes the limit.

See also: Mineclonia/Mineclonia#72 (comment)
and https://github.com/minetest/minetest/issues/6210
2021-06-19 01:43:36 -04:00
Elias Åström 5d3514880a Move data from deprecated files to mod.conf
Move data from deprecated files (depends.txt and description.txt) into
fields in mod.conf for all mods.
2021-05-16 13:44:04 +02:00
Nils Dagsson Moskopp ee9f49b86e
Remove wrong preview banner crafting recipes
In commit ac5f115f83, preview banners were introduced and given
crafting recipes. Those crafting recipes were the same as for banners without a pattern. That
change made banners without patterns uncraftable and preview banners craftable instead – this
patch makes banners without patterns craftable again and preview banners uncraftable.
2021-05-02 13:01:00 +02:00
Nils Dagsson Moskopp ac5f115f83
Show preview of new banner pattern when crafting it 2021-04-23 17:29:43 +02:00
kay27 ba51686e6c Russian translation 2020-07-20 00:11:13 +00:00
Wuzzy c106a62979 Use minetest.is_creative_enabled 2020-07-10 16:45:40 +02:00
Wuzzy 1a0e979b0c Update incomplete license information and credits 2020-05-11 17:18:04 +02:00
Wuzzy c156398fb5 Merge branch 'translate-fr' of https://git.minetest.land/lrocher/MineClone2 into translate_fr 2020-05-09 18:57:40 +02:00
Rocher Laurent c9a37d0dbc Translate In French 2020-05-05 21:02:21 +02:00
Rocher Laurent 4957bd1118 Translate In French 2020-05-03 22:39:07 +02:00
Wuzzy 3087621b11 Merge branch 'mcl_explosions' 2020-04-30 20:55:10 +02:00
Elias Åström 6315490b14 Update the rest of the blast resistance values
The values have been updated according to this list:

https://minecraft.gamepedia.com/Module:Blast_resistance_values
2020-04-19 13:08:36 +02:00
Wuzzy e268370452 Add fire metadata to many nodes (unused for now) 2020-04-18 23:24:42 +02:00
Wuzzy c5e4ec5e27 Use ephemeral sounds 2020-04-07 00:55:45 +02:00
Wuzzy 03a5519d01 Partial German translation of tooltip extensions 2020-03-11 01:44:23 +01:00
Wuzzy cbda2ef326 Add _tt_help to many more items 2020-03-08 03:30:40 +01:00
Wuzzy ba74546d48 Add extended tooltips 2020-02-19 04:54:17 +01:00
wuniversales 15481cb24d Add Spanish translation 2020-02-04 21:43:50 +01:00
Wuzzy f2b7392a30 Use "minetest" instead of "core" table 2020-01-06 13:02:30 +01:00
Wuzzy 231493cb1b Merge branch 'screwdriver' 2019-12-11 04:47:53 +01:00
Wuzzy e85c999e4c Fix typo in mcl_banners mod 2019-12-09 22:34:56 +01:00
Wuzzy 643b1e7933 Implement banner rotation with screwdriver 2019-12-09 18:27:30 +01:00
Wuzzy 77ab44217a German transl.: mcl_fishing to mcl_maps + fixes 2019-03-15 06:12:03 +01:00
Wuzzy 7be98bfce0 German translation: Anvils, banners 2019-03-14 04:47:56 +01:00
Wuzzy 5aeb4aea74 Add translation templates for most mods
Using the findtext.lua script
2019-03-13 23:40:59 +01:00
Wuzzy e6e9d13701 Piston support: banner, sign, armor stand, chests, daylight sensor, jukebox, noteblock 2019-03-09 07:02:02 +01:00
Wuzzy 342202c979 New translation system, part 5: Items, part 1 2019-03-07 21:36:21 +01:00
Wuzzy 66c6b373a5 Make many entities non-pointable 2019-03-07 03:53:06 +01:00
Wuzzy 94591c8b52 Fix crash when dig banner in protected area 2019-03-04 06:07:44 +01:00
Wuzzy d367a8dbad Update banner comment 2019-03-01 18:32:10 +01:00
Wuzzy ab91971398 Increase pattern layer limit to 12 2019-03-01 17:53:21 +01:00
Wuzzy dca095171c Restrict banner layers to 3 if has a gradient 2019-03-01 17:48:00 +01:00
Wuzzy c6111039ab Fix annoying drops when digging banner in creative 2019-03-01 17:31:31 +01:00
Wuzzy 267a697fab Banners: Respawn entity if it got lost
Entity is respawned on load (in an LBM) or when the banner node is punched.
Also, the banner drop is now handled in the node instead of the entity.
2019-02-18 23:32:18 +01:00
Wuzzy e789801662 Replace getpos() with get_pos() 2019-02-01 06:33:07 +01:00
Wuzzy bf37c06de4 Add inner nodeboxes for banner nodes 2018-05-13 01:52:38 +02:00
Wuzzy 197afa664b Use color for named items 2018-02-04 06:39:10 +01:00
Wuzzy 9ca97d6f4a Fix naming of banner copies 2018-02-04 06:11:08 +01:00
Wuzzy 2c0eee27fc Fix restore of banner desc after anvil rename 2018-02-04 05:52:10 +01:00
Wuzzy a7f0d8c82c Fix wrong banner name when patterncrafting 2018-02-04 05:08:02 +01:00
Wuzzy 86b7f537d5 Copying banners now clears name 2018-02-02 05:29:35 +01:00
Wuzzy 06c9b2c3f6 Handle item naming of banners 2018-02-02 05:07:58 +01:00