Economy System
Integrate kits with an economy system for purchasable kits.
Create kits that players can redeem for items, tools, and resources. Perfect for server rewards, starter kits, or purchasable item sets.
Use functions to create reusable kits:
// Create starter.mcfunction
give @s minecraft:stone_sword 1
give @s minecraft:stone_pickaxe 1
give @s minecraft:stone_axe 1
give @s minecraft:bread 16
tellraw @s {"text":"Starter kit redeemed!","color":"green"}
Then create an alias:
/cmd add starter function:starter
Use scoreboard objectives for cooldown tracking:
/cmd add kit_starter execute unless score @s kit_starter_cooldown matches 1.. run function:starter && scoreboard players set @s kit_starter_cooldown 24000
Restrict kits to certain players:
/cmd add vip_kit execute if entity @s[tag=vip] run function:vip_kit || tellraw @s {"text":"You need VIP to use this kit!","color":"red"}
// In syntax.json
{
"kit": {
"pattern": "/kit ",
"description": "Redeem a kit by name"
}
}
// In aliases.json
{
"kit_starter": "function:starter",
"kit_tools": "function:tools",
"kit_food": "function:food"
}
Integrate kits with an economy system for purchasable kits.
Learn how to create the function files used in kits.
Use custom syntax for dynamic kit selection.