Basic Kit
The simplest reward menu shape: a description card, a claim button, and a close button. Click the claim button to get a bundle of items, some XP, a sound effect, and a confirmation message.
What it teaches
Section titled “What it teaches”- Multiple actions in sequence inside one
click { actions { ... } }block - The list-form of
itemAdd:to give several items at once giveXpaction for vanilla XP points- Delayed
closeMenu: 20(close after 20 ticks = 1 second, so the player sees the success message before the menu closes)
How it works
Section titled “How it works”The claim button’s click block runs five actions in order:
itemAdd: [ ... ]- the list form lets multiple items go into the player’s inventory in one shot.giveXp: 50- adds 50 XP via the configured levels provider (vanilla XP by default).sound: ${successSound}- plays a success chime from shared templates.message:- confirmation in chat.closeMenu: 20- close after 20 ticks (1 second). Using a number instead oftrueadds the delay so the player perceives the actions completing.
There are no cooldown checks here. Anyone can keep clicking and keep getting kits. To gate this with a cooldown, see the daily kit example which adds a setVarp timestamp + an if rule comparing it to the current time.
Customizing
Section titled “Customizing”Swap any item in the itemAdd list with the materials you want. Add as many entries as you need. The count: field is optional - default is 1.
For enchanted items, an enchantments field on the item works too:
itemAdd: [ { material: DIAMOND_SWORD enchantments { sharpness: 5 unbreaking: 3 } }]Try it
Section titled “Try it”After installing the example pack:
- Drop the bundle into
plugins/AbstractMenus/menus/example/. /am reload.- Type
/ame_kitin-game.