Date: 2023/05/29 09:25:09 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
kohlkopf:
type: world
events:
on player right clicks coarse_dirt with:kohlkopf_samen:
- define location <context.location>
- take item:kohlkopf_samen quantity:1
- spawn armor_stand[visible=false] <[location].add[0.5,-0.2,0.5]> save:kohlkopf_1
- define kohlkopf_eins <entry[kohlkopf_1].spawned_entity>
- flag <[kohlkopf_eins]> kohlkopf_eins:++
- equip <[kohlkopf_eins]> head:kohlkopf1
- adjust <[kohlkopf_eins]> gravity:false
- wait 2
- define kohlda1 <[kohlkopf_eins].location.find_entities[entity_flagged:kohlkopf_eins].within[2]>
- chunkload <[location]> duration:1s
- if !<[kohlda1].is_empty>:
- remove <[kohlkopf_eins]>
- spawn armor_stand[visible=false] <[location].add[0.5,-0.2,0.5]> save:kohlkopf_2
- define kohlkopf_zwei <entry[kohlkopf_2].spawned_entity>
- flag <[kohlkopf_zwei]> kohlkopf_zwei:++
- equip <[kohlkopf_zwei]> head:kohlkopf2
- adjust <[kohlkopf_zwei]> gravity:false
- wait 2
- define kohlda2 <[kohlkopf_zwei].location.find_entities[entity_flagged:kohlkopf_zwei].within[2]>
- chunkload <[location]> duration:1s
- if !<[kohlda2].is_empty>:
- remove <[kohlkopf_zwei]>
- spawn armor_stand[visible=false] <[location].add[0.5,-0.2,0.5]> save:kohlkopf_3
- define kohlkopf_drei <entry[kohlkopf_3].spawned_entity>
- flag <[kohlkopf_drei]> kohlkopf_drei:++
- equip <[kohlkopf_drei]> head:kohlkopf3
- adjust <[kohlkopf_drei]> gravity:false
on player right clicks entity_flagged:kohlkopf_drei:
- define kohl_loc <context.entity.location>
- remove <context.entity>
- drop <[kohl_loc].add[0,1,0]> kohlkopf_samen quantity:1
- ~discordmessage id:gemmeria channel:1112652558020907038 "<player.name> hat Kohlkopf geerntet bei: <[kohl_loc].formatted>"
- random:
- drop <[kohl_loc].add[0,1,0]> kohl quantity:1
- drop <[kohl_loc].add[0,1,0]> kohl quantity:2