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

Function enchantItem

examples/chest.js:334–342  ·  view source on GitHub ↗
(choice)

Source from the content-addressed store, hash-verified

332 }
333
334 async function enchantItem (choice) {
335 choice = parseInt(choice, 10)
336 try {
337 const item = await table.enchant(choice)
338 bot.chat(`enchanted ${itemToString(item)}`)
339 } catch (err) {
340 bot.chat('error enchanting')
341 }
342 }
343
344 async function takeEnchantedItem () {
345 try {

Callers 1

onChatFunction · 0.85

Calls 1

itemToStringFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…