SHOW:
|
|
- or go back to the newest paste.
1 | - | Row Pos Item |
1 | + | local monitor = peripheral.wrap("top") -- Replace "top" with the side the monitor is on if it's not on top |
2 | - | R1 8 lust shard |
2 | + | local orgTerm=term.redirect(monitor) |
3 | - | R1 7 envy shard |
3 | + | term.redirect(orgTerm) |
4 | - | R1 6 pride shard |
4 | + | |
5 | - | R1 5 wrath shard |
5 | + | local dsuItems = { |
6 | - | R1 4 greed shard |
6 | + | { row = "R1", pos = 8, item = "lust shard" }, |
7 | - | R1 3 sloth shard |
7 | + | { row = "R1", pos = 7, item = "envy shard" }, |
8 | - | R1 2 coal dust |
8 | + | { row = "R1", pos = 6, item = "pride shard" }, |
9 | - | R1 1 rocky hive |
9 | + | { row = "R1", pos = 5, item = "wrath shard" }, |
10 | - | R2 8 ferrous ingot |
10 | + | { row = "R1", pos = 4, item = "greed shard" }, |
11 | - | R2 7 charged certus quartz |
11 | + | { row = "R1", pos = 3, item = "sloth shard" }, |
12 | - | R2 6 netherstar |
12 | + | { row = "R1", pos = 2, item = "coal dust" }, |
13 | - | R2 5 flint |
13 | + | { row = "R1", pos = 1, item = "rocky hive" }, |
14 | - | R2 4 ardite |
14 | + | { row = "R2", pos = 8, item = "ferrous ingot" }, |
15 | - | R2 3 cobalt |
15 | + | { row = "R2", pos = 7, item = "charged certus quartz" }, |
16 | - | R2 2 water shard |
16 | + | { row = "R2", pos = 6, item = "netherstar" }, |
17 | - | R2 1 fire shard |
17 | + | { row = "R2", pos = 5, item = "flint" }, |
18 | - | R3 8 entropy shard |
18 | + | { row = "R2", pos = 4, item = "ardite" }, |
19 | - | R3 7 order shard |
19 | + | { row = "R2", pos = 3, item = "cobalt" }, |
20 | - | R3 6 earth shard |
20 | + | { row = "R2", pos = 2, item = "water shard" }, |
21 | - | R3 5 air shard |
21 | + | { row = "R2", pos = 1, item = "fire shard" }, |
22 | - | R3 4 yellow hearts |
22 | + | { row = "R3", pos = 8, item = "entropy shard" }, |
23 | - | R3 3 saltpeter |
23 | + | { row = "R3", pos = 7, item = "order shard" }, |
24 | - | R3 2 steel |
24 | + | { row = "R3", pos = 6, item = "earth shard" }, |
25 | - | R3 1 netherwart |
25 | + | { row = "R3", pos = 5, item = "air shard" }, |
26 | - | R4 8 wither skulls |
26 | + | { row = "R3", pos = 4, item = "yellow hearts" }, |
27 | - | R4 7 necrotic bone |
27 | + | { row = "R3", pos = 3, item = "saltpeter" }, |
28 | - | R4 6 rich slag |
28 | + | { row = "R3", pos = 2, item = "steel" }, |
29 | - | R4 5 emerald |
29 | + | { row = "R3", pos = 1, item = "netherwart" }, |
30 | - | R4 4 cactus green |
30 | + | { row = "R4", pos = 8, item = "wither skulls" }, |
31 | - | R4 3 sugar cane |
31 | + | { row = "R4", pos = 7, item = "necrotic bone" }, |
32 | - | R4 2 wool |
32 | + | { row = "R4", pos = 6, item = "rich slag" }, |
33 | - | R4 1 glowstone |
33 | + | { row = "R4", pos = 5, item = "emerald" }, |
34 | - | R5 8 rotten flesh |
34 | + | { row = "R4", pos = 4, item = "cactus green" }, |
35 | - | R5 7 bonemeal |
35 | + | { row = "R4", pos = 3, item = "sugar cane" }, |
36 | - | R5 6 lapis ore |
36 | + | { row = "R4", pos = 2, item = "wool" }, |
37 | - | R5 5 diamond ore |
37 | + | { row = "R4", pos = 1, item = "glowstone" }, |
38 | - | R5 4 gold ore |
38 | + | { row = "R5", pos = 8, item = "rotten flesh" }, |
39 | - | R5 3 certus quartz ore |
39 | + | { row = "R5", pos = 7, item = "bonemeal" }, |
40 | - | R5 2 dense iron ore |
40 | + | { row = "R5", pos = 6, item = "lapis ore" }, |
41 | - | R5 1 salt ore |
41 | + | { row = "R5", pos = 5, item = "diamond ore" }, |
42 | - | R6 8 aluminum ore |
42 | + | { row = "R5", pos = 4, item = "gold ore" }, |
43 | - | R6 7 yellorium ore |
43 | + | { row = "R5", pos = 3, item = "certus quartz ore" }, |
44 | - | R6 6 redstone ore |
44 | + | { row = "R5", pos = 2, item = "dense iron ore" }, |
45 | - | R6 5 tin ore |
45 | + | { row = "R5", pos = 1, item = "salt ore" }, |
46 | - | R6 4 silver ore |
46 | + | { row = "R6", pos = 8, item = "aluminum ore" }, |
47 | - | R6 3 lead ore |
47 | + | { row = "R6", pos = 7, item = "yellorium ore" }, |
48 | - | R6 2 copper ore |
48 | + | { row = "R6", pos = 6, item = "redstone ore" }, |
49 | - | R6 1 iron ore |
49 | + | { row = "R6", pos = 5, item = "tin ore" }, |
50 | - | R7 8 coal ore |
50 | + | { row = "R6", pos = 4, item = "silver ore" }, |
51 | - | R7 7 division sigil |
51 | + | { row = "R6", pos = 3, item = "lead ore" }, |
52 | - | R7 6 crystalized essence metallum |
52 | + | { row = "R6", pos = 2, item = "copper ore" }, |
53 | - | R7 5 rubber wood |
53 | + | { row = "R6", pos = 1, item = "iron ore" }, |
54 | - | R7 4 oak wood |
54 | + | { row = "R7", pos = 8, item = "coal ore" }, |
55 | - | R7 3 nether brick |
55 | + | { row = "R7", pos = 7, item = "division sigil" }, |
56 | - | R7 2 wheat |
56 | + | { row = "R7", pos = 6, item = "crystalized essence metallum" }, |
57 | - | R7 1 nether quartz ore |
57 | + | { row = "R7", pos = 5, item = "rubber wood" }, |
58 | - | R8 8 netherrack |
58 | + | { row = "R7", pos = 4, item = "oak wood" }, |
59 | - | R8 7 cobble |
59 | + | { row = "R7", pos = 3, item = "nether brick" }, |
60 | - | R8 6 salt |
60 | + | { row = "R7", pos = 2, item = "wheat" }, |
61 | - | R8 5 gunpowder |
61 | + | { row = "R7", pos = 1, item = "nether quartz ore" }, |
62 | - | R8 4 blaze rod |
62 | + | { row = "R8", pos = 8, item = "netherrack" }, |
63 | - | R8 3 vanilla bones |
63 | + | { row = "R8", pos = 7, item = "cobble" }, |
64 | - | R8 2 uranium |
64 | + | { row = "R8", pos = 6, item = "salt" }, |
65 | - | R8 1 ferrous |
65 | + | { row = "R8", pos = 5, item = "gunpowder" }, |
66 | - | R9 8 sulfur |
66 | + | { row = "R8", pos = 4, item = "blaze rod" }, |
67 | - | R9 7 ender pearls |
67 | + | { row = "R8", pos = 3, item = "vanilla bones" }, |
68 | - | R9 6 nether quartz |
68 | + | { row = "R8", pos = 2, item = "uranium" }, |
69 | - | R9 5 glass |
69 | + | { row = "R8", pos = 1, item = "ferrous" }, |
70 | - | R9 4 niter |
70 | + | { row = "R9", pos = 8, item = "sulfur" }, |
71 | - | R9 3 soul sand |
71 | + | { row = "R9", pos = 7, item = "ender pearls" }, |
72 | - | R9 2 obsidian |
72 | + | { row = "R9", pos = 6, item = "nether quartz" }, |
73 | - | R9 1 shiny |
73 | + | { row = "R9", pos = 5, item = "glass" }, |
74 | - | R10 8 enderium |
74 | + | { row = "R9", pos = 4, item = "niter" }, |
75 | - | R10 7 invar |
75 | + | { row = "R9", pos = 3, item = "soul sand" }, |
76 | - | R10 6 diorite |
76 | + | { row = "R9", pos = 2, item = "obsidian" }, |
77 | - | R10 5 clay |
77 | + | { row = "R9", pos = 1, item = "shiny" }, |
78 | - | R10 4 rubber |
78 | + | { row = "R10", pos = 8, item = "enderium" }, |
79 | - | R10 3 certus |
79 | + | { row = "R10", pos = 7, item = "invar" }, |
80 | - | R10 2 gravel |
80 | + | { row = "R10", pos = 6, item = "diorite" }, |
81 | - | R10 1 coal |
81 | + | { row = "R10", pos = 5, item = "clay" }, |
82 | - | R11 8 dirt |
82 | + | { row = "R10", pos = 4, item = "rubber" }, |
83 | - | R11 7 diamond |
83 | + | { row = "R10", pos = 3, item = "certus" }, |
84 | - | R11 6 lapis |
84 | + | { row = "R10", pos = 2, item = "gravel" }, |
85 | - | R11 5 marble |
85 | + | { row = "R10", pos = 1, item = "coal" }, |
86 | - | R11 4 redstone |
86 | + | { row = "R11", pos = 8, item = "dirt" }, |
87 | - | R11 3 stone |
87 | + | { row = "R11", pos = 7, item = "diamond" }, |
88 | - | R11 2 sand |
88 | + | { row = "R11", pos = 6, item = "lapis" }, |
89 | - | R11 1 aluminum |
89 | + | { row = "R11", pos = 5, item = "marble" }, |
90 | - | R12 8 copper |
90 | + | { row = "R11", pos = 4, item = "redstone" }, |
91 | - | R12 7 yellorium |
91 | + | { row = "R11", pos = 3, item = "stone" }, |
92 | - | R12 6 draconium |
92 | + | { row = "R11", pos = 2, item = "sand" }, |
93 | - | R12 5 tin |
93 | + | { row = "R11", pos = 1, item = "aluminum" }, |
94 | - | R12 4 lead |
94 | + | { row = "R12", pos = 8, item = "copper" }, |
95 | - | R12 3 silver |
95 | + | { row = "R12", pos = 7, item = "yellorium" }, |
96 | - | R12 2 gold |
96 | + | { row = "R12", pos = 6, item = "draconium" }, |
97 | - | R12 1 iron |
97 | + | { row = "R12", pos = 5, item = "tin" }, |
98 | - | R13 8 awakened drac |
98 | + | { row = "R12", pos = 4, item = "lead" }, |
99 | - | R13 7 draconium infused obsidian |
99 | + | { row = "R12", pos = 3, item = "silver" }, |
100 | - | R13 6 torch |
100 | + | { row = "R12", pos = 2, item = "gold" }, |
101 | - | R13 5 melon |
101 | + | { row = "R12", pos = 1, item = "iron" }, |
102 | - | R13 4 pyrotheum |
102 | + | { row = "R13", pos = 8, item = "awakened drac" }, |
103 | - | R13 3 enderium base |
103 | + | { row = "R13", pos = 7, item = "draconium infused obsidian" }, |
104 | - | R13 2 enderium |
104 | + | { row = "R13", pos = 6, item = "torch" }, |
105 | - | R13 1 gluttony shard |
105 | + | { row = "R13", pos = 5, item = "melon" }, |
106 | - | R14 8 pink slime |
106 | + | { row = "R13", pos = 4, item = "pyrotheum" }, |
107 | - | R14 7 yellow petal |
107 | + | { row = "R13", pos = 3, item = "enderium base" }, |
108 | - | R14 6 lt blue petal |
108 | + | { row = "R13", pos = 2, item = "enderium" }, |
109 | - | R14 5 purple petal |
109 | + | { row = "R13", pos = 1, item = "gluttony shard" }, |
110 | - | R14 4 black petal |
110 | + | { row = "R14", pos = 8, item = "pink slime" }, |
111 | - | R14 3 vines |
111 | + | { row = "R14", pos = 7, item = "yellow petal" }, |
112 | - | R14 2 orange petal |
112 | + | { row = "R14", pos = 6, item = "lt blue petal" }, |
113 | - | R14 1 cinderpearl |
113 | + | { row = "R14", pos = 5, item = "purple petal" }, |
114 | - | R15 8 brown petal |
114 | + | { row = "R14", pos = 4, item = "black petal" }, |
115 | - | R15 7 blue petal |
115 | + | { row = "R14", pos = 3, item = "vines" }, |
116 | - | R15 6 red petal |
116 | + | { row = "R14", pos = 2, item = "orange petal" }, |
117 | - | R15 5 air infused stone |
117 | + | { row = "R14", pos = 1, item = "cinderpearl" }, |
118 | - | R15 4 energetic alloy |
118 | + | { row = "R15", pos = 8, item = "brown petal" }, |
119 | - | R15 3 green petal |
119 | + | { row = "R15", pos = 7, item = "blue petal" }, |
120 | - | R15 2 rocky princess |
120 | + | { row = "R15", pos = 6, item = "red petal" }, |
121 | - | R15 1 crystalized essence terra |
121 | + | { row = "R15", pos = 5, item = "air infused stone" }, |
122 | - | R16 8 white petal |
122 | + | { row = "R15", pos = 4, item = "energetic alloy" }, |
123 | - | R16 7 oak wood planks |
123 | + | { row = "R15", pos = 3, item = "green petal" }, |
124 | - | R16 6 sticks |
124 | + | { row = "R15", pos = 2, item = "rocky princess" }, |
125 | - | R16 5 cinnebar ore |
125 | + | { row = "R15", pos = 1, item = "crystalized essence terra" }, |
126 | - | R16 4 grass |
126 | + | { row = "R16", pos = 8, item = "white petal" }, |
127 | - | R16 3 shimmerleaf |
127 | + | { row = "R16", pos = 7, item = "oak wood planks" }, |
128 | - | R16 2 soybean |
128 | + | { row = "R16", pos = 6, item = "sticks" }, |
129 | - | R16 1 carrot |
129 | + | { row = "R16", pos = 5, item = "cinnebar ore" }, |
130 | - | R17 8 glowstone block |
130 | + | { row = "R16", pos = 4, item = "grass" }, |
131 | - | R17 7 earth infused stone |
131 | + | { row = "R16", pos = 3, item = "shimmerleaf" }, |
132 | - | R17 6 track 66 (railroad) |
132 | + | { row = "R16", pos = 2, item = "soybean" }, |
133 | - | R17 5 lime petal |
133 | + | { row = "R16", pos = 1, item = "carrot" }, |
134 | - | R17 4 raw beef |
134 | + | { row = "R17", pos = 8, item = "glowstone block" }, |
135 | - | R17 3 pink petal |
135 | + | { row = "R17", pos = 7, item = "earth infused stone" }, |
136 | - | R17 2 hellbark wood |
136 | + | { row = "R17", pos = 6, item = "track 66 (railroad)" }, |
137 | - | R17 1 raw firestone |
137 | + | { row = "R17", pos = 5, item = "lime petal" }, |
138 | - | R18 8 Watermelon |
138 | + | { row = "R17", pos = 4, item = "raw beef" }, |
139 | - | R18 7 Rubber tree saplings |
139 | + | { row = "R17", pos = 3, item = "pink petal" }, |
140 | - | R18 6 Oak saplings |
140 | + | { row = "R17", pos = 2, item = "hellbark wood" }, |
141 | - | R18 5 crystalized essence permutatio |
141 | + | { row = "R17", pos = 1, item = "raw firestone" }, |
142 | - | R18 4 cyan petal |
142 | + | { row = "R18", pos = 8, item = "Watermelon" }, |
143 | - | R18 3 magenta petal |
143 | + | { row = "R18", pos = 7, item = "Rubber tree saplings" }, |
144 | - | R18 2 lt grey petal |
144 | + | { row = "R18", pos = 6, item = "Oak saplings" }, |
145 | - | R18 1 grey petal |
145 | + | { row = "R18", pos = 5, item = "crystalized essence permutatio" }, |
146 | - | R19 8 empty |
146 | + | { row = "R18", pos = 4, item = "cyan petal" }, |
147 | - | R19 7 empty |
147 | + | { row = "R18", pos = 3, item = "magenta petal" }, |
148 | - | R19 6 empty |
148 | + | { row = "R18", pos = 2, item = "lt grey petal" }, |
149 | - | R19 5 empty |
149 | + | { row = "R18", pos = 1, item = "grey petal" }, |
150 | - | R19 4 empty |
150 | + | { row = "R19", pos = 3, item = "Pumpkin" }, |
151 | - | R19 3 Pumpkin |
151 | + | { row = "R19", pos = 2, item = "Silky propolis" }, |
152 | - | R19 2 Silky propolis |
152 | + | { row = "R19", pos = 1, item = "Silver ingot" } |
153 | - | R19 1 Silver ingot |
153 | + | } |
154 | ||
155 | function findItem(searchKey) | |
156 | local key = searchKey:lower() | |
157 | term.clear() | |
158 | monitor.clear() | |
159 | for i, v in ipairs(dsuItems) do | |
160 | if v.item:lower():find(key) then | |
161 | term.redirect(monitor) | |
162 | print(v.row..","..v.pos.." contains ".. v.item) | |
163 | term.redirect(orgTerm) | |
164 | print(v.row..","..v.pos.." contains ".. v.item) | |
165 | found=true | |
166 | end | |
167 | end | |
168 | ||
169 | if not found then | |
170 | print("No items found") | |
171 | end | |
172 | -- if found then | |
173 | -- print("Output redirected to monitor.") | |
174 | -- end | |
175 | end | |
176 | ||
177 | while true do | |
178 | print("Enter an item to search (or type 'exit' to stop):") | |
179 | local searchKey = read() | |
180 | if searchKey:lower() == "exit" then | |
181 | break | |
182 | end | |
183 | findItem(searchKey) | |
184 | os.sleep(3) -- Pause for 5 seconds | |
185 | end | |
186 |