Date: 2019/09/07 20:19:17 UTC-07:00
Type: Denizen Script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
testshop:
type: command
name: testshop
description: A Shop meant for testing.
usage: /testshop <<>myArg1<>>
permission: testshop.permission.node
permission message: You do not have permission to use this command! <permission>
script:
- inventory open d:MyInventory
MyInventory:
type: inventory
title: Spawner shop
size: 54
slots:
- "[i@Spawnershop_slot_1] [] [] [] [] [] [] [] []"
- "[] [] [] [] [] [] [] [] []"
- "[] [] [] [] [] [] [] [] []"
- "[] [] [] [] [] [] [] [] []"
- "[] [] [] [] [] [] [] [] []"
- "[] [] [] [] [] [] [] [] []"
Spawnershop_slot_1:
type: item
material: red_wool
display name: Click Me
Spawnershop_menu_handler:
type: world
events:
on player clicks in MyInventory:
- determine cancelled
on player drags in MyInventory:
- determine cancelled
on player clicks Spawnershop_slot_1 in MyInventory:
- money take quantity:100 from:<player>
- give red_wool
- narrate "<&a>$100 has been taken out of your balance, your current balance is <player.money.formatted>."