From 84377ee2597138ac091cdf4c3882b2a76f7abec1 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Sat, 14 Jun 2025 08:51:26 +0100 Subject: [PATCH] fix on_pick_up example in api.txt --- api.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api.txt b/api.txt index e7405d5..42f5165 100644 --- a/api.txt +++ b/api.txt @@ -314,15 +314,15 @@ Pickup Items 'pick_up' table of itemstrings the mob will pick up. 'on_pick_up' function that will be called on item pickup - arguments are - (self, itemstring) and can return nil or a a modified itemstack e.g. + (self, itemtable) and can return nil or a a modified itemstack e.g. -on_pick_up = function(self, itemstring) +on_pick_up = function(self, itemtable) - local istack = ItemStack(entity.itemstring) + local istack = ItemStack(itemtable.itemstring) print("-- took", istack:get_name()) - istack:take_item(1) + istack:take_item() return istack end,