diff --git a/builtin/game/item.lua b/builtin/game/item.lua index 3e810c3f0..4e7da2939 100644 --- a/builtin/game/item.lua +++ b/builtin/game/item.lua @@ -373,6 +373,11 @@ function core.item_drop(itemstack, dropper, pos) dir.z = dir.z * 2.9 obj:set_velocity(dir) obj:get_luaentity().dropped_by = dropper:get_player_name() + + core.log("action", string.format("%s dropped %s %i at %s", + dropper_is_player and dropper:get_player_name() or "A mod", + item:get_name(), item:get_count(), + core.pos_to_string(p, 1))) end return itemstack, obj end