From 9dc6074987394bf27d79138e6e6579bee167799b Mon Sep 17 00:00:00 2001 From: nixnoxus <87639406+nixnoxus@users.noreply.github.com> Date: Wed, 2 Feb 2022 18:53:49 +0100 Subject: [PATCH] Add `listring` in formspec (#7) --- init.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index b3e0741..2114419 100644 --- a/init.lua +++ b/init.lua @@ -42,7 +42,11 @@ minetest.register_node("crafting_bench:workbench",{ 'list[context;rec;4,1;3,3;]' .. 'label[7.5,0;'..S('Craft Output')..']' .. 'list[context;dst;8,1;1,4;]' .. - 'list[current_player;main;1,6;8,4;]' ) + 'list[current_player;main;1,6;8,4;]' .. + 'listring[current_name;dst]'.. + 'listring[current_player;main]'.. + 'listring[current_name;src]'.. + 'listring[current_player;main]') meta:set_string( 'infotext', S('Workbench')) local inv = meta:get_inventory() inv:set_size( 'src', 2 * 4 )