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
iliekprogrammar
f61143758e
Fix small typo in API.md
2021-11-10 12:54:28 +08:00
iliekprogrammar
fa22ec4dd0
Add helper functions to update/merge tables.
2021-11-10 02:50:49 +08:00
Nils Dagsson Moskopp
4926c0560d
Speed up TGA encoding by creating fewer strings
2021-11-04 15:38:56 +01:00
Nils Dagsson Moskopp
23ca11c8e1
Use RLE compression in tga_encoder
2021-11-04 15:38:26 +01:00
NO11
6d22262c53
Merge branch 'master' into totem_particles
2021-10-25 17:09:24 +00:00
NO11
e4af02ea52
Add function to replace mobs
2021-10-05 04:15:48 +00:00
NO11
ecfb615c89
Merge branch 'master' into totem_particles
2021-07-12 19:02:02 +00:00
cora
c558e30ea5
Fix server crash when players dig unknown nodes
...
Digging unknown nodes crashes the Clamity Minetest server, which
runs modified Minetest: https://github.com/ClamityAnarchy/minetest
Crashes did occur with commit d5434bf008 of that Minetest version.
This commit makes unknown nodes explicitly not harvestable.
2021-07-08 15:33:24 +02:00
NO11
1471521709
Merge branch 'master' into totem_particles
2021-07-07 09:49:33 +00:00
AFCMS
e81da3c4ff
fix some mods using "core" insteed of "minetest"
2021-06-12 00:18:52 +02:00
NO11
1e0ffed26b
Merge branch 'master' into totem_particles
2021-06-07 17:16:41 +00:00
Elias Fleckenstein
e5bdf230d5
Merge pull request 'Add polish translation' ( #1542 ) from marcin-serwin/MineClone2:polish-translation into master
...
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/1542
2021-06-04 16:51:43 +00:00
NO11
7464b8ff48
Add bonemeal particle texture
2021-06-03 18:04:54 +00:00
marcin-serwin
cbe8583cef
Merge branch 'master' into polish-translation
2021-06-02 10:14:25 +00:00
NO11
a65db15b5c
Totem particle textures
2021-05-29 19:21:15 +00:00
AFCMS
cd33d406b2
fix many codestyle issues (functions, strings, modpaths)
2021-05-29 16:12:33 +02: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
981f3d5d74
fix some codestyle issues
2021-05-25 10:51:46 +02:00
AFCMS
3f3abbbee1
speedup mcl_particles code
2021-05-25 09:09:16 +02:00
AFCMS
00f4cfa5b5
simplify mcl_util code
2021-05-25 01:33:26 +02:00
AFCMS
0cc11d0bbb
[mcl_loot] fix warnings
2021-05-25 01:28:10 +02:00
AFCMS
f61102279f
[_mcl_autogroup] fix warnings
2021-05-25 01:26:26 +02:00
AFCMS
f5a91f7c24
[biomeinfo] fix warnings
2021-05-25 01:23:41 +02:00
AFCMS
540508638c
rewrite flowlib to be more efficient
2021-05-25 01:22:25 +02:00
AFCMS
03c9c0b830
[mcl_explosion] fix warnings
2021-05-25 00:57:42 +02:00
AFCMS
36f3c26139
[walkover] fix warnings
2021-05-25 00:55:14 +02:00
Elias Åström
067affcabb
Merge branch 'master' of https://git.minetest.land/MineClone2/MineClone2
2021-05-18 19:33:05 +02:00
Elias Åström
4d13eddcd6
Adjust explosion entity damage hitbox
...
In mcl_explosions the hitbox used for calculating the damage of an
entity is its collisionbox multiplied by two. This commit removes the
multiplication by two because that makes explosion damage behave weirdly
in some circumstances. It was most likely implemented that way because
of a misinterpretation of the Minecraft wiki.
2021-05-18 19:31:08 +02:00
Elias Åström
f7052943ec
Fix rays not being cast in a specific direction
...
A bug was introduced in 679e2b1b which caused explosions to not cast
rays for environment destruction in the (+X, +Y, +Z) direction. This
commit fixes that.
2021-05-18 19:29:03 +02:00
AFCMS
d5ec2ccbd8
fix doc
2021-05-13 23:09:47 +02:00
AFCMS
0ad03acf46
improve mcl_worlds API
2021-05-13 22:55:17 +02:00
Elias Fleckenstein
4b327bcf99
Minor fix to prevent writing the damage reason approval field into MCL damage reason and calling passive damage handlers on dead players
2021-05-05 14:41:23 +02:00
Elias Fleckenstein
35a2a2b912
Workaround to prevent double death messages
2021-05-05 13:27:30 +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
f5b2a5f5c1
Merge branch 'master' of https://git.minetest.land/MineClone2/MineClone2
2021-05-05 09:25:20 +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
1eaf662833
Add updated tga_encoder
2021-05-02 17:47:46 +02:00
Elias Fleckenstein
bd74dbe321
Revert "Use PNG instead of TGA"
...
This reverts commit ca9cd8cbe0fff0ab40121d6067fb075559b12860.
The TGA was faster and produced smaller files.
2021-05-02 13:03:18 +02:00
Elias Fleckenstein
ca9cd8cbe0
Use PNG instead of TGA
2021-05-02 12:55:04 +02:00
Elias Fleckenstein
5d3e74c844
Remove useless tga_encoder files
2021-05-01 17:20:23 +02:00
Elias Fleckenstein
c6e80b5882
Add Real Maps
2021-05-01 16:52:16 +02:00
Elias Fleckenstein
199488cc74
Add nil check for crash prevention
2021-04-29 11:18:22 +02:00
NO11
7a00e8acf7
New particle textures for sponge
2021-04-28 14:32:40 +00:00
Elias Fleckenstein
edc89898bb
Integrate fire resistance
2021-04-25 20:51:13 +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
9f7b371bfc
Merge branch 'master' into damage
2021-04-22 13:29:32 +02:00
Elias Fleckenstein
acbdc937b4
Fix crash when trying to explode an unknown node
2021-04-22 13:19:44 +02:00
Elias Fleckenstein
c9b4ddb923
Add command damage type (This is Non-MC)
2021-04-18 20:22:18 +02:00
Elias Fleckenstein
53b0ad7347
Implement magic damage
2021-04-18 20:21:11 +02:00
Elias Fleckenstein
d9195cc520
Redesign damage modifier execution
2021-04-18 20:08:08 +02:00
Elias Fleckenstein
d08a226a51
Integrate critical hits
2021-04-18 19:50:48 +02:00
Elias Fleckenstein
2827542002
Implement food poisoning damage properly~
2021-04-18 18:49:00 +02:00
Elias Fleckenstein
3ad5b30ea5
Add cramming and fireworks damage types for future use
2021-04-18 17:38:19 +02:00
Elias Fleckenstein
4f0bb444fe
Integrate armor stand
2021-04-18 16:03:23 +02:00
Elias Fleckenstein
5d9bb7cacd
Fix armor not actually protecting lol
2021-04-14 19:06:11 +02:00
Elias Fleckenstein
ad3defdfb3
Merge branch 'master' into damage
2021-04-14 18:29:42 +02:00
Elias Fleckenstein
c41bd3932c
Add global smoke spawning API
2021-04-14 18:14:21 +02:00
Elias Fleckenstein
875bb3db84
Use fire-like damage types properly
2021-04-14 17:20:51 +02:00
Elias Fleckenstein
ce0148d9a8
Rewrite armor; new damage system
2021-04-14 15:46:52 +02:00
Marcin Serwin
2221f89696
Add polish translation of mcl_explosions
2021-04-12 09:58:07 +02:00
Elias Fleckenstein
f350fa6272
Add bossbars
2021-04-06 14:50:34 +02:00
AFCMS
28402ca663
store tool wield scale in a global var
2021-04-05 10:16:56 +02:00
AFCMS
0740854b5d
Merge branch 'master' into doc-refactoring
2021-03-30 22:28:48 +02:00
kay27
cb2aae5a55
[mcl_mapgen_core] Redesign, mostly to remove water from End and restore static lvm_buffer to speed it up
2021-03-28 22:57:11 +04:00
AFCMS
890a569b13
add API documentation to mcl_worlds
2021-03-28 07:40:36 +02:00
AFCMS
cdb67d96a6
add API documentation to mcl_explosions
2021-03-28 01:00:18 +01:00
AFCMS
6f9c1856b8
add API documentation to mcl_colors (!)
2021-03-28 00:48:24 +01:00
AFCMS
e56d9d2ab8
add API documentation to controls
2021-03-28 00:44:36 +01:00
AFCMS
52939ff6a4
add API documentation to flowlib (part 5)
2021-03-28 00:32:52 +01:00
AFCMS
39ac3f208d
add API documentation to flowlib (part 4)
2021-03-28 00:25:54 +01:00
AFCMS
2a5dcd1634
add API documentation to flowlib (part 3)
2021-03-28 00:23:57 +01:00
AFCMS
19db2a479f
add API documentation to flowlib (part 2)
2021-03-28 00:18:19 +01:00
AFCMS
fb50b256ed
add API documentation to flowlib (part 1)
2021-03-28 00:12:41 +01:00
AFCMS
ce123d4676
add API documentation to mcl_autogroup
2021-03-28 00:02:35 +01:00
Elias Åström
0d7c2c4988
Fix #1358 for real
2021-03-23 12:02:00 +01:00
kay27
03feb36558
Improve Nether Portals ( #1315 ) (as a squash)
...
Remove Nether portal caches, https://git.minetest.land/MineClone2/MineClone2/issues/1210
Store all exits from Nether portals in quick-access table
Implement proper Nether portal search, using the table, https://git.minetest.land/MineClone2/MineClone2/issues/1055
Store Nether portal exits table in mod storage
Remove exits from table on Nether portal destruction
Align destination area to [map chunks 5x5x5](https://git.minetest.land/MineClone2/MineClone2/wiki/World-structure%3A-positions%2C-boundaries%2C-blocks%2C-chunks%2C-dimensions%2C-barriers-and-the-void ) to avoid lots of ```emerge_area()``` calls
Support Nether roof, https://git.minetest.land/MineClone2/MineClone2/issues/1267
Implement better suitable place search, https://git.minetest.land/MineClone2/MineClone2/issues/1126
Implement object queue not to trigger the same search again
Avoid lava lakes, https://git.minetest.land/MineClone2/MineClone2/issues/1126
Add ```/spawnstruct nether_portal``` chat command
Co-Authored-By: kay27 <kay27@noreply.git.minetest.land>
Co-Committed-By: kay27 <kay27@noreply.git.minetest.land>
2021-03-21 23:14:33 +00:00
Elias Åström
0996a83ba0
Assert that both parts of mcl_autogroup exist
2021-03-20 19:32:04 +01:00
Elias Åström
1621c23308
Rename "tool_multiplier" to "speed" for tools
2021-03-20 19:25:47 +01:00
Elias Åström
10154d5778
Fix #1348
2021-03-20 11:02:16 +01:00
Elias Åström
0f2c487dca
Remove _mcl_autogroup depends on mcl_autogroup
...
It looks like the dependency might cause problems with the mod loading
order and lead to situations were _mcl_autogroup is not loaded after all
the other mods. Because _mcl_autogroup begins with an underscore it
should always be loaded after mcl_autogroup anyways.
2021-03-18 13:59:22 +01:00
Elias Åström
bfe51316ee
Merge branch 'mcl_autogroups'
2021-03-18 13:43:58 +01:00
Elias Åström
13268965ee
Update README.txt in _mcl_autogroup
2021-03-18 13:40:56 +01:00
Elias Åström
521f96b4ab
Use mod.conf for mcl_autogroup and _mcl_autogroup
2021-03-18 13:36:25 +01:00
Elias Åström
c8b543991f
Automatically assign nodes to creative_breakable
...
If they belong to any digging group.
2021-03-18 11:35:40 +01:00
Elias Åström
4c46eb2b4b
Make tools without toolcaps do damage as hand
...
If the tool_capabilities defaults to {} if unspecified the tool, then
users will not be able to attack with the tool at all. This solves that
by including the damage_group and full_punch_interval from the hand into
the tool_capabilities when it is nil.
2021-03-18 11:35:40 +01:00
Elias Åström
fe770c19a5
Fix crash when tool_capabilities is nil
2021-03-18 11:35:40 +01:00
Elias Åström
0112825a9f
Localize variables in _mcl_autogroup
2021-03-18 11:35:40 +01:00
Elias Åström
cff0130506
Rename _mcl_autogroup_groupcaps to _mcl_diggroups
2021-03-18 11:35:40 +01:00
Elias Åström
7b93f68ed8
Fix typo
2021-03-18 11:35:40 +01:00
Elias Åström
ece4c892f4
Force tools to include levels in their diggroups
2021-03-18 11:35:40 +01:00
Elias Åström
bec1f786a6
Improve documentation of mcl_autogroup
2021-03-18 11:35:40 +01:00
Elias Åström
6458565bf9
Move mcl_util.hash to a local function
...
It is probably unlikely it will be useful at other places in Mineclone2.
2021-03-18 11:35:40 +01:00