Commit Graph

11996 Commits

Author SHA1 Message Date
teknomunk ffc367ed15 This causes Minetest verion 5.8.0 to segfault while connecting 2024-03-28 16:37:24 +00:00
teknomunk d7790edc60 Implement initial rail connection logic (no vertical track yet), experiment with texture modifiers and gravel underlay for display (not working) 2024-03-28 15:06:26 +00:00
teknomunk 1b27471587 Start implementing new rail nodes 2024-03-28 07:11:59 +00:00
teknomunk e149f498df Implement minecart with command block 2024-03-28 06:18:50 +00:00
teknomunk d5d43054ba Create mesecons command API and modify commandblock to use it 2024-03-28 05:49:46 +00:00
teknomunk c97a18a4f4 Disable punch to move minecarts, implement punch to drop minecart, enable basic cart keyboard controls (accelerate and brake) 2024-03-23 09:59:08 +00:00
teknomunk b6369588af Remove cart oscillation when pushed 2024-03-23 09:08:17 +00:00
teknomunk b3f09a030f Limit top speed of furnace minecarts to 4 blocks/second, limit total fuel time to 27 minutes 2024-03-23 08:09:37 +00:00
teknomunk 913d46b5d3 Fix bug with furnace minecart at max velocity (stopped until fuel ran out), move _fueltime into staticdata 2024-03-23 07:32:32 +00:00
teknomunk 1c81a8b615 Fix call signature of mcl_util.hopper_pull_to_inventory, move cart-specific behaviors to _mcl_minecarts_on_step handlers, fix typo, change distance used in rail reattach code, move cart_id generation 2024-03-23 07:09:20 +00:00
teknomunk b604cee9ff Add groups to minecart entities (for containers), fix cart node watch handling, relocate hopper_push_to_mc in mcl_hopper/init.lua, implement hopper-to-minecart push using enter/leave hooks for both straight and bent hoppers 2024-03-23 06:13:53 +00:00
teknomunk 7546637a82 Add API function to remove node watch 2024-03-20 20:16:44 +00:00
teknomunk 358d305549 Refactor enter/leave hook processing, add node watches for implementing hopper-to-minecart functionality (should properly handle heavy server lag without missing any time), temporarily disable hopper push/pull to minecart in mcl_hoppers, prepare to move minecart-specific on_step behavior out of main on_step function and to a minecart-specific handler 2024-03-20 20:16:44 +00:00
teknomunk 8a498a7f88 Start adding hooks for implpementing minecart with command block 2024-03-20 20:16:44 +00:00
teknomunk ce92f9db74 Make minecarts solid and add players pushing 2024-03-20 20:16:44 +00:00
teknomunk 82843d9150 Fix forwards/backwars tilt in all directions 2024-03-20 20:16:44 +00:00
teknomunk 464332c58c Prevent players from entering minecarts when sneaking, prevents players from causing MineClone2/MineClone2#3188 2024-03-20 20:16:44 +00:00
teknomunk 9ac6b2694e Increase default track friction, disable right-click to exit minecarts 2024-03-20 20:16:44 +00:00
teknomunk 5608f7fe32 Initial tuning of acceleration/gravity, fix crash when entering an activator rail, detach mobs from cart on active activator rail, remove commented out code no longer needed 2024-03-20 20:16:44 +00:00
teknomunk 7b071e35fb Move code that handles below-rail hoppers to handle_cart_enter, implement timestep-independent cart physics (will need tuning punch, power rail and gravityaccelerations to make game fun) 2024-03-20 20:16:44 +00:00
teknomunk c017c71d93 Mostly fix carts stopping between powered rails (there is still some strangeness with acceleration physics) 2024-03-20 20:16:44 +00:00
teknomunk 9853b566ce Fix diagonal movement 2024-03-20 20:16:44 +00:00
teknomunk 0c18d743a6 Add diagonal track movement on zig-zag track, rewrite mcl_minecarts:get_rail_direction 2024-03-20 20:16:44 +00:00
teknomunk 3d3939b24c Make TNT minecarts available in creative menu 2024-03-20 20:16:44 +00:00
teknomunk e1b17f61d4 Implement custom item dropper handlers, implement droppers placing minecarts 2024-03-20 20:16:44 +00:00
teknomunk 2e3de195b2 Hopper minecarts pull from containers above rail 2024-03-20 20:16:44 +00:00
teknomunk 0b5e742a9f Rework in preparation to add code to pull from containers into the hopper minecart 2024-03-20 20:16:44 +00:00
teknomunk bc7cb5a0ae Move fiction constant to top of file, suppress cart flips when direction reverses due to gravity or end of track 2024-03-20 20:16:44 +00:00
teknomunk 7210b0ed32 Add code to reattach carts to rail when data corruption occurs, fix bug in last commit that caused carts to bury into the ground 2024-03-20 20:16:44 +00:00
teknomunk 4b69b255e0 Remove dip into the ground that occured when gravity caused the cart to reverse directions 2024-03-20 20:16:44 +00:00
teknomunk d3f0e14cf4 Implement gravity, move orientation update to own function, fix cart stopping in process_acceleration 2024-03-20 20:16:44 +00:00
teknomunk 51804271b1 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-03-20 20:16:44 +00:00
teknomunk 3930a0d5c9 Make minecart always stop at correct location at end of track, fix crash when placing chest minecart after changing how staticdata is handled 2024-03-20 20:16:44 +00:00
teknomunk 0cd9521b07 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-03-20 20:16:44 +00:00
teknomunk a55357ceb6 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-03-20 20:16:44 +00:00
teknomunk 6b4ed56ed6 Fix initial_properties for minecarts 2024-03-20 20:16:44 +00:00
teknomunk 30e5895cb1 Change left,right and back vectors to matrix math results with no branching 2024-03-20 20:16:44 +00:00
teknomunk 3c7fe5d505 Remove now unused properties from minecart definition, convert more vectors to use vector.new syntax 2024-03-20 20:16:44 +00:00
teknomunk 265f2be174 Complete rewrite of minecart movement that resolves MineClone2/MineClone2#2446 and MineClone2/MineClone2#247 (comment) but has a bug where carts will synchronize movements that I am still investigating 2024-03-20 20:16:44 +00:00
teknomunk 3908ce8e8e Change staticdata serialization (with migration from old data), disable debugging code used to investigate MineClone2/MineClone2#2446 2024-03-20 20:16:44 +00:00
teknomunk 6dac8f5535 Change to vector.new from {x=...}, relocate movement code to own function for future changes 2024-03-20 20:16:44 +00:00
𝕵𝖔𝖍𝖆𝖓𝖓𝖊𝖘 𝕱𝖗𝖎𝖙𝖟 e50ad7d6de Merge pull request 'Fix a crash with rocket explosion' (#4178) from fix_rocket_crash into master
Reviewed-on: MineClone2/MineClone2#4178
Reviewed-by: 𝕵𝖔𝖍𝖆𝖓𝖓𝖊𝖘 𝕱𝖗𝖎𝖙𝖟 <mrrar@noreply.git.minetest.land>
2024-03-21 00:15:50 +00:00
the-real-herowl 4b6d63739c Fix a crash with rocket explosion
Defensive check
2024-03-20 19:13:44 -05:00
syl 21dbc25f13 Improve french translation (#4194)
Made a few improvements in the french translation.
Revert a change (oeil->œil) which make harder to search items by typing theirs names. Because "œ" is not in the AZERTY keyboard.

Reviewed-on: MineClone2/MineClone2#4194
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: syl <syl@gresille.org>
Co-committed-by: syl <syl@gresille.org>
2024-03-07 20:04:02 +00:00
Eliy21 7bfbaac772 Fix damage animation and player invul crash in mcl_playerplus (#4176)
Reviewed-on: MineClone2/MineClone2#4176
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: Eliy21 <eliy21@noreply.git.minetest.land>
Co-committed-by: Eliy21 <eliy21@noreply.git.minetest.land>
2024-02-04 17:31:11 +00:00
the-real-herowl 87abd0f4dc Merge pull request 'Colored Leather Armor' (#4024) from AFCMS/MineClone2:colored-leather-2 into master
Reviewed-on: MineClone2/MineClone2#4024
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2024-02-02 03:25:08 +00:00
the-real-herowl 03b8ad15e3 Privs for colorizing command and comment cleanup 2024-02-02 04:07:41 +01:00
the-real-herowl fc6fe3f1ed Crafting colorized leather armor 2024-02-02 03:05:57 +00:00
the-real-herowl 3fa4cf6d52 Cauldron leather armor washing 2024-02-02 03:05:57 +00:00
the-real-herowl 3d799266c3 Finished leather armor colorizing 2024-02-02 03:05:57 +00:00