Commit Graph

12812 Commits

Author SHA1 Message Date
teknomunk b9942f3746 Address review comments 2024-11-11 02:18:07 +01:00
teknomunk 6726a748b6 Change cart punching to impulse on velocity instead of acceleration, make punch impulse larger 2024-11-11 02:18:07 +01:00
teknomunk d917de80a0 Fix syntax error from rebase, fix cart tilt, change cart speed to 4 blocks/second and make into a setting, make minecart settings compatibily with upcoming dynamic rules PR (#4662) 2024-11-11 02:18:07 +01:00
teknomunk e23db6eb1c Fix crash when train cars leave track 2024-11-11 02:18:07 +01:00
teknomunk a0ad18160b Flip powered special T-junction textures to match regular rails 2024-11-11 02:18:07 +01:00
teknomunk 918dd20589 Add in working curved variants of special rails 2024-11-11 02:18:07 +01:00
teknomunk 2dd328cd76 Make powered rails always accelerate moving carts 2024-11-11 02:18:07 +01:00
teknomunk defab2c604 Fix detector rail strangeness, prevent crash 2024-11-11 02:18:07 +01:00
teknomunk 386fbac099 Use correct vectors for look directions east/west 2024-11-11 02:18:07 +01:00
teknomunk 048cdfe981 Remove debug code 2024-11-11 02:18:07 +01:00
teknomunk 9e87b8876b Fix minecart entity rotation 2024-11-11 02:18:07 +01:00
teknomunk 38bc1d6a3c Fix crash 2024-11-11 02:18:07 +01:00
teknomunk 322017b060 Make straight rails with a free end bend towards newly placed rail and form corners 2024-11-11 02:18:07 +01:00
teknomunk e27b83fd50 Finish restricting 45 degree movement code to horizontal plane 2024-11-11 02:18:07 +01:00
teknomunk 81c4d93a15 Fix vertical movement that was hitting 45 degree curve code, reset pitch on minecarts 2024-11-11 02:18:07 +01:00
teknomunk 97df7617a1 Fix friction on slopes, fix cart reversal when timestep is very small or zero 2024-11-11 02:18:07 +01:00
teknomunk 09d1056a1b Allow functions for _rail_acceleration, make powered rail only accelerate carts when one side of the rail is a solid block or stairs 2024-11-11 02:18:07 +01:00
teknomunk 21ce4e877c Remove instance of debug logging, change movement.lua function export 2024-11-11 02:18:07 +01:00
teknomunk ae2ef2d978 Fix crash with minecart on activator rail 2024-11-11 02:18:07 +01:00
teknomunk 2c8824ccc7 Fix cart pitch when detached 2024-11-11 02:18:07 +01:00
teknomunk fb126f3f6e Add workaround to prevent random detached inventory doesn't exist warning when right-clicking entities with inventory 2024-11-11 02:18:07 +01:00
teknomunk f730ae02af Fix right-clicking nodes while holding rail 2024-11-11 02:18:07 +01:00
teknomunk 34ca1c578e Add back shift+punch to immediately drop minecart 2024-11-11 02:18:07 +01:00
teknomunk 8b46d1601d Fix another crash, fix rail tee on texture 2024-11-11 02:18:07 +01:00
teknomunk 844356f63e Calculate acceleration of trains based on average of acceleration for all carts in the train, make velocity not change on slopes and 45 degree track 2024-11-11 02:18:07 +01:00
teknomunk 53d6106870 Prevent trains from slowing on 45 degree track 2024-11-11 02:18:07 +01:00
teknomunk 7374b31a45 Add guard that prevents crash when itemstack is nil 2024-11-11 02:18:07 +01:00
teknomunk 1cbb16116e Silence debug prints and logging 2024-11-11 02:18:07 +01:00
teknomunk 24f287a9d0 Prevent removal of old minecarts 2024-11-11 02:18:07 +01:00
teknomunk c09e32ae27 Add legacy node conversion to vl_legacy and update rails.lua to use it 2024-11-11 02:18:07 +01:00
teknomunk 3cb53f26ef Make activated tnt minecarts glow in the dark, fix crash with lit tnt minecarts 2024-11-11 02:18:07 +01:00
teknomunk 6e15ebc1a2 Fix a couple of crashes (TNT minecart trying to update orientation after exploding, trying to punch/push a minecart not on track) 2024-11-11 02:18:07 +01:00
teknomunk f6594d9d00 Expand mcl_util.hopper_pull() to mcl_util.hopper_pull_to_inventory() 2024-11-11 02:18:07 +01:00
teknomunk 2cbca51972 Add profiling code to force_get_node() 2024-11-11 02:18:07 +01:00
teknomunk c78700f662 Address additional review comments 2024-11-11 02:18:07 +01:00
teknomunk cfd7cbd01d Update API documentation to always use , add compatibility shim to mcl_minecarts.is_rail() and mcl_minecarts.ge_rail_direction() 2024-11-11 02:18:07 +01:00
teknomunk 286dcb54d8 Rewrite mcl_util.hopper_pull in terms of mcl_util.hopper_pull_to_inventory 2024-11-11 02:18:07 +01:00
teknomunk 1f01655984 Correct documentation per review 2024-11-11 02:18:07 +01:00
teknomunk 6459e1bbd2 Switch over to using vl_legacy for item conversion in player inventories 2024-11-11 02:18:07 +01:00
teknomunk a11180b4d8 Fix typo 2024-11-11 02:18:07 +01:00
teknomunk 62bee61ddf Register rail conversions 2024-11-11 02:18:07 +01:00
teknomunk daead50651 Implement vl_legacy deprecated function and item conversion APIs 2024-11-11 02:18:07 +01:00
teknomunk 71308107db Fix crashes 2024-11-11 02:18:07 +01:00
teknomunk 4187a91a4a Make old rails have a drawtype, make update lbm always run 2024-11-11 02:18:07 +01:00
teknomunk 048482ffcc Move the various rails to their own files, code cleanup 2024-11-11 02:18:07 +01:00
teknomunk d0e64064db Remove undefined global for optional environmental physics 2024-11-11 02:18:07 +01:00
teknomunk 423acf2353 Remove Emerge-0 warning that occurs when placing mineshafts 2024-11-11 02:18:07 +01:00
teknomunk 0fc4a4e65d Restore 45 degree cart movement, remove warning about unknown global 2024-11-11 02:18:07 +01:00
teknomunk ea7e0fecdf Complete rework of curve/tee rail direction functions 2024-11-11 02:18:07 +01:00
teknomunk f47a12b1da Rework rail_dir_curve to significantly reduce code size 2024-11-11 02:18:07 +01:00