-
Notifications
You must be signed in to change notification settings - Fork 0
/
presets.json
103 lines (100 loc) · 2.06 KB
/
presets.json
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{
"rotate": {
//Rotate around vertical axis
"y-axis": {
"description": {
"properties": {
"hubgen:rotate-y": [2, 3, 4, 5]
}
},
"components": {
"minecraft:on_player_placing": {
"event": "hubgen:on_place_rotate_y"
}
},
"events": {
"hubgen:on_place_rotate_y": {
"sequence": [{
"set_block_property": {
"hubgen:rotate-y": "(query.cardinal_facing_2d)"
}
}]
}
},
"permutations": [{
//North
"condition": "query.block_property('hubgen:rotate-y') == 2",
"components": {
"minecraft:rotation": [0, 0, 0]
}
},
{
//South
"condition": "query.block_property('hubgen:rotate-y') == 3",
"components": {
"minecraft:rotation": [0, 180, 0]
}
},
{
//West
"condition": "query.block_property('hubgen:rotate-y') == 4",
"components": {
"minecraft:rotation": [0, 90, 0]
}
},
{
//East
"condition": "query.block_property('hubgen:rotate-y') == 5",
"components": {
"minecraft:rotation": [0, 270, 0]
}
}
]
}
},
"bright_and_slippery": {
"minecraft:block_light_emission": 0.8,
"minecraft:friction": 1
},
"emit_particles_when_walked_on": {
"common": {
"components": {
"minecraft:on_step_on": {
"condition": "1",
"event": "hubgen:on_step_on",
"target": "player"
}
}
},
"lava_particle": {
"events": {
"hubgen:on_step_on": {
"run_command": {
"command": [
"particle minecraft:lava_particle\t~~~",
"particle minecraft:lava_particle\t~~~",
"particle minecraft:lava_particle\t~~~",
"particle minecraft:lava_particle\t~~~"
],
"target": "self"
}
}
}
},
"totem_particle": {
"events": {
"hubgen:on_step_on": {
"run_command": {
"command": [
"particle minecraft:totem_particle\t~~~",
"particle minecraft:totem_particle\t~~~",
"particle minecraft:totem_particle\t~~~",
"particle minecraft:totem_particle\t~~~"
],
"target": "self"
}
}
}
}
}
}