Commit Graph

4540 Commits

Author SHA1 Message Date
Wuzzy aeb7a6cb8b Disable guardian spawning 2020-05-08 17:44:27 +02:00
Wuzzy 131051b1df Fix code typo in mcl_playerplus 2020-05-08 17:41:09 +02:00
Alexander Minges ad70a71f8c Fix crash when triggering explosion (type check error) 2020-05-08 17:31:41 +02:00
Wuzzy fb55d33bfe Fix villager crash when trading w/o inited inv 2020-05-08 17:27:22 +02:00
Wuzzy 94c4256451 Fix crash when standing on unknown node 2020-05-08 17:23:39 +02:00
Wuzzy 8c20dfa5d2 I no longer accept PRs 2020-05-05 02:23:17 +02:00
Wuzzy 2b4a4f8c60 Merge branch 'master' of https://git.minetest.land/Wuzzy/MineClone2 2020-05-05 02:11:52 +02:00
Wuzzy b59f0d6c6e Merge pull request 'Prevent water mobs to classify solid blocks below them or the medium they are supposed to be in as dangerous' (#685) from Athemis/MineClone2:fix-mobs-dangerous-nodes into master 2020-05-05 00:10:53 +00:00
Alexander Minges beace10136 prevent water mobs to classify solid blocks below them as dangerous 2020-05-03 17:43:44 +02:00
Wuzzy 02b2ff7460 Fix mcl_weather crash 2020-05-02 19:08:55 +02:00
Wuzzy bc740efafe Add fire explosions 2020-05-02 19:05:56 +02:00
Wuzzy 00acbf8a2a Remove unused TNT functions 2020-05-02 18:51:59 +02:00
Wuzzy 56d484f69b Make mobs and bed use mcl_explosions 2020-05-02 18:50:25 +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
Wuzzy 58458b2bca mcl_explosions: Rename description.txt 2020-04-30 20:55:49 +02:00
Wuzzy 3087621b11 Merge branch 'mcl_explosions' 2020-04-30 20:55:10 +02:00
Wuzzy 8dd1cf6719 Update Contributing guidelines 2020-04-30 18:25:23 +02:00
Wuzzy ef20ac54c3 Fix crash when fueling furnace minecart 2020-04-30 18:13:05 +02:00
Wuzzy eea07f0ce7 Fix incomplete dry grass replacement LBM 2020-04-27 14:05:09 +02:00
Wuzzy c81a18ac1a Refactor mcl_void_damage 2020-04-22 01:38:41 +02:00
Wuzzy 0929ce4f20 Remove fire below air 2020-04-22 01:31:30 +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 64c767ad8c Make TNT behave like Minecraft
TNT entities are now knocked back by explosions.  When a TNT block
becomes triggered by an explosion, its fuse time is set to a random
value between 0.5 and 1.5 seconds.
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 cdea2eeabf Change mcl_mobs to enable knockback in y direction 2020-04-19 13:08:36 +02:00
Elias Åström 92ab90fd1b Add knockback for mobs 2020-04-19 13:08:36 +02:00
Elias Åström 6315490b14 Update the rest of the blast resistance values
The values have been updated according to this list:

https://minecraft.gamepedia.com/Module:Blast_resistance_values
2020-04-19 13:08:36 +02:00
Elias Åström 8d67824e42 Add to list of contributors in README.md 2020-04-19 13:08:36 +02:00
Elias Åström fd05259202 Make TNT and TNT Minecart use the explosions API
The old api from mcl_tnt is still left in the code, and used by the
mobs.
2020-04-19 13:08:36 +02:00
Elias Åström ca7c8c23c7 Add entity damage and player knockback
Could not find a way to add knockback to entities.  After adding a
velocity to them they will just slide around indefinitely.  Because of
this, knockback is only enabled on players for now.
2020-04-19 13:08:36 +02:00
Elias Åström 77c95fe8c3 Add particles and sounds from explosions 2020-04-19 13:08:36 +02:00
Wuzzy e268370452 Add fire metadata to many nodes (unused for now) 2020-04-18 23:24:42 +02:00
Wuzzy 6a77a54034 Increase z_index values to match new convention 2020-04-17 21:27:45 +02:00
Elias Åström 1d5c11f683 Add mcl_explosions for ray traced explosions
Code has been adapted from the Minetest explosions API mod to have
Minecraft-like explosion mechanics and work with MineClone 2.
2020-04-17 20:47:12 +02:00
Elias Åström 063595ac3c Change blast resistance of nodes in mcl_core
The new blast resistance values are copied from the Minecraft wiki.

https://minecraft.gamepedia.com/Explosion
2020-04-17 20:47:12 +02:00
Wuzzy 3803dba233 Fix invalid portal node names in spawn code 2020-04-16 12:39:18 +02:00
Wuzzy 24ab3e8f84 Fix LBM typos 2020-04-16 12:22:50 +02:00
Wuzzy 7c56cf1a64 Update README.md 2020-04-15 16:13:27 +02:00
Wuzzy 1db34821a0 Mobs: Fix crash when mob dies to fall or light dmg 2020-04-12 23:11:18 +02:00
Wuzzy 081366855d Tweak appearance of snowflakes 2020-04-11 04:06:37 +02:00
Wuzzy ab56d592ae Add snow particles on snowball impact 2020-04-11 04:06:24 +02:00
Wuzzy a2785041dd Remove mod startup debug messages 2020-04-11 02:56:46 +02:00