Commit Graph

12197 Commits

Author SHA1 Message Date
teknomunk 1db7d4bc0e Fix crashes, fix link in documentation 2024-04-28 11:12:45 +00:00
teknomunk f18e086da1 More documentation, add myself to copyright list in README.txt 2024-04-28 11:12:45 +00:00
teknomunk fd81d19a94 More minor changes to API.md, start overall implementation documentation 2024-04-28 11:12:45 +00:00
teknomunk 0fedfd2e40 Fix table of contents 2024-04-28 11:12:45 +00:00
teknomunk c54dff1f27 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-04-28 11:12:45 +00:00
teknomunk d3bb27c053 Nearly finish API documentation, create mcl_minecarts.add_blocks_to_map() 2024-04-28 11:12:45 +00:00
teknomunk 077834951f Continue writing API documentation, update call signatures for a couple of API functions 2024-04-28 11:12:45 +00:00
teknomunk fc3de80bf7 Change document formatting, finally move cactus cart dropping to node definition for mcl_core:cactus 2024-04-28 11:12:45 +00:00
teknomunk 5145deb273 Correct crashes/item duplication with dropping carts, start API documentation 2024-04-28 11:12:45 +00:00
teknomunk 62964b4dab Fix cart controls, cart pushing 2024-04-28 11:12:45 +00:00
teknomunk 83b794060a Fix typo in rail replacement mapping, fix several crashes 2024-04-28 11:12:45 +00:00
teknomunk 9bb814620d Implement movement thru tee rails 2024-04-28 11:12:45 +00:00
teknomunk 8eee894429 Tune respawn distance limit 2024-04-28 11:12:45 +00:00
teknomunk cdc2310e23 Fix crashes 2024-04-28 11:12:45 +00:00
teknomunk 19da277b3b Remove memory leak for cart data, check distance to players before respawning distant carts to prevent adding entities that are immediately inactivated 2024-04-28 11:12:45 +00:00
teknomunk 4965d6a24d Implement offline/out of range minecart movement and fix minecart respawning, remove railtype tracking 2024-04-28 11:12:45 +00:00
teknomunk 8fb5412bb0 Remove do_movement dependency on the existence of a cart luaentity 2024-04-28 11:12:45 +00:00
teknomunk 8e71c40394 Fix undefined global warning, move player off to the side of a cart when dismounting so trains don't get pushed apart when getting out 2024-04-28 11:12:45 +00:00
teknomunk dd9ede59dc Make trains containing a player in a minecart function, minor cleanup in mcl_playerinfo 2024-04-28 11:12:45 +00:00
teknomunk f4e74a11e8 Fix crashes in train logic, allow breaking apart trains 2024-04-28 11:12:45 +00:00
teknomunk 95867b5da8 Implement train reversing 2024-04-28 11:12:45 +00:00
teknomunk 7bdceb1c21 Repair vectors in cart data, mostly fix train movement bugs (still possible to have a furnace minecart flip, without the train also flipping) 2024-04-28 11:12:45 +00:00
teknomunk 0e899d1bd0 Add cart entity respawn/destroy to match cart data (partially working) 2024-04-28 11:12:45 +00:00
teknomunk 3252ac7919 Give furnace minecart minimum velocity when lit, add train separation code, update logging code, add sequence number to entity staticdata to allow respawn/despawn when carts move when the entity is unloaded 2024-04-28 11:12:45 +00:00
teknomunk 33866ad21f Fix rail detach crash, make tnt minecarts explode if they hit something hard (off rails) 2024-04-28 11:12:45 +00:00
teknomunk d8bdf7b9d2 Make sure carts get detatch if the rail under them is removed 2024-04-28 11:12:45 +00:00
teknomunk 74f0542ba7 Fixish reorganizing, initial train implementation 2024-04-28 11:12:45 +00:00
teknomunk 9ddfd0c4e1 Major reorganization, start setup for trains 2024-04-28 11:12:45 +00:00
teknomunk 020737266b Make sure carts that collide move in the same direction the colliding cart was 2024-04-28 11:12:45 +00:00
teknomunk 6203d20e04 Add utilities to convert between an ObjectRef, it's active object id and a 128bit uuid, move minecart data from entity staticdata to mod storage to eventually allow updating carts when out of range of players and also track what carts are alive, implement on-rail cart collisions 2024-04-28 11:12:45 +00:00
teknomunk 74f9d13361 Harden against unknown nodes 2024-04-28 11:12:44 +00:00
teknomunk 2f15de0150 Allow players to push minecarts that are not on track 2024-04-28 11:12:44 +00:00
teknomunk 8a69a80707 Fix rails in creative inventory, make minecart with tnt not crash server when exploding, make minecart with tnt slightly more powerful than regular tnt 2024-04-28 11:12:44 +00:00
teknomunk 7120365652 Fix rail movement regressions 2024-04-28 11:12:44 +00:00
teknomunk 1515a9ecbd Move cart code to its own file, more code cleanup, add aliases for old track items 2024-04-28 11:12:44 +00:00
teknomunk 233495d6f8 Cleanup code, restore uphill/downhill cart movement, completely remove old rail 2024-04-28 11:12:44 +00:00
teknomunk 47ed64f45b Get rail reattachment (especially after jumps) working correctly 2024-04-28 11:12:44 +00:00
teknomunk 1315f7ea95 Make legacy rail update apply to all old rail types, add basic detached railcart physics with a stub to use mcl_physics when it gets merged 2024-04-28 11:12:44 +00:00
teknomunk f13f52ac3b Silence unmaskable print statements 2024-04-28 11:12:44 +00:00
teknomunk 320e36b455 Add immortal item entity support, add legacy rail conversion that uses immortal item drops for corners/tees/crosses that are no longer possible 2024-04-28 11:12:44 +00:00
teknomunk f322dc9e26 Fix more rail connection bugs 2024-04-28 11:12:44 +00:00
teknomunk e5f194cdd5 Get sloped connections working correctly 2024-04-28 11:12:44 +00:00
teknomunk bd4d09b6e2 Re-enable rule for powering rail from underneath, have stairs block minecart movement, fix crash when lightning strikes a minecart 2024-04-28 11:12:44 +00:00
teknomunk 178719b247 Fix mcl_util.table_merge where a standard value overwrites a table, fix base definition usage, implement behavior difference when there is a solid block after a straight piece of track (this will eventually allow minecarts to fly off the end of the track) 2024-04-28 11:12:44 +00:00
teknomunk 256018ca1e Update all rail types to new version 2024-04-28 11:12:44 +00:00
teknomunk 019943346d Reorganize 2024-04-28 11:12:44 +00:00
teknomunk 98f58cd78f Finish reverting 08b41a3b39 2024-04-28 11:12:44 +00:00
teknomunk 6b650511b1 Enable new track with get_next_dir handlers 2024-04-28 11:12:44 +00:00
teknomunk 65cd8dabd8 Change connection rules again to allow building parallel track, tees and crosses), start implementing rail rules callbacks 2024-04-28 11:12:44 +00:00
teknomunk 3ed88a8fba Add sloped rail 2024-04-28 11:12:44 +00:00