MCPcopy
hub / github.com/PrismarineJS/mineflayer / testMouseClick

Function testMouseClick

test/externalTests/useChests.js:170–175  ·  view source on GitHub ↗
(window, clicks)

Source from the content-addressed store, hash-verified

168 }
169
170 async function testMouseClick (window, clicks) {
171 let iterations = 0
172 while (iterations++ < clicks) {
173 await bot.clickWindow(~~(Math.random() * window.inventoryStart), 0, 0)
174 }
175 }
176
177 function clearLargeChest () {
178 bot.chat(`/setblock ${largeChestLocations[0].x} ${largeChestLocations[0].y} ${largeChestLocations[0].z} chest`)

Callers 1

useChests.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…