Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FundamentalLabs/minecraft-mcp
/ functions
Functions
268 in github.com/FundamentalLabs/minecraft-mcp
⨍
Functions
268
◇
Types & classes
108
↓ 52 callers
Function
asyncwrap
(options: IAsyncwrapOptions)
mcp-server/src/skills/library/asyncwrap.ts:20
↓ 27 callers
Function
validateSkillParams
( params: { [key: string]: any }, requiredKeys: string[], skillName: string, )
mcp-server/src/skills/index.ts:3
↓ 24 callers
Function
isSignalAborted
(signal: AbortSignal | undefined)
mcp-server/src/skills/index.ts:17
↓ 16 callers
Method
stop
* Stops attacking the current entity.
mineflayer-pvp/src/PVP.ts:94
↓ 12 callers
Function
findClosestItemName
( bot: Bot, params: IFindClosestItemNameParams, )
mcp-server/src/skills/library/findClosestItemName.ts:19
↓ 10 callers
Function
error
(type: string, message: string)
mineflayer-collectblock/src/Util.ts:9
↓ 8 callers
Function
cancelableMove
(bot: Bot, options: ICancelableMove)
mcp-server/src/skills/library/navigateToLocation.ts:248
↓ 8 callers
Function
navigateToLocation
( bot: Bot, options: INavigateToLocationOptions, )
mcp-server/src/skills/library/navigateToLocation.ts:43
↓ 7 callers
Method
add
* Adds a new async task to this queue. The provided callback should be executed when * the async task is complete. * * @param task - The asyn
mineflayer-collectblock/src/TaskQueue.ts:22
↓ 6 callers
Function
stopAttack
()
mcp-server/src/skills/library/attack.ts:190
↓ 5 callers
Function
addToHistory
(type: ChatMessage['type'], message: string, username?: string, rawMessage?: any)
mcp-server/src/skills/verified/readChat.ts:152
↓ 5 callers
Function
getInventory
( bot: Bot, {useItemNames = true}: GetInventoryOptions, )
mcp-server/src/skills/library/inventoryHelpers.ts:13
↓ 4 callers
Method
cleanup
* Removes all attached event listeners from the bot.
mineflayer-collectblock/src/TemporarySubscriber.ts:28
↓ 4 callers
Function
findClosestPlayerByName
( bot: Bot, options: IFindClosestPlayerByNameOptions, )
mcp-server/src/skills/library/findClosestPlayerByName.ts:16
↓ 4 callers
Function
isInventoryFull
(bot: Bot)
mcp-server/src/skills/library/inventoryHelpers.ts:110
↓ 4 callers
Method
removeBot
(idOrUsername: string)
mcp-server/src/botManager.ts:65
↓ 4 callers
Method
removeTarget
(target: Collectable)
mineflayer-collectblock/src/Targets.ts:55
↓ 4 callers
Function
ticksToSeconds
(ticks: number)
mcp-server/src/skills/library/useFurnace.ts:43
↓ 3 callers
Method
addSync
* Adds a synchronous task toi this queue. * * @param task - The sync task to add.
mineflayer-collectblock/src/TaskQueue.ts:31
↓ 3 callers
Method
appendTarget
(target: Collectable)
mineflayer-collectblock/src/Targets.ts:21
↓ 3 callers
Method
attack
* Causes the bot to begin attacking an entity until it is killed or told to stop. * * @param target - The target to attack.
mineflayer-pvp/src/PVP.ts:72
↓ 3 callers
Method
clear
()
mineflayer-collectblock/src/Targets.ts:51
↓ 3 callers
Method
collect
* If target is a block: * Causes the bot to break and collect the target block. * * If target is an item drop: * Causes the bot to
mineflayer-collectblock/src/CollectBlock.ts:405
↓ 3 callers
Function
findAChest
( bot: Bot, options: IFindAChestOptions, )
mcp-server/src/skills/library/findAChest.ts:15
↓ 3 callers
Function
findTarget
(bot: Bot, options: IFindTargetOptions)
mcp-server/src/skills/library/attack.ts:248
↓ 3 callers
Method
forceStop
* Stops attacking the current entity. Force stops pathfinder. May result in the bot falling off of things or failing jumps. * @returns void
mineflayer-pvp/src/PVP.ts:145
↓ 3 callers
Method
hasShield
* Check if the bot currently has a shield equipped.
mineflayer-pvp/src/PVP.ts:277
↓ 3 callers
Function
isNearbyEntity
(entity: Entity)
mcp-server/src/skills/verified/runAway.ts:73
↓ 3 callers
Method
subscribeTo
* Adds a new temporary event listener to the bot. * * @param event - The event to subscribe to. * @param callback - The function to execute.
mineflayer-collectblock/src/TemporarySubscriber.ts:18
↓ 3 callers
Function
tossItemTowardsPlayer
( bot: Bot, options: ITossItemTowardsPlayerOptions, )
mcp-server/src/skills/library/tossItemTowardsPlayer.ts:33
↓ 2 callers
Function
attack
( bot: Bot, options: IAttackOptions, )
mcp-server/src/skills/library/attack.ts:33
↓ 2 callers
Function
autoEquipSword
(bot: Bot)
mcp-server/src/skills/library/pvpHelper.ts:10
↓ 2 callers
Function
canBotMine
( bot: Bot, options: iCanBotMineOptions, )
mcp-server/src/skills/library/mineBlock.ts:501
↓ 2 callers
Method
cancelTask
* Cancels the current collection task, if still active. * * @param cb - The callback to use when the task is stopped.
mineflayer-collectblock/src/CollectBlock.ts:505
↓ 2 callers
Method
dequeue
()
mcp-server/src/skills/library/findExplorableChunk.ts:214
↓ 2 callers
Method
disconnectAll
()
mcp-server/src/botManager.ts:141
↓ 2 callers
Method
enqueue
(item: IChunk, priority: number)
mcp-server/src/skills/library/findExplorableChunk.ts:209
↓ 2 callers
Function
exitInterface
(bot: Bot)
mcp-server/src/skills/library/exitInterface.ts:10
↓ 2 callers
Function
findNearbyChests
( bot: Bot, options: IFindNearbyChestsOptions, )
mcp-server/src/skills/library/findAChest.ts:64
↓ 2 callers
Method
getAllSkills
()
mcp-server/src/skillRegistry.ts:32
↓ 2 callers
Function
getAttackSpeed
(weaponName: string)
mineflayer-pvp/src/Cooldown.ts:3
↓ 2 callers
Function
getInventorySnapshot
(bot: Bot)
mcp-server/src/skills/verified/pickupItem.ts:184
↓ 2 callers
Function
getMostOfInInventory
(bot: Bot, itemType: string)
mcp-server/src/skills/library/craftAnItem.ts:590
↓ 2 callers
Method
getTicks
* Sampled right after an attack to get the number of ticks to wait * before the next attack. * * @param bot - The bot preforming the a
mineflayer-pvp/src/TimingSolver.ts:16
↓ 2 callers
Function
goToPerson
( bot: Bot, params: IGoToPersonParams, )
mcp-server/src/skills/library/goToPerson.ts:32
↓ 2 callers
Function
initializeChatHistory
(bot: Bot)
mcp-server/src/skills/verified/readChat.ts:142
↓ 2 callers
Function
interrupt_message_accumulated_items
(endMessage: string)
mcp-server/src/skills/verified/retrieveItemsFromNearbyFurnace.ts:332
↓ 2 callers
Method
isEmpty
()
mcp-server/src/skills/library/findExplorableChunk.ts:218
↓ 2 callers
Function
mineBlock
( bot: Bot, options: iMineBlockOptions, )
mcp-server/src/skills/library/mineBlock.ts:42
↓ 2 callers
Function
mineBlock
( bot: Bot, block: Block, options: CollectOptionsFull )
mineflayer-collectblock/src/CollectBlock.ts:215
↓ 2 callers
Function
placeBlock
( bot: Bot, options: IPlaceBlockOptions, )
mcp-server/src/skills/library/placeBlock.ts:38
↓ 2 callers
Function
tryHarvest
(bot: Bot, options: iTryHarvestOptions)
mcp-server/src/skills/library/mineBlock.ts:474
↓ 2 callers
Function
updateCraftingInterface
(bot: Bot)
mcp-server/src/skills/library/updateCraftingInterface.ts:11
↓ 2 callers
Function
useFurnace
( bot: Bot, options: IUseFurnaceOptions, )
mcp-server/src/skills/library/useFurnace.ts:125
↓ 1 callers
Function
_retrieveItemFromSingleFurnace
( bot: Bot, options: ILRetrieveItemFromSingleFurnaceOptions, )
mcp-server/src/skills/verified/retrieveItemsFromNearbyFurnace.ts:99
↓ 1 callers
Method
addBot
(username: string, bot: BotWithLogger)
mcp-server/src/botManager.ts:15
↓ 1 callers
Function
addItemsToInventory
( options: IAddItemsToInventory, )
mcp-server/src/skills/library/craftAnItem.ts:538
↓ 1 callers
Method
appendTargets
(targets: Collectable[])
mineflayer-collectblock/src/Targets.ts:15
↓ 1 callers
Method
attemptAttack
* Attempts to preform an attack on the target.
mineflayer-pvp/src/PVP.ts:225
↓ 1 callers
Function
blockHasNearbyAir
( bot: Bot, options: IBlockHasNearbyAirOptions, )
mcp-server/src/skills/library/blockHasNearbyAir.ts:18
↓ 1 callers
Function
calculateDistance
(pos1: Vec3, pos2: Vec3)
mcp-server/src/skills/library/tossItemTowardsPlayer.ts:198
↓ 1 callers
Function
calculateNormalizedDirection
( bot: Bot, options: ICalculateNormalizedDirectionOptions, )
mcp-server/src/skills/library/navigateToLocation.ts:206
↓ 1 callers
Function
canBotMineItem
( bot: Bot, options: iCanBotMineItemOptions, )
mcp-server/src/skills/library/mineBlock.ts:595
↓ 1 callers
Function
canPlaceItemHere
( bot: Bot, options: ICanPlaceItemHereOptions, )
mcp-server/src/skills/verified/placeItemNearYou.ts:217
↓ 1 callers
Function
canSeeBlock
(bot: Bot, position: Vec3)
mcp-server/src/skills/verified/lookAround.ts:24
↓ 1 callers
Function
checkCheatsEnabled
* Check if cheats are enabled by attempting a harmless command
mcp-server/src/skills/verified/buildSomething.ts:244
↓ 1 callers
Function
checkCheatsEnabled
* Check if cheats are enabled (same as buildSomething)
mcp-server/src/skills/verified/buildPixelArt.ts:303
↓ 1 callers
Method
checkExplosion
* Blocks a creeper explosion with a shield.
mineflayer-pvp/src/PVP.ts:200
↓ 1 callers
Function
checkInventoryForItem
( bot: Bot, itemName: string, neededQuantity: number, )
mcp-server/src/skills/library/tossItemTowardsPlayer.ts:206
↓ 1 callers
Function
checkOtherPlayersSleeping
(bot: Bot)
mcp-server/src/skills/verified/sleepInNearbyBed.ts:162
↓ 1 callers
Method
checkRange
* Updates whether the bot is in attack range of the target or not.
mineflayer-pvp/src/PVP.ts:176
↓ 1 callers
Function
clamp
(x: number, min: number, max: number)
mineflayer-pvp/src/Cooldown.ts:9
↓ 1 callers
Function
collectAll
( bot: Bot, options: CollectOptionsFull, signal?: AbortSignal )
mineflayer-collectblock/src/CollectBlock.ts:18
↓ 1 callers
Function
compareInventories
( oldInv: IInventoryItem[], newInv: IInventoryItem[], )
mcp-server/src/skills/verified/pickupItem.ts:198
↓ 1 callers
Function
computeRequiresTable
(recipe: minecraftData.Recipe)
mcp-server/src/skills/library/generateCraftableItems.ts:144
↓ 1 callers
Function
countItems
(bot: Bot, itemName: string)
mcp-server/src/skills/verified/dropItem.ts:106
↓ 1 callers
Function
craftAnItem
( bot: Bot, options: iCraftAnItemOptions, )
mcp-server/src/skills/library/craftAnItem.ts:34
↓ 1 callers
Function
createSkillExecutor
(skillName: string)
mcp-server/src/skillRegistry.ts:370
↓ 1 callers
Function
customToString
(missingItems: Record<string, number>)
mcp-server/src/skills/library/inventoryHelpers.ts:89
↓ 1 callers
Function
emptyInventory
(bot: Bot, chestLocations: Vec3[], itemFilter: ItemFilter, cb?: Callback)
mineflayer-collectblock/src/Inventory.ts:37
↓ 1 callers
Function
executeClone
(bot: Bot, cmd: any)
mcp-server/src/skills/verified/buildSomething.ts:359
↓ 1 callers
Function
executeCodeMode
* Execute arbitrary JavaScript code for building
mcp-server/src/skills/verified/buildSomething.ts:138
↓ 1 callers
Function
executeCommand
* Execute a single build command
mcp-server/src/skills/verified/buildSomething.ts:288
↓ 1 callers
Function
executeFill
(bot: Bot, cmd: any)
mcp-server/src/skills/verified/buildSomething.ts:340
↓ 1 callers
Function
executeGive
(bot: Bot, cmd: any)
mcp-server/src/skills/verified/buildSomething.ts:395
↓ 1 callers
Function
executeSetBlock
(bot: Bot, cmd: any)
mcp-server/src/skills/verified/buildSomething.ts:327
↓ 1 callers
Function
executeSummon
(bot: Bot, cmd: any)
mcp-server/src/skills/verified/buildSomething.ts:378
↓ 1 callers
Function
exploreNearby
( bot: Bot, options: IExploreNearbyOptions = {}, )
mcp-server/src/skills/library/exploreNearby.ts:26
↓ 1 callers
Function
findClosestPlayerName
( bot: Bot, options: IFindClosestPlayerNameOptions, )
mcp-server/src/skills/library/findClosestPlayerByName.ts:40
↓ 1 callers
Function
findEntityByName
( bot: Bot, params: IFindEntityByNameParams, )
mcp-server/src/skills/library/goToPerson.ts:177
↓ 1 callers
Function
findExpandableWater
* Find expandable water blocks. * @param {Bot} bot - The Mineflayer bot instance. * @param {IFindExpandableWaterOptions} options - The options for f
mcp-server/src/skills/verified/prepareLandForFarming.ts:291
↓ 1 callers
Function
findFromVein
(bot: Bot, block: Block, maxBlocks: number, maxDistance: number, floodRadius: number)
mineflayer-collectblock/src/BlockVeins.ts:4
↓ 1 callers
Function
findLand
( bot: Bot, options: IFindLandOptions, )
mcp-server/src/skills/library/swimHelper.ts:82
↓ 1 callers
Function
findMatureCrops
( bot: Bot, options: IFindMatureCropsOptions, )
mcp-server/src/skills/verified/harvestMatureCrops.ts:91
↓ 1 callers
Function
findNearbyFurnaces
(bot: Bot, options: IFindNearbyFurnacesOptions)
mcp-server/src/skills/verified/retrieveItemsFromNearbyFurnace.ts:79
↓ 1 callers
Function
findSuitableSurfaceHeight
( bot: Bot, x: number, startY: number, z: number, )
mcp-server/src/skills/library/exploreNearby.ts:93
↓ 1 callers
Function
findSurface
( bot: Bot, options: IFindSurfaceOptions, )
mcp-server/src/skills/library/swimHelper.ts:41
↓ 1 callers
Function
findWoodInInventory
(bot: Bot)
mcp-server/src/skills/library/craftAnItem.ts:556
↓ 1 callers
Function
generateCraftableItems
(bot: Bot)
mcp-server/src/skills/library/generateCraftableItems.ts:10
↓ 1 callers
Method
getActiveBot
()
mcp-server/src/botManager.ts:103
next →
1–100 of 268, ranked by callers