[PECA] Player Extend Carpet Addition
This mod is an extension for Carpet Mod that significantly enhances the functionality of working with game bots (artificial players). The modification adds advanced tools for group bot management, their saving, and action automation.
Group Bot Management
The /playerGroup command allows creating and managing bot groups. To start working, you need to create a group using the command /playerGroup [group_name] spawn [number_of_bots]. This will create the specified number of bots with names in the format "group_name_bot_number".
Formation Setup
One of the key features is the ability to create bots in various formations:
- column - column formation
- columnFold - folding column (multiple bots in one block)
- row - row formation
- rowFold - folding row
- quadrangle - rectangular formation
Usage examples:
# Creating a group of 10 bots in a row
/playerGroup bot spawn 10 formation row
# Creating a group of 9 bots in a rectangle with 3 rows
/playerGroup bot spawn 9 formation quadrangle 3
# Creating a group with 3-block intervals between bots
/playerGroup bot spawn 9 formation quadrangle 3 interstice 3
Bot Saving and Management
The system allows saving bot groups to an SQLite database (pecaPlayer.db file in the world folder). The command /playerGroup [group_name] save saves the current group.
Action Execution
Saved groups can be used to perform sequential actions:
# Adding "look up" action to all bots in the group
/playerGroup id 1 execute add "/player %s look up"
# Changing a specific action for a particular bot
/playerGroup id 1 execute set 2 "/player %s look up" index 5
Advanced Bot Management
The /playerManage command provides tools for saving and managing individual bots:
- Saving current player data as a bot
- Searching saved bots by various criteria
- Managing actions of saved bots
Bot Search
# Search by name
/playerManage find [name]
# Search by game mode
/playerManage find gamemode [mode]
# Search by coordinates within 50 blocks radius
/playerManage find pos ~ ~ ~ inside 50
Action Automation
The /playerAuto command allows automating various tasks:
Item Sorting
# Sorting bot's inventory
/playerAuto bot_1 sort minecraft:diamond
Crafting
# Creating a piston
/playerAuto bot_1 craft minecraft:oak_planks minecraft:oak_planks minecraft:oak_planks minecraft:cobblestone minecraft:iron_ingot minecraft:cobblestone minecraft:cobblestone minecraft:redstone minecraft:cobblestone
Trading
# Automatic trading with villagers
/playerAuto bot_1 trading
Settings and Features
All mod settings are available through the standard Carpet Mod menu with the /carpet command in the [PECA] section.
