Johannes Fritz
75dffe5059
Fix verbose tool info on non-tools
2023-03-15 15:36:48 +00:00
FossFanatic
b1a52a3243
Rename some things
...
This commit renames `tnt_griefing` to `explosions_griefing` to better reflect what this setting now does.
2023-03-09 12:52:22 -06:00
FossFanatic
af8c4ded93
Try different fix for broken setting
2023-03-09 12:52:22 -06:00
FossFanatic
8b0d195906
Fix broken setting
...
This commit adds some lines of code which make sure that nothing gets destroyed when TNT griefing is disabled.
2023-03-09 12:52:22 -06: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 55478f6953e4a05ba83c0cfc2c61bb76e5cd701a
...
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
Michieal
6265148727
Move textures all into one centralized directory.
2023-01-30 22:55:53 -05:00
Johannes Fritz
da7320b14c
Add survival tool capabilites to all items
2023-01-24 11:38:58 -06:00
Johannes Fritz
a1cc24f8d3
Slowing creative digging
2023-01-24 11:16:28 -06:00
CyberMango
78f32d2dd4
Removed the approved field from death reasons.
...
This created a strange bug that only death reasons created by
mcl_utils.deal_damage were "approved" so only they triggered running the
death callbacks, so only they triggered printing a death message.
Therefore most deaths did not produce a death message.
2023-01-20 19:15:21 +02:00
FossFanatic
513d148eaf
Merge branch 'master' into grass_sound_revert
2023-01-17 12:44:16 +00:00
AFCMS
fb8262bf57
Make light blocks buildable_to
2023-01-15 15:32:42 +00:00
FossFanatic
fbb4cf084f
Revert grass footstep sound
...
This reverts the grass footstep sounds back to the one before the recent sound update by grorp.
2023-01-14 15:22:19 +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
iliekprogrammar
661afed46c
Merge branch 'master' into mcl-init-fixes
2022-12-30 18:11:08 +00:00
ancientmarinerdev
e6e898671a
Merge pull request 'add japanese translation' ( #3149 ) from SakuraRiu/MineClone2:master into master
...
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/3149
Reviewed-by: Michieal <michieal@noreply.git.minetest.land>
2022-12-29 22:14:48 +00:00
Gregor Parzefall
14adcbbecb
Make snow sound like snow while digging it
2022-12-21 22:39:26 +01:00
Gregor Parzefall
7312c30f8e
Update attribution of sounds
...
Also: Add myself to CREDITS.md
2022-12-21 22:13:08 +01:00
Gregor Parzefall
4fcbe05be5
Remove a sound I forgot
2022-12-21 13:53:09 +01:00
Gregor Parzefall
605e4de455
Restore MCL changes to grass / leaves sounds
2022-12-20 21:12:56 +01:00
Gregor Parzefall
e4abbbf112
Sound changes in code
2022-12-20 20:57:57 +01:00
Gregor Parzefall
718cdb553d
More sound changes from MTG
2022-12-20 18:54:52 +01:00
Gregor Parzefall
e2ec660f25
Update sounds from MTG
2022-12-20 18:21:31 +01:00
Riu Sakura
2b61231f82
add japanese translation
2022-12-19 15:33:31 +09:00
ancientmarinerdev
f7f0a2be8b
Raids performance optimisation. Check for village less and over less distance.
2022-12-09 22:59:58 +00:00
cora
69f5bad0bb
Document mcl_events
2022-11-26 17:06:04 +01:00
cora
dabc09adb2
Lower and unify distance check
2022-11-26 17:06:04 +01:00
cora
d0ea7c4059
Set events metatable correctly
2022-11-26 17:06:04 +01:00
cora
93e5034317
Add fireworks when raid complete
2022-11-26 17:06:04 +01:00
cora
e5515ed119
Add debug field: active event counter
...
to verify it doesn't memleak
2022-11-26 17:06:04 +01:00
cora
94057aa7e5
Code cleanup
2022-11-26 17:06:04 +01:00
cora
db4f9ec5a3
Fix raid instawin when no spawnable blocks found
2022-11-26 17:06:04 +01:00
cora
057a78ed30
Fix raid registering as completed when unloading the area
2022-11-26 17:06:04 +01:00
cora
22fa5096c9
Add debug command status feedback
2022-11-26 17:06:04 +01:00
cora
2147790b44
Add setting to disable events
2022-11-26 17:06:04 +01:00
cora
608da950e4
Abort events when no player is near
2022-11-26 17:06:04 +01:00
PrairieWind
48a8511052
Make bossbars enablable/disablable per event type. Update some capitalization.
2022-11-26 17:06:04 +01:00
cora
9893dee1aa
Add debug chatcommand to start events
2022-11-26 17:06:04 +01:00
cora
dc017864fd
raids: properly integrate potions api
...
supports "level" now, bad omen > 1 means extra wave additionally
the playername is saved in the event object now for later access
and events can be made exclusive to a certain radius now.
2022-11-26 17:06:04 +01:00
cora
7ab2c5fecd
Make debug output an opt-in setting
2022-11-26 17:06:04 +01:00
cora
390aec5d7a
Integrate raids with mcl_events
2022-11-26 17:06:04 +01:00
cora
052e76bfcc
start at effective stage 1
2022-11-26 17:06:04 +01:00
cora
f17a9220bb
Add bossbar support
2022-11-26 17:06:04 +01:00
cora
627ce0dc3b
Finish at max_stage not max_stage + 1
2022-11-26 17:06:04 +01:00
cora
f06d5a1ee3
Add event api
...
prototype state, test with chatcommand /infest (debug priv)
2022-11-26 17:06:03 +01: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
98dad0b191
Generate netherrack under the bedrock ceiling
...
this is a somewhat ugly hack that uses minetest.generate_decorations
which generates decorations regardless of biome so additional steps
had to be taken to ensure no other decorations "spill over" due to
this.
2022-11-01 04:52:17 +01:00
cora
8d456d8ff9
implement sweet berry damage
...
0.5 per second while moving inside it
2022-10-26 15:57:17 +00:00
AFCMS
bacec2c7e6
Make 2 last params of mcl_vars.get_node
optional
2022-10-25 11:01:44 +02:00
AFCMS
a3d459f020
Refactor mcl_init
...
- use new vectors
- make code less confuse
- type annotations
2022-10-25 11:01:44 +02:00
AFCMS
9f16bfe6c5
mcl_attached fixes
...
- deprecated usage of vector.new()
- use new vectors everywhere
- use `minetest` instead of `core`
- make some more functions local
2022-10-23 18:39:08 +02:00
AFCMS
8da8040324
mcl_explosions_fixes
...
- use new vectors
- remove deprecated use of vector.new()
- add some type annotations
2022-10-23 18:35:22 +02:00
cora
f47674b9a7
Add mcl_util.file_exists() function
2022-10-13 02:13:02 +02:00
talamh
23ec60fff0
Change torch model, add soul fire flame particle texture
2022-10-10 20:50:11 +01:00
cora
68d04bc4e8
move set_conditionals from mcl_playerplus to mcl_util
2022-10-07 02:45:01 +00:00
cora
2efcb168b2
Make the game respect mt "enable_damage" setting
2022-09-19 13:59:24 +02:00
cora
ba7f534d2f
Make end island larger
2022-09-14 20:37:08 +00:00
cora
2c7838bdf6
make the end island slightly larger
...
also uses the mcl_mapgen_core api now
2022-09-14 20:37:07 +00:00
cora
61f9a047e3
Remove unused functions
2022-09-14 20:37:07 +00:00
cora
1d942e9946
Exit portal and spawn platform -> mcl_structures
2022-09-14 20:37:07 +00:00
cora
ba35f19f71
Log player position on death
...
So people can find their items easier
2022-08-15 11:57:11 +02:00
iliekprogrammar
0e999d8bb9
[5.6] remove incorrect marks.
...
wrong, bad. these are fine.
2022-08-07 13:00:43 +08:00
iliekprogrammar
221ee0fcf1
[5.6] mark places with unsafe set_hp entity handling
...
There might be other places i might be missing, but these are the obvious ones.
leftover entity handling i did not mark:
* everything that involves a apply()-like algorithm (e.g. callbacks) over the
same list of objects.
* in mcl_damage, it's not known whether mcl_damage.from_mt() would involve
entity handling or just player handling.
2022-08-07 00:13:03 +08:00
Sumyjkl
93e0e0607e
walkover globalstep timer changed to align with mc time for damage and other actions
2022-07-26 23:21:56 +10:00
Sumyjkl
9cd454f9d7
magma no longer damages player on halfslabs
2022-07-26 23:16:14 +10:00
Elias Fleckenstein
e7898352d8
Remove mobs_mc_gameconfig
2022-05-27 02:44:39 +02: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
kay27
dc4ccf91cc
lift clouds to 384 in valleys mapgen
...
Valleys has a much higher average elevation than v7 often leading
to "normal" looking terrain being in the clouds. This lifts the
clouds up higher.
2022-04-19 10:23:10 +00:00
kabou
a9a3f01a0e
Tiny comment fix.
2022-03-19 03:16:15 +01:00
kabou
8518ce2c19
Add support for group:supported_node
...
* Add support for `group:supported_node` to CORE/mcl_attached.
Supported nodes are nodes that can be placed on any node that does not
have the `drawtype = "airlike"` attribute.
* Copy the `drop_attached_node()` function from minetest/builtin, so
that the override function provides the same behavior when nodes drop.
* Add comments to CORE/mcl_attached and to the functions defined in it.
* Add more local aliases for global minetest.* functions.
* If the original function returns true, it is not necessary anymore
to perform more tests and the override function can simply return true
immediately.
2022-03-19 02:32:13 +01:00
Nils Dagsson Moskopp
66bb209ad1
Fix TGA file writing on Windows
...
Before this patch, the tga_encoder mod would write corrupted TGA files
on Windows: Bytes that looked like newlines were replaced by a carriage
return and a newline.
2022-02-28 16:58:59 +00:00
Emojigit
ba172f0847
mcl_explosions
2022-02-23 23:58:05 +01: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
d46a96c43a
Merge branch 'master' into buckets+
2022-02-17 14:48:07 +00:00
NO11
ad99746d99
Add get_pointed_thing function
2022-02-17 14:35:51 +00:00
AFCMS
da4952a125
wip mcl_damage documentation
2022-02-13 21:31:04 +01:00
AFCMS
5bedae49d6
walkover
fixes
2022-01-20 22:55:36 +01:00
Elias Fleckenstein
ec7e245b9d
Various fixes to the enchanting and loot system
...
- enchanted loot generated by mapgen now uses PseudoRandom for randomness
- prevent fishing loot from generating loot 32767 times (!!!) when only 1 is needed
- bows and fishing rods obtained from the treasure section of fishing loot are now enchanted
- there is now a function to uniform enchant items other than books
2021-12-07 17:57:18 +01:00
Elias Fleckenstein
92686e5412
Fix broken mcl_util.calculate_durability
2021-12-02 17:28:19 +01:00