your current location:首页 > news>Component API: Reserve controller upgrade [OC] Open Computer (Open Computers) Minecraft Game

Component API: Reserve controller upgrade [OC] Open Computer (Open Computers) Minecraft Game

2024-12-10 17:55:53|Myriagame |source:minecraft skins

This document is an element API document upgraded by the official wiki storage tank controller.

Due to the slow access to the official Wiki, it was moved to check.

Component name:

 tank_controller 

Return function:

 GettankCapAcity (SIDE: Number): Number or Nil [, String] 

Get the capacity of the storage tank in the specified direction of the robot.Specify the selected storage tank inside the robot.

 Gettanklevel (size: number): number or nil [, string] 

Get the fluid stock in the storage storage storage in the direction of the robot.

 Getfluidintank (SIDE: Number): Table 

Get the information of the fluid in the storage storage in the designated direction of the robot.

Note: Sides.back has been abandoned, please replace it with getfluidinINIndernaltank ().

 GetfluidinINIndanaltank (slot): table 

Get the specified slot position in the robotic item bar or the currently selected slot position.

 DRAIN ([amount: number]): Boolean 

From the storage tank in the currently selected slot of the item bar, transfer the fluid to the current selected storage tank of the robot.If the amount of fluid generated by the storage tank in the item bar is too large, the storage tank of the robot (such as the barrel can only produce 1000MB of fluid) will not perform any operation and will not lose the fluid.

 Fill ([amount: number]): Boolean 

From the current selected storage tank of the robot, the storage tank is transferred to the currently selected tank to transfer the fluid.If the given transfer amount is too small (for example, at least 1000MB fluid is required to a barrel), it will not perform any operation and will not lose the fluid.

 GettankCapacityIinslot (slot: number): number 

Get the capacity of the storage tank specified or currently selected in the robotic item bar.

 Gettanklevelinslot (slot: number): number 

Get the fluid stock specified or currently selected in the robotal bar.

 Getfluidintankinslot (slot: number): table 

Get the information specified or currently selected in the tank in the grocery bar in the robotic item bar.