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
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
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
AFCMS
cd33d406b2
fix many codestyle issues (functions, strings, modpaths)
2021-05-29 16:12:33 +02:00
AFCMS
03c9c0b830
[mcl_explosion] fix warnings
2021-05-25 00:57:42 +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
Elias Fleckenstein
302175691a
Integrate death messages
2021-04-25 16:42:38 +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
ce0148d9a8
Rewrite armor; new damage system
2021-04-14 15:46:52 +02:00
AFCMS
4b2c963222
performances improvement for mcl_explosions
2021-03-15 01:20:22 +01:00
AFCMS
787d997e51
fix warnings in mcl_explosion
2021-03-11 23:08:51 +01:00
Elias Åström
53041a0d62
Add setting to bypass protection in mcl_explosions
2021-02-28 16:06:48 +01:00
Elias Åström
5972322639
Remove backward compatible names in explosion info
...
Appears like they were not used anywhere.
2021-02-16 21:36:37 +01:00
Elias Åström
d5ea06bb47
Fix center of bounding box calculation
2021-02-16 21:33:26 +01:00
Elias Åström
948438bd1c
Add max_blast_resistance to mcl_explosions.explode
...
If the option is specified, then the explosion will treat all
non-indestructible nodes as having a blast resistance of no more than
the value of the option.
2021-01-26 17:04:22 +01:00
Elias Åström
34274486c7
Add griefing option to mcl_explosions.explode
...
When set to false explosions will only affect entities and not destroy
nodes.
2021-01-26 17:04:22 +01:00
Elias Åström
e3d2284485
Refactor some stuff in mcl_explosions
2021-01-26 17:04:22 +01:00
Elias Åström
4a07b0607f
Improve API of mcl_explosions.explode
...
Replace the 'no_sound' and 'no_particle' options in the 'info' parameter
with 'sound' and 'particles'. But also has backwards compatability for
the old parameter names.
2021-01-26 17:04:22 +01:00
Elias Åström
c907df9669
Tiny code style cleanup in mcl_explosions
2021-01-26 17:04:22 +01:00
kay27
1a2c500873
Restore missing 'died formspec' after player exploded being in the bed
2021-01-20 01:46:52 +04:00
Elias Fleckenstein
034174390d
Fix #801
2021-01-06 12:48:39 +01:00
Elias Fleckenstein
a3cf6b0e5d
Blast Protection; Fire Protection; Projectile Protection; Feather Falling; Thorns
2020-11-13 12:21:36 +01:00
Wuzzy
731f42ac88
Rename and move texture: tnt_smoke
2020-08-19 18:47:58 +02:00
kay27
9537eaead0
Protect from explosions
2020-08-10 22:04:27 +04:00
Elias Åström
ea1ad14f72
Fix sound/particle bug in mcl_explosions
2020-07-17 00:39:33 +02:00
Wuzzy
c106a62979
Use minetest.is_creative_enabled
2020-07-10 16:45:40 +02:00
Wuzzy
8ecc96fff2
Fix crash when spawning firey explosion
2020-06-12 12:30:45 +02:00
Wuzzy
6f12adcb03
Fix broken blast handling for chest/shulkerbox
2020-06-06 16:57:19 +02:00
Wuzzy
2d6e0a99af
Check more nodes for falling after explosion
2020-06-04 23:43:17 +02:00
Wuzzy
546ee09e6f
Check for falling after explosion
2020-06-04 14:17:04 +02:00
Wuzzy
2f9e5d302e
Fix explosion API not calling on_[con|de]struct
2020-06-04 14:02:18 +02:00
Wuzzy
5108f398bb
Fix all explosions spawning fire
2020-05-08 18:04:04 +02:00
Wuzzy
2ec66fc61b
Fix leaking global in mcl_explosions
2020-05-08 18:01:33 +02:00
Alexander Minges
ad70a71f8c
Fix crash when triggering explosion (type check error)
2020-05-08 17:31:41 +02:00
Wuzzy
bc740efafe
Add fire explosions
2020-05-02 19:05:56 +02:00
Wuzzy
6a576c50a0
Add puncher to tnt_explosions
2020-05-02 18:24:53 +02:00
Wuzzy
d4bc7a2f88
Add back the explosion death msg
2020-05-02 18:09:25 +02:00
Wuzzy
7fa8828bd5
Explosions: Use minetest.get_position_from_hash
2020-04-30 21:13:10 +02:00
Wuzzy
026d406d4b
Fix indents in mcl_explosions
2020-04-30 21:12:30 +02:00
Wuzzy
679e2b1b70
Explosions: Reduce repeated code
2020-04-30 21:08:42 +02:00
Wuzzy
772ea01aff
Explosions: Fix syntax error
2020-04-30 21:00:13 +02:00
Wuzzy
2b5ddbd62d
Explosions: Change item drop handler
2020-04-30 20:58:58 +02:00
Wuzzy
9ee0ef5a8d
Explosions: Replace some API calls
2020-04-30 20:57:38 +02:00
Elias Åström
a10dff8421
Use walkable for entity exposure
...
This makes TNT do full damage under water.
2020-04-19 13:08:36 +02:00
Elias Åström
a62a75c799
Do not drop items in creative mode
...
It works like this in Minecraft. This will also reduce lag when playing
with TNT in creative.
2020-04-19 13:08:36 +02:00
Elias Åström
b4ea2afe77
Add tnt_knockback flag for entities
...
When set to true, entities will be knocked back when affected by TNT
explosions. Also ignore '__builtin:item' entities to reduce lag, and
replace tabs with spaces in 'mcl_explosions/init.lua'.
2020-04-19 13:08:36 +02:00
Elias Åström
92ab90fd1b
Add knockback for mobs
2020-04-19 13:08:36 +02:00