Commit Graph

12652 Commits

Author SHA1 Message Date
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
teknomunk d4858464c3 Fix cart controls, cart pushing 2024-10-27 16:00:44 +01:00
teknomunk be8697a056 Fix typo in rail replacement mapping, fix several crashes 2024-10-27 16:00:44 +01:00
teknomunk 93de7d0384 Implement movement thru tee rails 2024-10-27 16:00:44 +01:00
teknomunk 08313c596d Tune respawn distance limit 2024-10-27 16:00:44 +01:00
teknomunk 663710bfd2 Fix crashes 2024-10-27 16:00:44 +01:00
teknomunk 562f488d6f Remove memory leak for cart data, check distance to players before respawning distant carts to prevent adding entities that are immediately inactivated 2024-10-27 16:00:44 +01:00
teknomunk bb4e3276a4 Implement offline/out of range minecart movement and fix minecart respawning, remove railtype tracking 2024-10-27 16:00:44 +01:00
teknomunk dbb96ec23e Remove do_movement dependency on the existence of a cart luaentity 2024-10-27 16:00:44 +01:00
teknomunk 734631733c 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-10-27 16:00:44 +01:00
teknomunk dccb054690 Make trains containing a player in a minecart function, minor cleanup in mcl_playerinfo 2024-10-27 16:00:44 +01:00
teknomunk b3a5579b6e Fix crashes in train logic, allow breaking apart trains 2024-10-27 16:00:44 +01:00
teknomunk 985b11e999 Implement train reversing 2024-10-27 16:00:44 +01:00
teknomunk 2009222e01 Repair vectors in cart data, mostly fix train movement bugs (still possible to have a furnace minecart flip, without the train also flipping) 2024-10-27 16:00:44 +01:00
teknomunk a56174233b Add cart entity respawn/destroy to match cart data (partially working) 2024-10-27 16:00:44 +01:00
teknomunk 375ef8e9f7 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-10-27 16:00:44 +01:00
teknomunk a57c34757e Fix rail detach crash, make tnt minecarts explode if they hit something hard (off rails) 2024-10-27 16:00:44 +01:00
teknomunk 7c858d1575 Make sure carts get detatch if the rail under them is removed 2024-10-27 16:00:44 +01:00
teknomunk 2e04794e0e Fixish reorganizing, initial train implementation 2024-10-27 16:00:44 +01:00
teknomunk 1156ab8604 Major reorganization, start setup for trains 2024-10-27 16:00:44 +01:00
teknomunk 268f4368cb Make sure carts that collide move in the same direction the colliding cart was 2024-10-27 16:00:44 +01:00
teknomunk 4291e4f51a 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-10-27 16:00:44 +01:00
teknomunk cf1f404362 Harden against unknown nodes 2024-10-27 16:00:44 +01:00
teknomunk a00ca4d97c Allow players to push minecarts that are not on track 2024-10-27 16:00:44 +01:00
teknomunk 996fc3f203 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-10-27 16:00:44 +01:00
teknomunk 1e1fe814ac Fix rail movement regressions 2024-10-27 16:00:44 +01:00