Commit Graph

228 Commits

Author SHA1 Message Date
teknomunk
8c6b011c91 Change connected railcar behavior to fix unreliable end of track stopping, set maximum acceleration of powered rails to 8 blocks per second (per https://minecraft.fandom.com/wiki/Powered_Rail), stop powered rails from powering the block underneath it (allows below rail hopper to work while the rail is powered like in https://www.youtube.com/watch?v=szjO0-duTAk), modify mcl_hoppers to allow triggering a hopper pull once the minecart is stopped on top of the hopper and wait before allowing the cart to move to allow redstone circuits time to process 2024-06-15 14:08:29 +02:00
teknomunk
f2c6f069d0 Make minecart always stop at correct location at end of track, fix crash when placing chest minecart after changing how staticdata is handled 2024-06-15 14:08:29 +02:00
teknomunk
15000be8ec Modify do_movement_step to move to always move to the edge of the current rail segment before updating the direction to prevent oscillations at corners, fix end of track stop location with new movement behavior, disable experimental controls, swap code to detach the driver on float with a call to detach_driver() 2024-06-15 14:08:29 +02:00
teknomunk
f3fac3586f Add DEBUG flag, stop small do_movement_step's from occuring (this improves but doesn't eliminate the bug I with the a6be179ed commit), add recovery when staticdata field gets lost 2024-06-15 14:08:29 +02:00
teknomunk
9be0d27dd8 Fix initial_properties for minecarts 2024-06-15 14:08:29 +02:00
teknomunk
bee32418c4 Change left,right and back vectors to matrix math results with no branching 2024-06-15 14:08:29 +02:00
teknomunk
5d14d43ec4 Remove now unused properties from minecart definition, convert more vectors to use vector.new syntax 2024-06-15 14:08:29 +02:00
teknomunk
8a91f04cf0 Complete rewrite of minecart movement that resolves https://git.minetest.land/MineClone2/MineClone2/issues/2446 and https://git.minetest.land/MineClone2/MineClone2/issues/247#issuecomment-50960 but has a bug where carts will synchronize movements that I am still investigating 2024-06-15 14:08:29 +02:00
teknomunk
2a9aaa02af Change staticdata serialization (with migration from old data), disable debugging code used to investigate https://git.minetest.land/MineClone2/MineClone2/issues/2446 2024-06-15 14:08:29 +02:00
teknomunk
44514e0fad Change to vector.new from {x=...}, relocate movement code to own function for future changes 2024-06-15 14:08:29 +02:00
nixnoxus
08b41a3b39 accelerate non-moving carts on mcl_minecarts:golden_rail_on (#4097)
accelerate a non-moving minecart away from a solid opaque block the powered rail is facing

Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/4097
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: nixnoxus <nixnoxus@web.de>
Co-committed-by: nixnoxus <nixnoxus@web.de>
2024-03-24 05:29:44 +00:00
PrWalterB
899c45534f Adding occitan translation for CORE and ENTITIES 2024-01-20 04:28:46 +01:00
JoseDouglas26
df02770470 mcl_minecarts pt_BR translation 2023-12-22 23:45:07 +01:00
Sab Pyrope
5b4a79a26d Update russian translation 2023-08-31 14:16:42 +08:00
ancientmarinerdev
fe501e8021 Change bug fix so that loop carries on processing other items if first one is the issue. 2023-06-28 20:19:49 +00:00
ancientmarinerdev
b05fa5562c Fix crash in hopper minecarts through missing ent 2023-06-28 20:19:49 +00:00
Kristian
cc21b74125 Three fully translated 2023-06-27 21:09:03 +00:00
ancientmarinerdev
be8d9122ee Fix crash when creeper explodes in minecart 2023-05-07 21:11:48 +01:00
ancientmarinerdev
59f4a62fd6 Move hopper minecarts off item entity. Do not run every on_step. Use more accurate object search location. Cut down object search distance. 2023-03-31 13:40:36 -05:00
ancientmarinerdev
ecf72db684 Fix ooops 2023-03-20 13:37:26 +00:00
ancientmarinerdev
bcd7f38fa7 Use new style vectors 2023-03-20 13:37:25 +00:00
ancientmarinerdev
3eab946889 Make death check less frequent. Load passenger in minecart at shutdown. 2023-03-20 13:37:25 +00:00
anarquimico
f817fe7f72 Fix performance issues and better check for mobs death 2023-03-20 13:37:25 +00:00
anarquimico
d5f01e88c4 Make mobs ride minecarts 2023-03-20 13:37:25 +00:00
syl
96b2f6a01d Improve French translation 2023-03-10 22:48:46 +01:00
SmokeyDope
71671f8b5f Make minecart rails unable to be broken with lava 2023-02-09 01:53:52 +00:00
SmokeyDope
c4d60e50cc Make minecart rails unable to be broken with water 2023-02-09 01:53:52 +00:00
Michieal
6265148727 Move textures all into one centralized directory. 2023-01-30 22:55:53 -05:00
Riu Sakura
2b61231f82 add japanese translation 2022-12-19 15:33:31 +09:00
ancientmarinerdev
e6d778b214 Remove WIP flag for hopper minecart 2022-11-14 04:07:41 +01:00
ancientmarinerdev
ce457eb351 Who doesn't love hopper minecarts? 2022-11-14 04:07:41 +01:00
cora
224bbff56b Open minecart inv with regular rightclick 2022-10-15 00:40:03 +02:00
cora
d9f820cb67 Enable chest minecarts 2022-09-23 05:43:31 +02:00
PrairieWind
7451e4734f Enabled furnace minecart crafting and creative entry. 2022-09-18 13:32:45 -06:00
3raven
57d0b29bf5 Add translation 2022-08-23 03:13:32 +00:00
cora
9cea10a706 fix more blast resistance and hardness values 2022-06-13 02:48:00 +02:00
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
2d1a43396f Merge pull request 'Title HUD API' (#1778) from title-API into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/1778
2021-08-20 12:31:54 +00:00
AFCMS
fe62189019 Update French translation (part 1) 2021-08-13 11:35:18 +02: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
marcin-serwin
cbe8583cef Merge branch 'master' into polish-translation 2021-06-02 10:14:25 +00: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
fddaacdeae [mcl_item_entity] fix warnings 2021-05-25 00:43:42 +02:00
AFCMS
8286fd2a4d [mcl_minecarts] fix warnings 2021-05-25 00:43:08 +02:00
Elias Fleckenstein
f6d34db76e Update german Minecart translation 2021-04-26 10:36:22 +02:00
Marcin Serwin
9472f86025 Fix spellchecking errors 2021-04-12 17:58:04 +02:00
Marcin Serwin
1fd869b5fb Add polish translation of mcl_minecarts 2021-04-12 08:55:42 +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
Elias Fleckenstein
d57db0444f Use mod.conf in all mods, part 1 2021-03-04 15:22:14 +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, https://git.minetest.land/MineClone2/MineClone2/issues/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
kay27
ba51686e6c Russian translation 2020-07-20 00:11:13 +00: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
1a0e979b0c Update incomplete license information and credits 2020-05-11 17:18:04 +02:00
Wuzzy
c156398fb5 Merge branch 'translate-fr' of https://git.minetest.land/lrocher/MineClone2 into translate_fr 2020-05-09 18:57:40 +02:00
Rocher Laurent
4957bd1118 Translate In French 2020-05-03 22:39:07 +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
wuniversales
3772dd51cc Update Spanish translation 2020-03-15 08:32:00 +01:00
Wuzzy
03a5519d01 Partial German translation of tooltip extensions 2020-03-11 01:44:23 +01: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
wuniversales
15481cb24d Add Spanish translation 2020-02-04 21:43:50 +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
1ed1bdfadb Use minetest.raillike_group for rails 2019-04-11 17:03:41 +02:00
Wuzzy
c5db9987c3 Fix various typos in German translation 2019-03-25 11:01:52 +01:00
Wuzzy
7c9126ace5 German translation: entities 2019-03-14 00:25:41 +01:00
Wuzzy
5aeb4aea74 Add translation templates for most mods
Using the findtext.lua script
2019-03-13 23:40:59 +01: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
a285827980 Change powered rail texture names to fix MTG clash 2019-02-04 12:38:36 +01:00
Wuzzy
e789801662 Replace getpos() with get_pos() 2019-02-01 06:33:07 +01:00
Wuzzy
d34c48cb59 Insta-drop minecart when its rail is destroyed 2019-01-30 03:37:47 +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
cc32c54d87 Draw full set of activator rail textures 2018-01-25 05:18:35 +01:00
Wuzzy
b62075afcb Fix rail rules (kinda) 2018-01-22 17:33:06 +01:00
Wuzzy
c9ef3f8536 Use default redstone rules for rails again 2018-01-17 21:01:26 +01:00
Wuzzy
f612d1b584 Rework core rules of most redstone components 2018-01-13 03:37:41 +01:00
Wuzzy
3980beff1d Fix incorrect node drops of powered rails 2018-01-13 01:39:18 +01:00
Wuzzy
44f4db844e Define get_staticdata of minecart 2017-09-05 15:28:04 +02:00
Wuzzy
77ab3ed9d6 Add more detector rail textures 2017-09-02 17:18:48 +02:00
Wuzzy
505cdb9d43 Hide minecart with command block from Creative 2017-08-30 21:51:27 +02:00
Wuzzy
3a18f4044d Support all minecart types in dispenser 2017-08-29 02:36:50 +02:00
Wuzzy
1fd897c721 Implement basic detector rail logic 2017-08-29 01:29:18 +02:00
Wuzzy
b85df95bb2 Add dummy nodes: Activator rail, detector rail 2017-08-29 00:13:18 +02:00
Wuzzy
abb2db9948 Refactor rails code 2017-08-28 23:41:48 +02:00
Wuzzy
f491fbf594 Fix minecarts dependency 2017-08-28 23:14:46 +02:00
Wuzzy
c9856dbcdf Make powered rails act like conductors 2017-08-28 17:06:25 +02:00
Wuzzy
36319afbbe Basic powered rails implementation 2017-08-28 16:59:10 +02:00
Wuzzy
213edbe85c Refactor minecart registration code
Also add doc_identifier support
2017-08-28 15:04:50 +02:00
Wuzzy
1335207e8b Allow to mount only in normal minecarts 2017-08-28 14:35:56 +02:00
Wuzzy
f2ed6f126e Add 5 “Minecart with X” entities
* Minecart with Chest
* Minecart with Furnace
* Minecart with TNT
* Minecart with Hopper
* Minecart with Command Block
2017-08-28 14:19:46 +02:00
Wuzzy
9bae398946 Update cart direction after punch 2017-08-15 14:02:21 +02:00
Wuzzy
73ae5eb940 Rotate carts depending on rail direction 2017-08-15 13:53:05 +02:00
Wuzzy
c131fdfd70 Use minecart model by 22i 2017-08-15 13:20:11 +02:00
Wuzzy
24336d43c4 Support creative mode for minecarts 2017-08-15 02:51:40 +02:00
Wuzzy
e90b80ab26 Move 3 mods to ENTITIES 2017-07-27 04:07:38 +02:00