Commit Graph

61 Commits

Author SHA1 Message Date
kabou 818cbb2f48 Add check for unknown nodes.
* Check if node has a definition table before attempting to evaluate its
  attributes.
* Define local variable to cache multiple accesses to `registered_nodes[]`
  and improve readability.
2022-03-09 12:11:59 +01:00
NO11 c52fda154b Break minecart if it's near a cactus (Fix #924) 2021-11-02 22:58:03 +01:00
AFCMS c31c852a6e add documentation 2021-07-20 16:14:34 +02:00
AFCMS b5f7ae5458 working implementation + support of other mods 2021-07-20 15:47:26 +02:00
AFCMS cd33d406b2 fix many codestyle issues (functions, strings, modpaths) 2021-05-29 16:12:33 +02:00
AFCMS 9e074af07f unify code style [1] 2021-05-25 12:52:25 +02:00
AFCMS 8286fd2a4d [mcl_minecarts] fix warnings 2021-05-25 00:43:08 +02:00
AFCMS 59c13b6df8 Revert "Revert "remove hard depend to mcl_wip in mcl_minecarts""
This reverts commit 857a0c5565.
2021-03-30 00:58:45 +02:00
AFCMS 857a0c5565 Revert "remove hard depend to mcl_wip in mcl_minecarts"
This reverts commit 369c8b9b8a.
2021-03-30 00:58:36 +02:00
AFCMS 41a8cd0e15 Revert "Revert "remove hard depend to mcl_wip in mcl_minecarts""
This reverts commit 7a5c2d617b.
2021-03-30 00:58:02 +02:00
AFCMS 7a5c2d617b Revert "remove hard depend to mcl_wip in mcl_minecarts"
This reverts commit 369c8b9b8a.
2021-03-30 00:57:46 +02:00
AFCMS 369c8b9b8a remove hard depend to mcl_wip in mcl_minecarts 2021-03-30 00:54:58 +02:00
AFCMS 7ec7012572 fix indentation 2021-03-30 00:50:58 +02:00
Elias Åström 69e38debe5 Revert "Slightly tweak minecarts to be more MC-like"
This reverts commit 8af76f835d.
2021-03-13 12:30:33 +01:00
AFCMS 3635b848d5 add API for mcl_wip 2021-03-07 00:42:34 +01:00
kay27 8af76f835d Slightly tweak minecarts to be more MC-like 2021-03-01 01:43:00 +04:00
kay27 44d3f25767 Leave minecart by Pressing Sneak, MineClone2/MineClone2#567 2021-02-26 00:26:27 +04:00
Wuzzy 6b30553707 Merge branch 'cart-acceleration' of https://git.minetest.land/2mac/MineClone2 into master 2020-10-23 22:12:40 +02:00
Wuzzy c106a62979 Use minetest.is_creative_enabled 2020-07-10 16:45:40 +02:00
Wuzzy 7cfef25dfe Fix undeclared global in mcl_minecarts 2020-05-16 20:13:22 +02:00
Wuzzy 3087621b11 Merge branch 'mcl_explosions' 2020-04-30 20:55:10 +02:00
Wuzzy ef20ac54c3 Fix crash when fueling furnace minecart 2020-04-30 18:13:05 +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
Wuzzy c5e4ec5e27 Use ephemeral sounds 2020-04-07 00:55:45 +02:00
David McMackins II 59b6385d10 Fix bug where powered rails would not accelerate a fueled minecart 2020-03-17 15:00:12 -05:00
Wuzzy ba74546d48 Add extended tooltips 2020-02-19 04:54:17 +01:00
Wuzzy e6133ac670 Fix TNT minecart igniting 2020-02-14 21:09:36 +01:00
Wuzzy 2ef5f0232d Update minecart German translation 2020-02-05 03:11:07 +01:00
Wuzzy 04c8a08cc4 Ignite tnt minecart by fire charge 2020-01-30 23:11:16 +01:00
Wuzzy 9f344b4307 Detach minecart driver if over activator rail 2020-01-30 22:45:29 +01:00
Wuzzy 1d2da1f01a TNT minecart and activator rail no longer WIP 2020-01-30 22:31:44 +01:00
Wuzzy 9dc9c12f29 Implement TNT minecart 2020-01-30 22:05:18 +01:00
Wuzzy 74b79d130b Add basic implementation of furnace minecart 2020-01-30 20:38:31 +01:00
Rootyjr b1f201f538 Fix #530 (Players were stuck in sitting animation after being out of minecart). 2019-07-29 00:13:16 -05:00
Wuzzy 1217d9fa88 New translation system, part 1: entities 2019-03-07 20:43:39 +01:00
Wuzzy a9776814a6 Fix player attachment offsets 2019-03-06 05:11:49 +01:00
Wuzzy 2f74aea6f5 Replace deprecated functions 2019-03-06 04:38:57 +01:00
Wuzzy d59d789c80 Put boat/minecart in inv when punched in creative 2019-02-06 21:56:52 +01:00
Wuzzy e789801662 Replace getpos() with get_pos() 2019-02-01 06:33:07 +01:00
Wuzzy 6748576f8e Increase minecart floating check timer 2019-01-30 03:37:23 +01:00
Wuzzy 1966d18586 Drop minecart as item if its not on a rail anymore 2019-01-30 03:16:59 +01:00
Wuzzy e42945a4e1 Minecarts: Reset eye offset when detaching player 2019-01-30 02:41:24 +01:00
Wuzzy 5a1cafa5dd Minecarts: Save _railtype in staticdata 2019-01-30 02:04:12 +01:00
Wuzzy b9c197565a Minecarts: Init _railtype on placement 2019-01-30 01:58:26 +01:00
MysticTempest 67ebf3366f Make player sit in minecarts 2018-07-09 23:45:54 +02:00
Wuzzy 83829ec358 Hide a couple of very incomplete items in Creative 2018-05-08 01:40:31 +02:00
Wuzzy e649f37bc8 Add comment in minecart code 2018-02-02 01:21:19 +01:00
Wuzzy fa10dc93ae Add _on_dispense callback for dispenser; refactor 2018-02-01 22:49:41 +01:00
Wuzzy 44f4db844e Define get_staticdata of minecart 2017-09-05 15:28:04 +02:00
Wuzzy 505cdb9d43 Hide minecart with command block from Creative 2017-08-30 21:51:27 +02:00