2024-12-15 01:17:18|Myriagame |source:minecraft skins
Module introduction
This module implements a module -level automation script similar to the "keys".More stable and efficient than ordinary keys!
Can make players become automatic robots, automatically complete tasks with high duplication rate and boring, liberate hands.
The module creates a lightweight script language YABScript dynamically calling Baritone and multiple automated operations built in the module.
The use of YABSCRIPT can be achieved: automatic collection of resources, automatic storage and acquisition of materials, automatic collection of drops, automatic cultivation, automatic path search, automatic right -click, etc.
Yabscript script language introduction
YABScript is a script language of lightweight, loop control, variable definition (currently unstable) script language implemented by this module.
With Baritone with Baritone, multiple automated "atomic operations" such as: automatic collection, opening or closing the container (box, furnace, etc.), and automatic path search are implemented.
Using YABSCRIPT, these atomic operations can be dynamically called and combined to achieve richer and complex automated operations.
Atomic operation introduction
Atomic operation is a single automation operation such as: automatic open container, automatic way search, etc. The following is all available atomic operations currently available:
Mobile objects, ITEM is the target item, the value of MoveType is Inv2Con, Con2inv, and ALL corresponding to backpack mobile containers, container mobile backpacks and backpacks and containers, including backpacks and containers
Number refers
0.1GetBlockBlock Count obtained (excavated) Blockd blocks 0.1GetDropITEMITEM RANGE pick up all Item0.1CloseBlock interface 0.1whilestarttimes wh in the range Range grange grange ILEID cycle times times, WhileID is the end of the cycling ID0.1whilendwhileid loop IDGrammar 0.1farmfarmitem Farmrange automatically plant.Use FARMITEM to plant 0.2 in the range of Farmrange
safemode
TRUE/FALSE opens or close the security mode. In the security mode, players will not destroy the block and placement of the box 0.2sendMessageMessage to send a chat information MESSAGE0.2sendCommandCommand to send a chat command. ommanTPA0.2
movespeedOption
WALK/RUN sets the movement speed, WALK is normal movement, RUN is a running 0.2lookatx y z to look at the center point of the coordinate X Y Z block 0.2useItemtargetITITEM COUNT 0.2
AttackBlock
X Y Z Attack X Y Z coordinate center
Special attention:
The target positions of Moveto and MoveForward cannot be non -complete blocks (pedals, cultivated land, soul sand, stairs, fences, fluids, etc.).
Moveto and MoveForward atomic operation detection operations are to determine whether the player Blockpos is the same as the target blockpos.
The GetBlockPOS function provided by the PlayERENTITY class in the MC is an error (1 square) when the Blockpos obtained by the player at the foot of the player.
This can cause the target position of Moveto and MoveForwards to be unable to determine whether the operation is completed for the next atomic operation.
Script example
Automatic wood acquisition and items storage
Script analysis
#The beginning is annotation, and it does not actually run.
This script calls the #Mine command of Baritone to get the ID of the ID (getBlock atom operation) with the ID of the ID, and the situation of leakage and picking items may occur during the excavation block (especially on the server with poor network conditions), soAfter collecting 10 square blocks, call the getdropitem atomic operation to collect the drop -off of the surrounding 10 grid.
Repeat the above operations 12 times, then move to the box (x = 121 y = 68 z = 83) Open the box (x = 121 y = 68 z = 84), wait for 5GT (waiting server response), and then call moveItem will collect it will be collected.Move all the squares to the box and finally close the box.
Repeat all the processes 10 times above.
Move forward automatically
Whilestart 50 1 MoveForward 5 0 0 WAIT 20 MoveForward-5 0 0whileend 1
Script analysis
This script will allow players to move 5 grids in the direction of the X axis, then wait for 1S (20GT), and then move 5 grids in the opposite direction.
Repeat the above operation 50 times.
Tutorial
When running the module for the first time, create a folder yab_scripts in the game directory, and store the written script with any suffix (recommended as .yab) and store it under the yab_scripts folder.
Enter /yab_script <scripting file name> load script in the game. Note that the file name includes suffixes, such as /yab_script auto_farm.yab.
If no errors are displayed, you can enter /yab_robot toGle to turn on the automatic robot. At this time, you will run the script.
If you want to end the script in the middle of the script, enter /yab_robot toGle can turn off the robot to stop the script operation.
Note: Do not quit the game during the script, which will cause the game to collapse!Wait for all the operations of the script to complete, or enter /yab_robot toggle to close the robot to stop the script operation, and then exit the game.Definition of variables for scripts
You can define the variable according to the following example and use the variable:
$ Startx = 0 $ Starty = 0 $ Startz = 0moveto $ Startx $ Startz
Start with the $ symbol, and then connect the variable name (sensitive and lower case, the names that cannot be operated by atoms such as Moveto, OpenBlock) and variable values.
Use variables to replace the parameters of the atomic operation to a variable name.
Note: Variable definition and use have been realized, but it is currently not stable.To prevent bad situations such as game collapse, the module is closed by default.
In addition to other statements, MCMOD.CN, all open public editing content uses the BY-NC-SA 3.0 protocol.
National Service DNF Dark Ni
2025-01-28 09:19:27The new screenshot of the be
2025-01-28 09:18:57The 15th anniversary wallpap
2025-01-28 09:18:273DM Xuanyuan Sinicization Gr
2025-01-28 09:17:57French magazine is the first
2025-01-28 09:17:27The sneak game "Republic" wi
2025-01-28 09:16:57The story between humans and
2025-01-28 09:16:27Capture "Trinity 3: Artifact
2025-01-28 09:15:27Wind direction change "Myste
2025-01-28 09:14:57DICE's new project "Dream" w
2025-01-28 09:14:27Pirate Minecraft Skins
Minecraft Skins
2024-12-10 04:11:27Pirate Minecraft Skins
Minecraft Skins
2024-12-10 04:11:26Master Minecraft Skins
Minecraft Skins
2024-12-10 04:11:25King Minecraft Skins
Minecraft Skins
2024-12-10 04:11:25Guide Minecraft Skins
Minecraft Skins
2024-12-10 04:11:24Dark Knight Minecraft Skins
Minecraft Skins
2024-12-10 04:11:23Sparta Minecraft Skins
Minecraft Skins
2024-12-10 04:11:23Moncraft Skins of the War
Minecraft Skins
2024-12-10 04:11:22Red Witch Minecraft Skins
Minecraft Skins
2024-12-10 04:11:22Golden Cavaliers Minecraft S
Minecraft Skins
2024-12-10 04:11:22