
ModLGPL-3.0-or-later
deicore
This is a Fabric mod for Minecraft, which adds commands such as WorldVar and some APIs
33
Downloads
0
Followers
5 months ago
Updated
📦
2
Versions
📖About deicore
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.
| Subcommand | Description | Command Format | Parameter Explanation | Execution Feedback | Return Value Explanation |
|---|---|---|---|---|---|
| new | Create a new integer-type world variable | /world_var new <VarName> <Value> |
1. VarName: String type, the name of the new variable 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> |
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 <VarName> <Value> |
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 <VarName> <NewValue> |
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> |
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 <VarName> <SubtractValue> |
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 |