From 35bc1b6be4157344da5bcf8463ef73d7e597e951 Mon Sep 17 00:00:00 2001 From: teknomunk Date: Fri, 12 Apr 2024 19:04:53 +0000 Subject: [PATCH] Add documentation for newly exposed attach_driver --- mods/ENTITIES/mcl_minecarts/API.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mods/ENTITIES/mcl_minecarts/API.md b/mods/ENTITIES/mcl_minecarts/API.md index ea1e13f1b..a315beb32 100644 --- a/mods/ENTITIES/mcl_minecarts/API.md +++ b/mods/ENTITIES/mcl_minecarts/API.md @@ -126,6 +126,10 @@ Called to get the next direction a cart will travel after passing thru this node ## Cart Functions +`mcl_minecarts.attach_driver(cart, player)` + +This attaches (ObjectRef) `player` to the (LuaEntity) `cart`. + `mcl_minecarts.detach_minecart(cart_data)` This detaches a minecart from any rail it is attached to and makes it start moving