Research Effect Command - gisellevonbingen-Minecraft/MineColonies_Tweaks GitHub Wiki
Can define command to custom research in datapack.
That command will be executed when research is completed.
Please see first: https://minecolonies.com/wiki/tutorials/datapacks/research
Key | Type | Default Value | Description |
---|---|---|---|
command | String | null |
Command to execute. If this is skipped, don't executes command. |
offlineRunnable | Boolean | false |
Whether can execute when colony master is offline.true : executed command immediately.false : executed when colony master be online. |
Can enter placeholder at executing command.
When command executing, they will be replaced to real value.
Placeholder should wrapped by < > to use.
Key | Value | Example |
---|---|---|
effect | Effect's id | your_namespace:effects/example |
ownerName | Colony Master's nickname | USERNAME |
ownerUUID | Colony Master's UUID | XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX |
prev | Effect's strength before research complete | Less than next 0.0, 10.0, etc. |
next | Effect's strength after research complete | Bigger than prev 10.0, 20.0, etc. |
delta | Amount of Effect's strength change |
prev - next
|
data/your_namespace/researches/effects/example.json
{
"effect": true,
"name": "Effect Test Name",
"subtitle": "Effect Test Subtitle",
"levels": [
10,
20,
30
],
"command": "msg @a <ownerName> - <effect>: <prev> -> <next>"
}
data/your_namespace/researches/branch_example/research_example.json
{
"name": "Test - Name",
"subtitle": "Test - Subtitle",
"branch": "your_namespace:branch_example",
"researchLevel": 1,
"effects": [
{
"your_namespace:effects/example": 1
}
]
}
Mod Name | Command | Description |
---|---|---|
- | give <ownerName> minecraft:diamond 1 |
Gives rewards. |
AStages | astages add <ownerName> STAGE_NAME |
Unlock player's stage. |