ancientmarinerdev
f8e994ae78
Create new dtime timer utility.
2023-03-31 13:40:36 -05:00
FossFanatic
4659d1a0f1
Add function for colorwallmounted node rotation
...
This commit adds a new utility function which helps find the rotation of `colorwallmounted` nodes.
2023-02-27 20:25:36 +00:00
FossFanatic
8060b02cbd
Add extra check to guarantee no nil values
2023-02-19 07:49:09 +00:00
FossFanatic
9bb3d8311b
Append stuff to the new function
2023-02-18 08:24:12 +00:00
FossFanatic
406b27852b
Improve the new function somewhat
2023-02-16 07:54:00 +00:00
FossFanatic
8fd40eaf46
Replace get_registered_biome_from_pos with get_palette_indexes_from_pos
2023-02-14 18:08:59 +00:00
FossFanatic
fcaa2c4ce1
revert 55478f6953
...
revert Fix crash with mapgen v6
2023-02-14 14:22:03 +00:00
FossFanatic
55478f6953
Fix crash with mapgen v6
2023-02-14 14:01:14 +00:00
FossFanatic
7b7e213925
Fix mcl_util.get_registered_biome_from_pos(pos)
...
Adds something which was missing from the function.
2023-02-14 08:12:55 +00:00
FossFanatic
c88f0047c1
Merge branch 'master' into biome_colored_foliage
2023-02-12 08:44:29 +00:00
FossFanatic
b4e84dadb0
Add new function
...
Adds the `get_registered_biome_from_pos` function, which does what the name says.
2023-02-12 07:57:04 +00:00
emptyshore
bdc82b76b5
Respect immortal armor group, ensuring objects are not dealt damage
...
Context: some objects such as chest, frame or sign entities are set to
be immortal, because they are tied to a node and should not be removed
on their own.
However since immortality wasn't respected, it would lead to odd desync
issues between nodes and accompanying entities. An example is a chest
that becomes invisible when struck by lightning or anvil.
2023-02-08 15:59:36 +13:00
AFCMS
fb8262bf57
Make light blocks `buildable_to`
2023-01-15 15:32:42 +00:00
CyberMango
64a7f76d5b
Replaced positions check with an area check.
...
This one is using the minetest.is_area_protected so it should work
faster. It also doesnt require the user to manually add all the points
that should be checked so its nicer to use.
2023-01-12 21:22:36 +02:00
CyberMango
b0d9eed3e1
Removed specific functions and added usage examples.
...
The specific functions didnt end up adding much simplicity, but did add
some degree of confusion.
2023-01-12 20:04:44 +02:00
CyberMango
685a7ff256
Added a function for a single position and better naming.
...
Now the functions are named with "position" instead of "node" to better
reflect what they do and what args they expect.
Also added a function for cehcking just a single position since thats
the most common use case, so it saves a small performance overhead.
2023-01-12 20:04:44 +02:00
CyberMango
949a2b787e
Added protection violation checker functions.
...
1 completley generic and 3 more that use it for more specific cases -
placing a node, modifying a node and planting over a node.
2023-01-12 20:04:44 +02:00
ancientmarinerdev
e5c639c779
Logging improvements
2022-11-12 02:35:00 +01:00
ancientmarinerdev
ff0fea8978
Add default logger to make logging easier
2022-11-12 02:35:00 +01:00
Johannes Fritz
c66e184373
mcl_playerplus fixes
2022-11-11 17:53:13 +00:00
cora
41055d5abe
Check object on mob tranformation
2022-11-11 16:43:45 +01:00
cora
6b8236e8f3
Fix crash in villagegen
2022-11-01 04:52:17 +01:00
cora
f47674b9a7
Add mcl_util.file_exists() function
2022-10-13 02:13:02 +02:00
cora
68d04bc4e8
move set_conditionals from mcl_playerplus to mcl_util
2022-10-07 02:45:01 +00:00
Elias Fleckenstein
f6a40ffb78
Run tools/strip_trailing_whitespace.sh
2022-05-26 07:29:28 +02:00
Elias Fleckenstein
e0f70b54ec
Remove _cmi_is_mob
2022-05-25 23:13:33 +02:00
AFCMS
61f4c5b885
apply @kay27 fix to `mcl_util.drop_items_from_meta_container`
2022-02-22 18:08:26 +01:00
AFCMS
c64d0e4558
simplify random dropping position code
2022-02-22 18:08:24 +01:00
AFCMS
61e54ed617
rename `mcl_util.drop_items_container_get` to `drop_items_from_meta_container`
2022-02-22 18:08:24 +01:00
AFCMS
80fb59f9ac
add barrel
2022-02-22 18:08:22 +01:00
NO11
8db28c1337
Update get_pointed_thing function
2022-02-17 15:30:41 +00:00
NO11
ad99746d99
Add get_pointed_thing function
2022-02-17 14:35:51 +00:00
Elias Fleckenstein
92686e5412
Fix broken mcl_util.calculate_durability
2021-12-02 17:28:19 +01:00
iliekprogrammar
fa22ec4dd0
Add helper functions to update/merge tables.
2021-11-10 02:50:49 +08:00
NO11
e4af02ea52
Add function to replace mobs
2021-10-05 04:15:48 +00:00
Elias Fleckenstein
c57ead6985
Use next() instead of one-time loop to fix luacheck warning in mcl_util.calculate_durability
2021-05-26 20:56:00 +02:00
AFCMS
9e074af07f
unify code style [1]
2021-05-25 12:52:25 +02:00
AFCMS
00f4cfa5b5
simplify mcl_util code
2021-05-25 01:33:26 +02:00
Elias Fleckenstein
f53ff8418f
mcl_damage: HP check guard in non-modifier on_hpchange callback and usage of raw tostring for deactivated objects for death messages
2021-05-05 13:24:23 +02:00
Elias Fleckenstein
be0cf5788d
mcl_util.deal_damage: Only deal damage to players / mobs that are not already dead
2021-05-05 09:24:51 +02:00
Elias Fleckenstein
199488cc74
Add nil check for crash prevention
2021-04-29 11:18:22 +02:00
Elias Fleckenstein
302175691a
Integrate death messages
2021-04-25 16:42:38 +02:00
Elias Fleckenstein
6aecae6eea
Simplify damage pipeline; Add on_death and on_damage callbacks
2021-04-25 13:50:07 +02:00
Elias Fleckenstein
53b0ad7347
Implement magic damage
2021-04-18 20:21:11 +02:00
Elias Fleckenstein
4f0bb444fe
Integrate armor stand
2021-04-18 16:03:23 +02:00
Elias Fleckenstein
ce0148d9a8
Rewrite armor; new damage system
2021-04-14 15:46:52 +02:00
Elias Fleckenstein
f350fa6272
Add bossbars
2021-04-06 14:50:34 +02:00
Elias Fleckenstein
2125c51c9c
Fix mcl_util.get_color
2021-03-05 10:20:19 +01:00
Elias Fleckenstein
09671b7ac9
Add simple color validator / parser
2021-03-05 09:37:27 +01:00
Elias Fleckenstein
d57db0444f
Use mod.conf in all mods, part 1
2021-03-04 15:22:14 +01:00