deicore
作者:rebot | 分类:模组
Minecraft 版本: 1.21 1.21.1
平台: fabric
标签: utility
deicore
Q&A
Q: What's this is deicore?
A: deicore is a support library, and It has WorldVar and other functions too.
Q: What's API has functions?
A: API has Configuration Manager, Mod Check and other functions.
Q: What "WorldVar" can do?
A: He can create a variable that takes effect throughout the entire game, similar to a scoreboard.
2. **Value**: Integer type, the initial value of the new variable | Success: Returns the message "deicore.command.world_var.new_success" with the variable name and initial value | Returns 1 by default | | get | Query the value of a specified world variable | `/world_var get ` | **VarName**: String type, the name of the variable to query | 1. Success: Returns the message "deicore.command.world_var.get_success" with the variable name and its value
2. Failure - Variable not found: Returns the message "deicore.command.world_var.not_found" with the variable name
3. Failure - Format error: Returns the message "deicore.command.world_var.format_error"
4. Failure - Unknown error: Returns the message "deicore.command.world_var.unknown_error" | 1. Success: Returns the integer value of the queried variable
2. Returns 0 in all failure scenarios | | add | Add a specified value to an existing integer world variable | `/world_var add ` | 1. **VarName**: String type, the name of the variable to add to
2. **Value**: Integer type, the value to be added | 1. Success: Returns the message "deicore.command.world_var.add_success" with the variable name, the added value, and the value after addition
2. Failure - Variable not found: Returns the message "deicore.command.world_var.not_found" with the variable name
3. Failure - Format error: Returns the message "deicore.command.world_var.format_error" | 1. Success: Returns the integer value of the variable after addition
2. Returns 0 in all failure scenarios | | set | Modify the value of an existing world variable to a specified integer | `/world_var set ` | 1. **VarName**: String type, the name of the variable to modify
2. **NewValue**: Integer type, the new value for the variable | 1. Success: Returns the message "deicore.command.world_var.set_success" with the variable name and new value
2. Failure - Variable not found: Returns the message "deicore.command.world_var.not_found" with the variable name | 1. Success: Returns the new integer value set
2. Returns 0 on failure | | remove | Delete a specified world variable | `/world_var remove ` | **VarName**: String type, the name of the variable to delete | 1. Success: Returns the message "deicore.command.world_var.remove_success" with the variable name
2. Failure - Variable not found: Returns the message "deicore.command.world_var.not_found" with the variable name | 1. Returns 1 on success
2. Returns 0 on failure | | subtract | Subtract a specified value from an existing integer world variable | `/world_var subtract ` | 1. **VarName**: String type, the name of the variable to subtract from
2. **SubtractValue**: Integer type, the value to be subtracted | 1. Success: Returns the message "deicore.command.world_var.subtract_success" with the variable name, the subtracted value, and the value after subtraction
2. Failure - Variable not found: Returns the message "deicore.command.world_var.not_found" with the variable name
3. Failure - Format error: Returns the message "deicore.command.world_var.format_error" | 1. Success: Returns the integer value of the variable after subtraction
2. Returns 0 in all failure scenarios |
请登录后举报
暂无评论,抢个沙发吧~