Commit Graph

30 Commits

Author SHA1 Message Date
kabou bacc7613b5 Fix crash in mt 5.4 with vector ops.
* `vector.from_string()` is not available in mt pre-5.5.  Replace with
  `minetest.string_to_pos()`.
2022-05-11 17:41:10 +02:00
kabou 8a4b8707fa Add new compass API.
* Add API.md
* Update mcl_itemframes to use the new API.
* Revert old exported function back to original API.
2022-05-10 23:38:28 +02:00
kabou a8c231da34 Refactor compass code.
* Split up `get_compass_image()` into smaller functions.  This allows
  for better code sharing between old and new API and globalstep fn.
* Add `get_compass_itemname()` function.  It will be the new API of
  choice, `get_compass_image() will be deprecated soon.
* Remove function declaration out of globalstep function.
* Various other performance improvements.
* Add local aliases for global functions
* Lodestone compasses can only stack 1 item.
* Document functions and variables.
* Fix lodetone compass inaccurately reusing compass descriptions.
* Add usage descriptions to node definitions
* Refactor craftitem registration code.
* Update translation templates.
2022-05-10 22:43:03 +02:00
chmodsayshello f1c60a48e0 remove debug logging 2022-04-30 10:02:04 +00:00
chmodsayshello f9d8b61dc1 update mcl_compass init.lua 2022-04-30 08:57:03 +00:00
AFCMS cd33d406b2 fix many codestyle issues (functions, strings, modpaths) 2021-05-29 16:12:33 +02:00
AFCMS 8ac5d32416 [mcl_compass] fix warnings 2021-05-23 00:17:12 +02:00
Lizzy Fleckenstein ecc2010fe5 Make compasses work in itemframes 2021-05-03 11:22:47 +02:00
AFCMS 6645c4cb30 Really 2021-03-16 17:43:32 +01:00
AFCMS 5d17a6b699 fix SO MANY pairs/ipairs 2021-03-16 17:35:46 +01:00
Wuzzy e22b766ffa Remove enchanted compass (caused a crash) 2020-12-19 15:32:32 +01:00
Lizzy Fleckenstein ed738da016 Added Enchanting Table 2020-11-25 12:47:27 +01:00
Lizzy Fleckenstein 3fd1963da9 Compass support 2020-11-01 14:23:43 +01:00
Wuzzy ba74546d48 Add extended tooltips 2020-02-19 04:54:17 +01:00
Wuzzy e4fbbeddb2 New translation system, part 6: Items, part 2 2019-03-07 23:40:57 +01:00
Wuzzy e789801662 Replace getpos() with get_pos() 2019-02-01 06:33:07 +01:00
Wuzzy 502be105ac Apply disable_repair group 2018-12-07 21:25:15 +01:00
Wuzzy b0c87f74fe Move world-related functions to mcl_worlds 2017-11-24 03:10:02 +01:00
Wuzzy 6ff1be07cb Fix crash on join w/ compass + static_spawnpoint set in bracket format 2017-11-05 02:50:31 +01:00
Wuzzy 0ff6cb2837 Fix broken compass and clocks 2017-08-22 18:58:53 +02:00
Wuzzy fe31afc119 Disable weather in Nether and End and Void 2017-08-22 18:32:05 +02:00
Wuzzy 39f4573294 Randomly spin compass and clock in VoidNetherEnd 2017-08-17 21:26:09 +02:00
Wuzzy c7fc3845c1 Disable compass+clock updates in Nether, End, Void 2017-08-17 20:40:55 +02:00
Wuzzy e5a34367c9 Use new Minetest settings API syntax for most mods 2017-08-09 16:17:00 +02:00
Wuzzy 1d1a7e192d Update compass texture, add conversion rule 2017-07-20 22:04:15 +02:00
Wuzzy b1b45274e4 Add Help entry aliases for many core items 2017-03-20 18:12:05 +01:00
Wuzzy 3db4148e7d Add some basic doc_items help texts for some items
Requires doc_items (not part of MCL2)
2017-03-02 21:55:25 +01:00
Wuzzy aabb1e972d Add _doc_items_create_entry fields for doc_items 2017-03-02 19:53:53 +01:00
Wuzzy 7ae2d1dc4f Make compass clickable in craft guide 2017-02-20 21:14:10 +01:00
Wuzzy 3696ee3761 Organize mods into modpacks for better overview 2017-02-16 01:45:21 +01:00