- Add auto completion for selection menus by commands
- Add
Requirementsoption which uses JavaScript to check the players - Change the structure of two options,
PrimaryActionandSecondaryAction
VirtualChest v0.4.x is not compatible with the configuration files based on v0.3.x, and if you are able to upgrade your configurations to v0.4.x, there are some changes which should be mentioned:
Position-X-XbecomesSlotXnow, andPosition-1-1corresponds withSlot0,Position-9-6corresponds withSlot53, etc.RequiredBalances,RequiredPermissions, andRejectedPermissionsare not available now, which should be replaced byRequirementsPrimaryRequiredItem,PrimaryAction, andKeepOpenare combined (altogether withSecondaryRequiredItemandSecondaryAction), and they are all available in thePrimaryActionsection. For example:
// in v0.3.9
KeepOpen = true
PrimaryAction = "cost-item: 9; cost: -8"
PrimaryRequiredItem {
ItemType = "minecraft:wheat"
Count = 9
UnsafeDamage = 0
}
// in v0.4.0
PrimaryAction {
Command = "cost-item: 9; cost: -8"
HandheldItem {
ItemType = "minecraft:wheat"
Count = 9
UnsafeDamage = 0
}
KeepInventoryOpen = true
}
For more information, please refer to the wiki.