Commit Graph

12662 Commits

Author SHA1 Message Date
teknomunk 8767821716 Fix typo 2024-10-10 12:48:27 +02:00
teknomunk ed60bbdee1 Register rail conversions 2024-10-10 12:48:27 +02:00
teknomunk 4ff7445fc1 Implement vl_legacy deprecated function and item conversion APIs 2024-10-10 12:48:27 +02:00
teknomunk 6936a86754 Fix crashes 2024-10-10 12:48:27 +02:00
teknomunk 741f8ece32 Make old rails have a drawtype, make update lbm always run 2024-10-10 12:48:27 +02:00
teknomunk 9bb9dc8f3d Move the various rails to their own files, code cleanup 2024-10-10 12:48:27 +02:00
teknomunk b63fd08702 Remove undefined global for optional environmental physics 2024-10-10 12:48:27 +02:00
teknomunk fc2cd47fd7 Remove Emerge-0 warning that occurs when placing mineshafts 2024-10-10 12:48:27 +02:00
teknomunk f3b988163b Restore 45 degree cart movement, remove warning about unknown global 2024-10-10 12:48:27 +02:00
teknomunk 83cf20b5ac Complete rework of curve/tee rail direction functions 2024-10-10 12:48:27 +02:00
teknomunk fd9cbaf813 Rework rail_dir_curve to significantly reduce code size 2024-10-10 12:48:27 +02:00
teknomunk 6a0ee72080 Convert curved rails direction code to use fourdir 2024-10-10 12:48:27 +02:00
teknomunk 266268db2a Change verticle offset for testing reattaching to rail to 0.55, which is a bit more than the stair step height 2024-10-10 12:48:27 +02:00
teknomunk 88333b152f Fix cart detaching without unregistering from everything 2024-10-10 12:48:27 +02:00
teknomunk bbef011de1 Fix typo, set use_texture_alpha = clip for all rail 2024-10-10 12:48:27 +02:00
teknomunk 34a0b06acb Fix several undefined global warnings, fix cart movement when over maximum speed, fix cart reattachment to sloped track 2024-10-10 12:48:27 +02:00
teknomunk 4908fe23a6 Revert changed made to debug minecart-updates integration into tsm_railcorridors 2024-10-10 12:48:27 +02:00
teknomunk 3ab0bc0ac4 Make punch move minecarts a little, comment out more debug prints 2024-10-10 12:48:27 +02:00
teknomunk ccd555a5a0 Fix visual artifacts on the sides of rails 2024-10-10 12:48:27 +02:00
teknomunk a0d29b6405 Stop carts from reversing when they stop, make stopped carts try to start moving in the direction the player is facing 2024-10-10 12:48:27 +02:00
teknomunk 141c9b8635 Fix crash after entering a minecart not on rails 2024-10-10 12:48:27 +02:00
teknomunk da231f917e Fix placed rail conversion, start automatic inventory rail conversion 2024-10-10 12:48:27 +02:00
teknomunk 29efd9c539 Fix players repelling carts with new player metadata system 2024-10-10 12:48:27 +02:00
teknomunk b9755e976d Cleanup debug prints 2024-10-10 12:48:27 +02:00
teknomunk 58448de614 Add documentation for newly exposed attach_driver 2024-10-10 12:48:27 +02:00
teknomunk 7c6c050ff2 Add persistent player-specific metadata into mcl_playerinfo, simple cart reattachment (only exists if the luaentity for the cart exists when the player logs in) 2024-10-10 12:48:27 +02:00
teknomunk 21d74965d7 More fixes for minecart-hopper movement 2024-10-10 12:48:27 +02:00
teknomunk 7f99b0890b Get rail placement creating corners that lead into a downward sloped rail 2024-10-10 12:48:27 +02:00
teknomunk 6cb7f5e839 Create mcl_util.metadata_timer, fix crashes, add checks to prevent hoppers from pulling from carts that are not in the square above it 2024-10-10 12:48:27 +02:00
teknomunk cb4c8db97e Fix hopper-minecart interaction, convert ipairs(table) to use for i=1,#table instead 2024-10-10 12:48:27 +02:00
teknomunk 45068cf8a9 Update mineshafts for new rail and minecarts, add loot to generated chest and hopper minecarts (and remove notes about a hack) 2024-10-10 12:48:27 +02:00
teknomunk a9c47bca72 Give carts a small vertical lift when pushed to allow them to get back on rails 2024-10-10 12:48:27 +02:00
teknomunk f0e20b88eb Stop rail from being placed directly above rail (floating in air) 2024-10-10 12:48:27 +02:00
teknomunk a2b371e9a3 Fix sloped power,activator and detector rails, remove debug print 2024-10-10 12:48:27 +02:00
teknomunk 3c8a8249ad Modify mcl_entity_invs to add support for save/load items hooks in entities, add save/load hooks to minecarts to store item list in the minecart data and not in the entity data so that respawn doesn't destroy items 2024-10-10 12:48:27 +02:00
teknomunk 2c4e960625 Add documentation on the rail 2024-10-10 12:48:27 +02:00
teknomunk 25ebfe7a8b Add documentation on file structure and overviewes of each file 2024-10-10 12:48:27 +02:00
teknomunk 6fdeddeba1 Fix crashes, fix link in documentation 2024-10-10 12:48:27 +02:00
teknomunk e969f97de6 More documentation, add myself to copyright list in README.txt 2024-10-10 12:48:27 +02:00
teknomunk 619db26d65 More minor changes to API.md, start overall implementation documentation 2024-10-10 12:48:27 +02:00
teknomunk 2d2c2e212d Fix table of contents 2024-10-10 12:48:27 +02:00
teknomunk a3275f46f6 Finish writing API documentation, remove drop_railcarts (replaced by try_detach_minecart), rename constants to ALL CAPS for consistency, change mcl_minecarts. to mod. for API function definitions 2024-10-10 12:48:27 +02:00
teknomunk 1c06aff46a Nearly finish API documentation, create mcl_minecarts.add_blocks_to_map() 2024-10-10 12:48:27 +02:00
teknomunk 9888b674c0 Continue writing API documentation, update call signatures for a couple of API functions 2024-10-10 12:48:27 +02:00
teknomunk 937b32be1b Change document formatting, finally move cactus cart dropping to node definition for mcl_core:cactus 2024-10-10 12:48:27 +02:00
teknomunk 0c2e876d8b Correct crashes/item duplication with dropping carts, start API documentation 2024-10-10 12:48:27 +02:00
teknomunk dd374e7331 Fix cart controls, cart pushing 2024-10-10 12:48:27 +02:00
teknomunk 8101299ed8 Fix typo in rail replacement mapping, fix several crashes 2024-10-10 12:48:27 +02:00
teknomunk 568529e4b4 Implement movement thru tee rails 2024-10-10 12:48:27 +02:00
teknomunk 841f4deb77 Tune respawn distance limit 2024-10-10 12:48:27 +02:00