Commit Graph

12677 Commits

Author SHA1 Message Date
teknomunk 0c052e79b3 Update API documentation to always use , add compatibility shim to mcl_minecarts.is_rail() and mcl_minecarts.ge_rail_direction() 2024-10-27 16:00:44 +01:00
teknomunk e5b22731d6 Rewrite mcl_util.hopper_pull in terms of mcl_util.hopper_pull_to_inventory 2024-10-27 16:00:44 +01:00
teknomunk d69e090d76 Correct documentation per review 2024-10-27 16:00:44 +01:00
teknomunk 6958c08a7f Switch over to using vl_legacy for item conversion in player inventories 2024-10-27 16:00:44 +01:00
teknomunk a69b856863 Fix typo 2024-10-27 16:00:44 +01:00
teknomunk 28fe6f9980 Register rail conversions 2024-10-27 16:00:44 +01:00
teknomunk d82000f758 Implement vl_legacy deprecated function and item conversion APIs 2024-10-27 16:00:44 +01:00
teknomunk 13d87ecdd0 Fix crashes 2024-10-27 16:00:44 +01:00
teknomunk 442960706f Make old rails have a drawtype, make update lbm always run 2024-10-27 16:00:44 +01:00
teknomunk f2e4e9cf1d Move the various rails to their own files, code cleanup 2024-10-27 16:00:44 +01:00
teknomunk 5380229463 Remove undefined global for optional environmental physics 2024-10-27 16:00:44 +01:00
teknomunk b1ca290db1 Remove Emerge-0 warning that occurs when placing mineshafts 2024-10-27 16:00:44 +01:00
teknomunk 05c7dc9b35 Restore 45 degree cart movement, remove warning about unknown global 2024-10-27 16:00:44 +01:00
teknomunk 6949475345 Complete rework of curve/tee rail direction functions 2024-10-27 16:00:44 +01:00
teknomunk 774be40f17 Rework rail_dir_curve to significantly reduce code size 2024-10-27 16:00:44 +01:00
teknomunk 88adb3dc4c Convert curved rails direction code to use fourdir 2024-10-27 16:00:44 +01:00
teknomunk 72e8481d2d Change verticle offset for testing reattaching to rail to 0.55, which is a bit more than the stair step height 2024-10-27 16:00:44 +01:00
teknomunk 373263ca16 Fix cart detaching without unregistering from everything 2024-10-27 16:00:44 +01:00
teknomunk 2aee5b1984 Fix typo, set use_texture_alpha = clip for all rail 2024-10-27 16:00:44 +01:00
teknomunk f822099580 Fix several undefined global warnings, fix cart movement when over maximum speed, fix cart reattachment to sloped track 2024-10-27 16:00:44 +01:00
teknomunk 6bf89a1703 Revert changed made to debug minecart-updates integration into tsm_railcorridors 2024-10-27 16:00:44 +01:00
teknomunk f08928e9ce Make punch move minecarts a little, comment out more debug prints 2024-10-27 16:00:44 +01:00
teknomunk 4f938d0e99 Fix visual artifacts on the sides of rails 2024-10-27 16:00:44 +01:00
teknomunk 72466140e1 Stop carts from reversing when they stop, make stopped carts try to start moving in the direction the player is facing 2024-10-27 16:00:44 +01:00
teknomunk 69cff8ffaa Fix crash after entering a minecart not on rails 2024-10-27 16:00:44 +01:00
teknomunk 559c879af3 Fix placed rail conversion, start automatic inventory rail conversion 2024-10-27 16:00:44 +01:00
teknomunk 2e2b0225c6 Fix players repelling carts with new player metadata system 2024-10-27 16:00:44 +01:00
teknomunk bb30dffeb9 Cleanup debug prints 2024-10-27 16:00:44 +01:00
teknomunk 0b16bdcf68 Add documentation for newly exposed attach_driver 2024-10-27 16:00:44 +01:00
teknomunk 622a6ed944 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-27 16:00:44 +01:00
teknomunk 334304c04f More fixes for minecart-hopper movement 2024-10-27 16:00:44 +01:00
teknomunk 8f9c8bd4ca Get rail placement creating corners that lead into a downward sloped rail 2024-10-27 16:00:44 +01:00
teknomunk b56fc48253 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-27 16:00:44 +01:00
teknomunk 1b1265ec2d Fix hopper-minecart interaction, convert ipairs(table) to use for i=1,#table instead 2024-10-27 16:00:44 +01:00
teknomunk bd72e7d67f Update mineshafts for new rail and minecarts, add loot to generated chest and hopper minecarts (and remove notes about a hack) 2024-10-27 16:00:44 +01:00
teknomunk d28a01d1e3 Give carts a small vertical lift when pushed to allow them to get back on rails 2024-10-27 16:00:44 +01:00
teknomunk 4a023cfb03 Stop rail from being placed directly above rail (floating in air) 2024-10-27 16:00:44 +01:00
teknomunk e2fc20d0fc Fix sloped power,activator and detector rails, remove debug print 2024-10-27 16:00:44 +01:00
teknomunk b30b76e539 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-27 16:00:44 +01:00
teknomunk cf986a0032 Add documentation on the rail 2024-10-27 16:00:44 +01:00
teknomunk fbb3da2fd0 Add documentation on file structure and overviewes of each file 2024-10-27 16:00:44 +01:00
teknomunk 4c5050162a Fix crashes, fix link in documentation 2024-10-27 16:00:44 +01:00
teknomunk b677b4d4e2 More documentation, add myself to copyright list in README.txt 2024-10-27 16:00:44 +01:00
teknomunk 14d55742ac More minor changes to API.md, start overall implementation documentation 2024-10-27 16:00:44 +01:00
teknomunk 233a907528 Fix table of contents 2024-10-27 16:00:44 +01:00
teknomunk fa6fdf52f8 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-27 16:00:44 +01:00
teknomunk 6c70df163a Nearly finish API documentation, create mcl_minecarts.add_blocks_to_map() 2024-10-27 16:00:44 +01:00
teknomunk b062ebb2ee Continue writing API documentation, update call signatures for a couple of API functions 2024-10-27 16:00:44 +01:00
teknomunk 9bd37e2ef1 Change document formatting, finally move cactus cart dropping to node definition for mcl_core:cactus 2024-10-27 16:00:44 +01:00
teknomunk 18dc75b207 Correct crashes/item duplication with dropping carts, start API documentation 2024-10-27 16:00:44 +01:00