Date: 2019/08/18 15:32:52 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
40
41
42
43
44
45
46
enchant_menu:
type: inventory
debug: true
title: Commands
size: 27
slots:
- "[] [] [] [] [] [] [] [] []"
- "[i@enchant_menu_slot10] [] [] [] [] [] [] [] []"
- "[] [] [] [] [] [] [] [] []"
enchant_menu_slot10:
type: item
debug: true
material: furnance
display name: Set Home
lore:
-'Buy Access To Set 3x Homes.'
enchant_menu_handler:
type: world
debug: true
events:
on player clicks in enchant_menu:
- determine cancelled
on player drags in enchant_menu:
- determine cancelled
on player clicks enchant_menu_slot10 in enchant_menu:
- if <player.money> >= 40000:
- if PlayerTag.has_permission[essentials.sethome]:
- inventory set d:<context.inventory> o:i@red_stained_glass_pane[display_name=Already<&sp>bought.] slot:10
- else:
- execute [as_server] <manuaddp essentials.sethome> (silent)
- take money quantity:40000
- playsound <player> sound:ENTITY_EXPERIENCE_ORB_PICKUP
- else:
- inventory set d:<context.inventory> o:i@red_stained_glass_pane[display_name=Insufficient<&sp>funds.] slot:10
commandstobuy_command:
type: command
debug: true
name: commandstobuy
usage: /commands
description: Open's Commands.
script:
- note in@enchant_menu as:EnchantInv
- inventory open d:in@EnchantInv