Date: 2014/07/02 13:27:06 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
47
48
49
'Test Script for gathering':
type: interact
steps:
'1':
click trigger:
script:
- engage
- chat "Can you get me 5 burnt logs"
- flag gathering_burnt_logs
- zap step:2
- disengage
'2':
click trigger:
script:
- engage
- if "<player.inventory.contains[i@burnt log].qty[5]>" && "<flag.p:gathering_burnt_logs>"
{
- give i@diamond qty:5}
else {
- chat "Please bring me back burnt logs for your reward."
}
- disengage
'3':
click trigger:
script:
- engage
- chat "Thank you for the burnt logs from before."
- disengage
"burntlog":
type: item
material: 17
display name: "<&c>Burnt Log"
lore:
- Still Warm
'BurntLogWorld':
type: world
events:
on player left clicks log with air in TestCube:
#- replace log with 0
- give "item:burntlog" qty:1
'WorldLoads':
type: world
events:
on server start:
- note cu@0,0,0,world|1,1,1,world as:TestCube