Date: 2018/01/08 21:22:30 UTC-08:00
Type: Denizen Script
kitworld:
type: command
debug: false
name: kit
usage: /kit
description: Opens kit menu
script:
- inventory open d:in@Kit
Kit:
type: inventory
title: Kits
size: 27
slots:
- " [i@Food] [] [] [] [] [] [] [] []"
- " [] [] [] [] [] [] [] [] []"
- " [] [] [] [] [] [] [] [] []"
food:
type: item
material: grilled_pork
display name: Nom nom
food_handler:
type: world
events:
on player clicks in Kit:
- determine cancelled
on player drags in Kit:
- determine cancelled
on player clicks food in Kit:
- if <player.has_flag[foodcd]> {
- narrate "This kit is still cooling down!"
- queue clear
}
- give i@Grilled_Pork
- flag player foodcd duration:12h