+ {Array.from({ length: 16 }, (_, slotIndex) => {
+ const item = turtle.inventory[slotIndex];
+ return (
+
+ {item ? (
+ <>
+
+
+ {item.name.includes('diamond') ? '💎' :
+ item.name.includes('gold') ? '�' :
+ item.name.includes('iron') ? '⚪' :
+ item.name.includes('coal') ? 'âš«' :
+ item.name.includes('emerald') ? '🟢' :
+ item.name.includes('redstone') ? '🔴' :
+ item.name.includes('lapis') ? '🔵' :
+ item.name.includes('stone') ? '🗿' :
+ item.name.includes('dirt') ? '🟤' :
+ item.name.includes('wood') || item.name.includes('log') ? '🪵' :
+ item.name.includes('cobble') ? '🪨' : '�📦'}
+
+ {item.count}
+
+
+ {item.name.replace('minecraft:', '').replace(/_/g, ' ').split(' ').slice(0, 2).join(' ')}
+
+ >
+ ) : (
+
{slotIndex + 1}
+ )}
+