pumpkin-api-py 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- componentize_py_async_support/__init__.py +570 -0
- componentize_py_async_support/futures.py +149 -0
- componentize_py_async_support/streams.py +345 -0
- componentize_py_runtime.pyi +40 -0
- componentize_py_types.py +32 -0
- poll_loop.py +440 -0
- pumpkin_api/__init__.py +41 -0
- pumpkin_api/build.py +68 -0
- pumpkin_api/impl.py +355 -0
- pumpkin_api/wit/advancement.wit +41 -0
- pumpkin_api/wit/attributes.wit +56 -0
- pumpkin_api/wit/bedrock-packets.wit +1709 -0
- pumpkin_api/wit/biomes.wit +72 -0
- pumpkin_api/wit/block-entity.wit +423 -0
- pumpkin_api/wit/boss-bar.wit +83 -0
- pumpkin_api/wit/command.wit +244 -0
- pumpkin_api/wit/common.wit +261 -0
- pumpkin_api/wit/context.wit +61 -0
- pumpkin_api/wit/damage-types.wit +57 -0
- pumpkin_api/wit/data-components.wit +117 -0
- pumpkin_api/wit/datapack.wit +54 -0
- pumpkin_api/wit/display.wit +171 -0
- pumpkin_api/wit/enchantments.wit +102 -0
- pumpkin_api/wit/entity-statuses.wit +68 -0
- pumpkin_api/wit/entity-types.wit +164 -0
- pumpkin_api/wit/entity.wit +1 -0
- pumpkin_api/wit/event.wit +2435 -0
- pumpkin_api/wit/forms.wit +51 -0
- pumpkin_api/wit/game-events.wit +67 -0
- pumpkin_api/wit/game-rules.wit +69 -0
- pumpkin_api/wit/gui.wit +39 -0
- pumpkin_api/wit/i18n.wit +21 -0
- pumpkin_api/wit/inventory.wit +78 -0
- pumpkin_api/wit/ipc.wit +7 -0
- pumpkin_api/wit/item-stack.wit +104 -0
- pumpkin_api/wit/java-dialogs.wit +155 -0
- pumpkin_api/wit/java-packets.wit +1838 -0
- pumpkin_api/wit/log.wit +14 -0
- pumpkin_api/wit/metadata.wit +19 -0
- pumpkin_api/wit/particles.wit +131 -0
- pumpkin_api/wit/permission.wit +46 -0
- pumpkin_api/wit/player.wit +1432 -0
- pumpkin_api/wit/plugin.wit +121 -0
- pumpkin_api/wit/potions.wit +52 -0
- pumpkin_api/wit/recipe.wit +88 -0
- pumpkin_api/wit/scheduler.wit +24 -0
- pumpkin_api/wit/scoreboard.wit +111 -0
- pumpkin_api/wit/screens.wit +31 -0
- pumpkin_api/wit/server.wit +286 -0
- pumpkin_api/wit/sounds.wit +1987 -0
- pumpkin_api/wit/statistics.wit +94 -0
- pumpkin_api/wit/status-effect.wit +54 -0
- pumpkin_api/wit/text.wit +68 -0
- pumpkin_api/wit/uuid.wit +16 -0
- pumpkin_api/wit/world.wit +1050 -0
- pumpkin_api_py-0.1.0.dist-info/METADATA +53 -0
- pumpkin_api_py-0.1.0.dist-info/RECORD +108 -0
- pumpkin_api_py-0.1.0.dist-info/WHEEL +4 -0
- pumpkin_api_py-0.1.0.dist-info/entry_points.txt +2 -0
- pumpkin_api_py-0.1.0.dist-info/licenses/LICENSE-APACHE +176 -0
- pumpkin_api_py-0.1.0.dist-info/licenses/LICENSE-MIT +21 -0
- wit_world/__init__.py +114 -0
- wit_world/exports/__init__.py +19 -0
- wit_world/exports/metadata.py +24 -0
- wit_world/imports/__init__.py +0 -0
- wit_world/imports/advancement.py +56 -0
- wit_world/imports/attributes.py +66 -0
- wit_world/imports/bedrock_packets.py +2413 -0
- wit_world/imports/biomes.py +81 -0
- wit_world/imports/block_entity.py +1353 -0
- wit_world/imports/boss_bar.py +137 -0
- wit_world/imports/command.py +705 -0
- wit_world/imports/common.py +335 -0
- wit_world/imports/context.py +91 -0
- wit_world/imports/damage_types.py +66 -0
- wit_world/imports/data_components.py +126 -0
- wit_world/imports/datapack.py +124 -0
- wit_world/imports/display.py +295 -0
- wit_world/imports/enchantments.py +129 -0
- wit_world/imports/entity_statuses.py +77 -0
- wit_world/imports/entity_types.py +173 -0
- wit_world/imports/event.py +3558 -0
- wit_world/imports/forms.py +98 -0
- wit_world/imports/game_events.py +76 -0
- wit_world/imports/game_rules.py +88 -0
- wit_world/imports/gui.py +81 -0
- wit_world/imports/i18n.py +35 -0
- wit_world/imports/inventory.py +159 -0
- wit_world/imports/ipc.py +20 -0
- wit_world/imports/item_stack.py +206 -0
- wit_world/imports/java_dialogs.py +208 -0
- wit_world/imports/java_packets.py +3560 -0
- wit_world/imports/logging.py +30 -0
- wit_world/imports/particles.py +140 -0
- wit_world/imports/permission.py +71 -0
- wit_world/imports/player.py +1753 -0
- wit_world/imports/potions.py +61 -0
- wit_world/imports/recipe.py +120 -0
- wit_world/imports/scheduler.py +44 -0
- wit_world/imports/scoreboard.py +167 -0
- wit_world/imports/screens.py +40 -0
- wit_world/imports/server.py +493 -0
- wit_world/imports/sounds.py +1996 -0
- wit_world/imports/statistics.py +103 -0
- wit_world/imports/status_effect.py +63 -0
- wit_world/imports/text.py +156 -0
- wit_world/imports/uuid.py +36 -0
- wit_world/imports/world.py +1640 -0
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
package pumpkin:plugin@0.1.0;
|
|
2
|
+
|
|
3
|
+
interface data-components {
|
|
4
|
+
enum data-component {
|
|
5
|
+
custom-data,
|
|
6
|
+
max-stack-size,
|
|
7
|
+
max-damage,
|
|
8
|
+
damage,
|
|
9
|
+
unbreakable,
|
|
10
|
+
use-effects,
|
|
11
|
+
custom-name,
|
|
12
|
+
minimum-attack-charge,
|
|
13
|
+
damage-type,
|
|
14
|
+
item-name,
|
|
15
|
+
item-model,
|
|
16
|
+
lore,
|
|
17
|
+
rarity,
|
|
18
|
+
enchantments,
|
|
19
|
+
can-place-on,
|
|
20
|
+
can-break,
|
|
21
|
+
attribute-modifiers,
|
|
22
|
+
custom-model-data,
|
|
23
|
+
tooltip-display,
|
|
24
|
+
repair-cost,
|
|
25
|
+
creative-slot-lock,
|
|
26
|
+
enchantment-glint-override,
|
|
27
|
+
intangible-projectile,
|
|
28
|
+
food,
|
|
29
|
+
consumable,
|
|
30
|
+
use-remainder,
|
|
31
|
+
use-cooldown,
|
|
32
|
+
damage-resistant,
|
|
33
|
+
tool,
|
|
34
|
+
weapon,
|
|
35
|
+
attack-range,
|
|
36
|
+
enchantable,
|
|
37
|
+
equippable,
|
|
38
|
+
repairable,
|
|
39
|
+
glider,
|
|
40
|
+
tooltip-style,
|
|
41
|
+
death-protection,
|
|
42
|
+
blocks-attacks,
|
|
43
|
+
piercing-weapon,
|
|
44
|
+
kinetic-weapon,
|
|
45
|
+
swing-animation,
|
|
46
|
+
additional-trade-cost,
|
|
47
|
+
stored-enchantments,
|
|
48
|
+
dye,
|
|
49
|
+
dyed-color,
|
|
50
|
+
map-color,
|
|
51
|
+
map-id,
|
|
52
|
+
map-decorations,
|
|
53
|
+
map-post-processing,
|
|
54
|
+
charged-projectiles,
|
|
55
|
+
bundle-contents,
|
|
56
|
+
potion-contents,
|
|
57
|
+
potion-duration-scale,
|
|
58
|
+
suspicious-stew-effects,
|
|
59
|
+
writable-book-content,
|
|
60
|
+
written-book-content,
|
|
61
|
+
trim,
|
|
62
|
+
debug-stick-state,
|
|
63
|
+
entity-data,
|
|
64
|
+
bucket-entity-data,
|
|
65
|
+
block-entity-data,
|
|
66
|
+
instrument,
|
|
67
|
+
provides-trim-material,
|
|
68
|
+
ominous-bottle-amplifier,
|
|
69
|
+
jukebox-playable,
|
|
70
|
+
provides-banner-patterns,
|
|
71
|
+
recipes,
|
|
72
|
+
lodestone-tracker,
|
|
73
|
+
firework-explosion,
|
|
74
|
+
fireworks,
|
|
75
|
+
profile,
|
|
76
|
+
note-block-sound,
|
|
77
|
+
banner-patterns,
|
|
78
|
+
base-color,
|
|
79
|
+
pot-decorations,
|
|
80
|
+
container,
|
|
81
|
+
block-state,
|
|
82
|
+
bees,
|
|
83
|
+
sulfur-cube-content,
|
|
84
|
+
lock,
|
|
85
|
+
container-loot,
|
|
86
|
+
break-sound,
|
|
87
|
+
villager-variant,
|
|
88
|
+
wolf-variant,
|
|
89
|
+
wolf-sound-variant,
|
|
90
|
+
wolf-collar,
|
|
91
|
+
fox-variant,
|
|
92
|
+
salmon-size,
|
|
93
|
+
parrot-variant,
|
|
94
|
+
tropical-fish-pattern,
|
|
95
|
+
tropical-fish-base-color,
|
|
96
|
+
tropical-fish-pattern-color,
|
|
97
|
+
mooshroom-variant,
|
|
98
|
+
rabbit-variant,
|
|
99
|
+
pig-variant,
|
|
100
|
+
pig-sound-variant,
|
|
101
|
+
cow-variant,
|
|
102
|
+
cow-sound-variant,
|
|
103
|
+
chicken-variant,
|
|
104
|
+
chicken-sound-variant,
|
|
105
|
+
zombie-nautilus-variant,
|
|
106
|
+
frog-variant,
|
|
107
|
+
horse-variant,
|
|
108
|
+
painting-variant,
|
|
109
|
+
llama-variant,
|
|
110
|
+
axolotl-variant,
|
|
111
|
+
cat-variant,
|
|
112
|
+
cat-sound-variant,
|
|
113
|
+
cat-collar,
|
|
114
|
+
sheep-color,
|
|
115
|
+
shulker-color,
|
|
116
|
+
}
|
|
117
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
package pumpkin:plugin@0.1.0;
|
|
2
|
+
|
|
3
|
+
interface datapack {
|
|
4
|
+
/// Information about a discovered or loaded datapack.
|
|
5
|
+
record datapack-info {
|
|
6
|
+
id: string,
|
|
7
|
+
name: string,
|
|
8
|
+
description: string,
|
|
9
|
+
pack-format: u32,
|
|
10
|
+
is-enabled: bool,
|
|
11
|
+
recipe-count: u32,
|
|
12
|
+
function-count: u32,
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/// Position options for enabling a datapack relative to other packs.
|
|
16
|
+
variant enable-position {
|
|
17
|
+
first,
|
|
18
|
+
last,
|
|
19
|
+
before(string),
|
|
20
|
+
after(string),
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/// Global manager for inspecting and controlling server datapacks.
|
|
24
|
+
resource datapack-manager {
|
|
25
|
+
/// Returns all known datapacks (both enabled and available/disabled).
|
|
26
|
+
list-all-packs: func() -> list<datapack-info>;
|
|
27
|
+
|
|
28
|
+
/// Returns only currently enabled datapacks.
|
|
29
|
+
list-enabled-packs: func() -> list<datapack-info>;
|
|
30
|
+
|
|
31
|
+
/// Returns available (disabled) datapacks.
|
|
32
|
+
list-available-packs: func() -> list<datapack-info>;
|
|
33
|
+
|
|
34
|
+
/// Retrieves details about a specific datapack by name or ID.
|
|
35
|
+
get-pack: func(name: string) -> option<datapack-info>;
|
|
36
|
+
|
|
37
|
+
/// Checks if a datapack is currently enabled.
|
|
38
|
+
is-enabled: func(name: string) -> bool;
|
|
39
|
+
|
|
40
|
+
/// Enables a datapack with a specific priority position.
|
|
41
|
+
enable-pack: func(name: string, position: enable-position) -> result<_, string>;
|
|
42
|
+
|
|
43
|
+
/// Disables an enabled datapack.
|
|
44
|
+
disable-pack: func(name: string) -> result<_, string>;
|
|
45
|
+
|
|
46
|
+
/// Reloads all enabled datapacks, recipes, and function tags,
|
|
47
|
+
/// synchronizes recipes with online players, and triggers `#minecraft:load`.
|
|
48
|
+
reload: func() -> result<_, string>;
|
|
49
|
+
|
|
50
|
+
/// Executes a datapack function or function tag (e.g. "namespace:fn" or "#namespace:tag").
|
|
51
|
+
/// Returns the number of commands executed.
|
|
52
|
+
execute-function: func(name: string) -> result<u32, string>;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
interface display {
|
|
2
|
+
use %world.{entity};
|
|
3
|
+
use text.{text-component};
|
|
4
|
+
use item-stack.{item-stack};
|
|
5
|
+
use uuid.{uuid};
|
|
6
|
+
|
|
7
|
+
/// Billboard rendering constraints for display entities.
|
|
8
|
+
enum billboard-mode {
|
|
9
|
+
fixed,
|
|
10
|
+
vertical,
|
|
11
|
+
horizontal,
|
|
12
|
+
center,
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/// Item display transformation modes for item display entities.
|
|
16
|
+
enum item-display-mode {
|
|
17
|
+
none,
|
|
18
|
+
thirdperson-lefthand,
|
|
19
|
+
thirdperson-righthand,
|
|
20
|
+
firstperson-lefthand,
|
|
21
|
+
firstperson-righthand,
|
|
22
|
+
head,
|
|
23
|
+
gui,
|
|
24
|
+
ground,
|
|
25
|
+
fixed,
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/// Text alignment options for text display entities.
|
|
29
|
+
enum text-alignment {
|
|
30
|
+
center,
|
|
31
|
+
left,
|
|
32
|
+
right,
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/// 3D single-precision vector.
|
|
36
|
+
record vector3f {
|
|
37
|
+
x: f32,
|
|
38
|
+
y: f32,
|
|
39
|
+
z: f32,
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/// Single-precision quaternion representing a 3D rotation.
|
|
43
|
+
record quaternionf {
|
|
44
|
+
x: f32,
|
|
45
|
+
y: f32,
|
|
46
|
+
z: f32,
|
|
47
|
+
w: f32,
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/// Transformation (translation, scale, left and right rotations) for display entities.
|
|
51
|
+
record display-transformation {
|
|
52
|
+
translation: vector3f,
|
|
53
|
+
scale: vector3f,
|
|
54
|
+
left-rotation: quaternionf,
|
|
55
|
+
right-rotation: quaternionf,
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/// Common base resource for all display entities.
|
|
59
|
+
resource display-entity {
|
|
60
|
+
from-entity: static func(entity: borrow<entity>) -> option<display-entity>;
|
|
61
|
+
get-entity: func() -> entity;
|
|
62
|
+
|
|
63
|
+
get-transformation: func() -> display-transformation;
|
|
64
|
+
set-transformation: func(transformation: display-transformation);
|
|
65
|
+
|
|
66
|
+
get-interpolation-duration: func() -> s32;
|
|
67
|
+
set-interpolation-duration: func(duration: s32);
|
|
68
|
+
|
|
69
|
+
get-interpolation-start: func() -> s32;
|
|
70
|
+
set-interpolation-start: func(delta-ticks: s32);
|
|
71
|
+
|
|
72
|
+
get-teleport-duration: func() -> s32;
|
|
73
|
+
set-teleport-duration: func(duration: s32);
|
|
74
|
+
|
|
75
|
+
get-billboard: func() -> billboard-mode;
|
|
76
|
+
set-billboard: func(mode: billboard-mode);
|
|
77
|
+
|
|
78
|
+
get-view-range: func() -> f32;
|
|
79
|
+
set-view-range: func(range: f32);
|
|
80
|
+
|
|
81
|
+
get-shadow-radius: func() -> f32;
|
|
82
|
+
set-shadow-radius: func(radius: f32);
|
|
83
|
+
|
|
84
|
+
get-shadow-strength: func() -> f32;
|
|
85
|
+
set-shadow-strength: func(strength: f32);
|
|
86
|
+
|
|
87
|
+
get-display-width: func() -> f32;
|
|
88
|
+
set-display-width: func(width: f32);
|
|
89
|
+
|
|
90
|
+
get-display-height: func() -> f32;
|
|
91
|
+
set-display-height: func(height: f32);
|
|
92
|
+
|
|
93
|
+
get-glow-color-override: func() -> s32;
|
|
94
|
+
set-glow-color-override: func(color: s32);
|
|
95
|
+
|
|
96
|
+
get-brightness: func() -> s32;
|
|
97
|
+
set-brightness: func(brightness: s32);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/// Resource specifically for Block Display entities.
|
|
101
|
+
resource block-display-entity {
|
|
102
|
+
from-entity: static func(entity: borrow<entity>) -> option<block-display-entity>;
|
|
103
|
+
get-display: func() -> display-entity;
|
|
104
|
+
get-entity: func() -> entity;
|
|
105
|
+
|
|
106
|
+
get-block-state-id: func() -> u16;
|
|
107
|
+
set-block-state-id: func(state-id: u16);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/// Resource specifically for Item Display entities.
|
|
111
|
+
resource item-display-entity {
|
|
112
|
+
from-entity: static func(entity: borrow<entity>) -> option<item-display-entity>;
|
|
113
|
+
get-display: func() -> display-entity;
|
|
114
|
+
get-entity: func() -> entity;
|
|
115
|
+
|
|
116
|
+
get-item: func() -> option<item-stack>;
|
|
117
|
+
set-item: func(item: option<item-stack>);
|
|
118
|
+
|
|
119
|
+
get-item-display-mode: func() -> item-display-mode;
|
|
120
|
+
set-item-display-mode: func(mode: item-display-mode);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/// Resource specifically for Text Display entities.
|
|
124
|
+
resource text-display-entity {
|
|
125
|
+
from-entity: static func(entity: borrow<entity>) -> option<text-display-entity>;
|
|
126
|
+
get-display: func() -> display-entity;
|
|
127
|
+
get-entity: func() -> entity;
|
|
128
|
+
|
|
129
|
+
get-text: func() -> text-component;
|
|
130
|
+
set-text: func(text: text-component);
|
|
131
|
+
|
|
132
|
+
get-line-width: func() -> s32;
|
|
133
|
+
set-line-width: func(width: s32);
|
|
134
|
+
|
|
135
|
+
get-background: func() -> s32;
|
|
136
|
+
set-background: func(color: s32);
|
|
137
|
+
|
|
138
|
+
get-text-opacity: func() -> s8;
|
|
139
|
+
set-text-opacity: func(opacity: s8);
|
|
140
|
+
|
|
141
|
+
get-shadow: func() -> bool;
|
|
142
|
+
set-shadow: func(shadow: bool);
|
|
143
|
+
|
|
144
|
+
get-see-through: func() -> bool;
|
|
145
|
+
set-see-through: func(see-through: bool);
|
|
146
|
+
|
|
147
|
+
get-default-background: func() -> bool;
|
|
148
|
+
set-default-background: func(default-background: bool);
|
|
149
|
+
|
|
150
|
+
get-alignment: func() -> text-alignment;
|
|
151
|
+
set-alignment: func(alignment: text-alignment);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/// Resource specifically for Interaction entities.
|
|
155
|
+
resource interaction-entity {
|
|
156
|
+
from-entity: static func(entity: borrow<entity>) -> option<interaction-entity>;
|
|
157
|
+
get-entity: func() -> entity;
|
|
158
|
+
|
|
159
|
+
get-width: func() -> f32;
|
|
160
|
+
set-width: func(width: f32);
|
|
161
|
+
|
|
162
|
+
get-height: func() -> f32;
|
|
163
|
+
set-height: func(height: f32);
|
|
164
|
+
|
|
165
|
+
get-response: func() -> bool;
|
|
166
|
+
set-response: func(response: bool);
|
|
167
|
+
|
|
168
|
+
get-last-attacker: func() -> option<uuid>;
|
|
169
|
+
get-last-interaction: func() -> option<uuid>;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
package pumpkin:plugin@0.1.0;
|
|
2
|
+
|
|
3
|
+
interface enchantments {
|
|
4
|
+
use text.{text-component};
|
|
5
|
+
|
|
6
|
+
/// Equipment slot where an enchantment is active.
|
|
7
|
+
enum attribute-modifier-slot {
|
|
8
|
+
any,
|
|
9
|
+
main-hand,
|
|
10
|
+
off-hand,
|
|
11
|
+
hand,
|
|
12
|
+
feet,
|
|
13
|
+
legs,
|
|
14
|
+
chest,
|
|
15
|
+
head,
|
|
16
|
+
armor,
|
|
17
|
+
body,
|
|
18
|
+
saddle,
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/// Vanilla enchantments enum.
|
|
22
|
+
enum enchantment {
|
|
23
|
+
aqua-affinity,
|
|
24
|
+
bane-of-arthropods,
|
|
25
|
+
binding-curse,
|
|
26
|
+
blast-protection,
|
|
27
|
+
breach,
|
|
28
|
+
channeling,
|
|
29
|
+
density,
|
|
30
|
+
depth-strider,
|
|
31
|
+
efficiency,
|
|
32
|
+
feather-falling,
|
|
33
|
+
fire-aspect,
|
|
34
|
+
fire-protection,
|
|
35
|
+
flame,
|
|
36
|
+
fortune,
|
|
37
|
+
frost-walker,
|
|
38
|
+
impaling,
|
|
39
|
+
infinity,
|
|
40
|
+
knockback,
|
|
41
|
+
looting,
|
|
42
|
+
loyalty,
|
|
43
|
+
luck-of-the-sea,
|
|
44
|
+
lunge,
|
|
45
|
+
lure,
|
|
46
|
+
mending,
|
|
47
|
+
multishot,
|
|
48
|
+
piercing,
|
|
49
|
+
power,
|
|
50
|
+
projectile-protection,
|
|
51
|
+
protection,
|
|
52
|
+
punch,
|
|
53
|
+
quick-charge,
|
|
54
|
+
respiration,
|
|
55
|
+
riptide,
|
|
56
|
+
sharpness,
|
|
57
|
+
silk-touch,
|
|
58
|
+
smite,
|
|
59
|
+
soul-speed,
|
|
60
|
+
sweeping-edge,
|
|
61
|
+
swift-sneak,
|
|
62
|
+
thorns,
|
|
63
|
+
unbreaking,
|
|
64
|
+
vanishing-curse,
|
|
65
|
+
wind-burst,
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/// Represents a custom enchantment definition.
|
|
69
|
+
record custom-enchantment {
|
|
70
|
+
/// Unique identifier for the enchantment (e.g. "my_plugin:lifesteal").
|
|
71
|
+
id: string,
|
|
72
|
+
/// Description or display name of the enchantment.
|
|
73
|
+
description: text-component,
|
|
74
|
+
/// Maximum level of the enchantment (e.g. 1..=10).
|
|
75
|
+
max-level: u32,
|
|
76
|
+
/// Base anvil repair/combination cost multiplier.
|
|
77
|
+
anvil-cost: u32,
|
|
78
|
+
/// Tag or item pattern for supported items (e.g. "#minecraft:enchantable/weapon").
|
|
79
|
+
supported-items: string,
|
|
80
|
+
/// Weight / rarity of the enchantment (higher = more common, default 5).
|
|
81
|
+
weight: u32,
|
|
82
|
+
/// Equipment slots where this enchantment is active.
|
|
83
|
+
slots: list<attribute-modifier-slot>,
|
|
84
|
+
/// List of exclusive/conflicting enchantment IDs.
|
|
85
|
+
exclusive-set: list<string>,
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/// Global manager for registering and querying custom enchantments.
|
|
89
|
+
resource enchantment-manager {
|
|
90
|
+
/// Registers a new custom enchantment with the server.
|
|
91
|
+
register-enchantment: func(enchantment: custom-enchantment) -> result<_, string>;
|
|
92
|
+
|
|
93
|
+
/// Gets an enchantment definition by its ID.
|
|
94
|
+
get-enchantment: func(id: string) -> option<custom-enchantment>;
|
|
95
|
+
|
|
96
|
+
/// Checks if an enchantment ID is registered.
|
|
97
|
+
has-enchantment: func(id: string) -> bool;
|
|
98
|
+
|
|
99
|
+
/// Returns all registered custom enchantment IDs.
|
|
100
|
+
get-all-enchantment-ids: func() -> list<string>;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
package pumpkin:plugin@0.1.0;
|
|
2
|
+
|
|
3
|
+
interface entity-statuses {
|
|
4
|
+
enum entity-status {
|
|
5
|
+
armadillo-peek,
|
|
6
|
+
armorstand-wobble,
|
|
7
|
+
body-break,
|
|
8
|
+
cancel-shake-wetness,
|
|
9
|
+
chest-break,
|
|
10
|
+
death,
|
|
11
|
+
dolphin-looking-for-treasure,
|
|
12
|
+
drown-particles,
|
|
13
|
+
eat-grass,
|
|
14
|
+
end-ram,
|
|
15
|
+
feet-break,
|
|
16
|
+
fireworks-explode,
|
|
17
|
+
fishing-rod-reel-in,
|
|
18
|
+
fox-eat,
|
|
19
|
+
full-debug-info,
|
|
20
|
+
guardian-attack-sound,
|
|
21
|
+
head-break,
|
|
22
|
+
honey-jump,
|
|
23
|
+
honey-slide,
|
|
24
|
+
in-love-hearts,
|
|
25
|
+
jump,
|
|
26
|
+
kinetic-hit,
|
|
27
|
+
legs-break,
|
|
28
|
+
love-hearts,
|
|
29
|
+
mainhand-break,
|
|
30
|
+
offer-flower,
|
|
31
|
+
offhand-break,
|
|
32
|
+
permission-level-admins,
|
|
33
|
+
permission-level-all,
|
|
34
|
+
permission-level-gamemasters,
|
|
35
|
+
permission-level-moderators,
|
|
36
|
+
permission-level-owners,
|
|
37
|
+
poof,
|
|
38
|
+
protected-from-death,
|
|
39
|
+
ravager-roared,
|
|
40
|
+
ravager-stunned,
|
|
41
|
+
reduced-debug-info,
|
|
42
|
+
saddle-break,
|
|
43
|
+
shake,
|
|
44
|
+
shake-wetness,
|
|
45
|
+
silverfish-merge-anim,
|
|
46
|
+
sniffer-digging-sound,
|
|
47
|
+
sonic-charge,
|
|
48
|
+
squid-anim-synch,
|
|
49
|
+
start-attacking,
|
|
50
|
+
start-ram,
|
|
51
|
+
stop-attacking,
|
|
52
|
+
stop-offer-flower,
|
|
53
|
+
swap-hands,
|
|
54
|
+
taming-failed,
|
|
55
|
+
taming-succeeded,
|
|
56
|
+
teleport,
|
|
57
|
+
tendrils-shiver,
|
|
58
|
+
tnt-prime,
|
|
59
|
+
trusting-failed,
|
|
60
|
+
trusting-succeeded,
|
|
61
|
+
use-item-complete,
|
|
62
|
+
villager-angry,
|
|
63
|
+
villager-happy,
|
|
64
|
+
villager-sweat,
|
|
65
|
+
witch-hat-magic,
|
|
66
|
+
zombie-converting,
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
package pumpkin:plugin@0.1.0;
|
|
2
|
+
|
|
3
|
+
interface entity-types {
|
|
4
|
+
enum entity-type {
|
|
5
|
+
acacia-boat,
|
|
6
|
+
acacia-chest-boat,
|
|
7
|
+
allay,
|
|
8
|
+
area-effect-cloud,
|
|
9
|
+
armadillo,
|
|
10
|
+
armor-stand,
|
|
11
|
+
arrow,
|
|
12
|
+
axolotl,
|
|
13
|
+
bamboo-chest-raft,
|
|
14
|
+
bamboo-raft,
|
|
15
|
+
bat,
|
|
16
|
+
bee,
|
|
17
|
+
birch-boat,
|
|
18
|
+
birch-chest-boat,
|
|
19
|
+
blaze,
|
|
20
|
+
block-display,
|
|
21
|
+
bogged,
|
|
22
|
+
breeze,
|
|
23
|
+
breeze-wind-charge,
|
|
24
|
+
camel,
|
|
25
|
+
camel-husk,
|
|
26
|
+
cat,
|
|
27
|
+
cave-spider,
|
|
28
|
+
cherry-boat,
|
|
29
|
+
cherry-chest-boat,
|
|
30
|
+
chest-minecart,
|
|
31
|
+
chicken,
|
|
32
|
+
cod,
|
|
33
|
+
command-block-minecart,
|
|
34
|
+
copper-golem,
|
|
35
|
+
cow,
|
|
36
|
+
creaking,
|
|
37
|
+
creeper,
|
|
38
|
+
dark-oak-boat,
|
|
39
|
+
dark-oak-chest-boat,
|
|
40
|
+
dolphin,
|
|
41
|
+
donkey,
|
|
42
|
+
dragon-fireball,
|
|
43
|
+
drowned,
|
|
44
|
+
egg,
|
|
45
|
+
elder-guardian,
|
|
46
|
+
end-crystal,
|
|
47
|
+
ender-dragon,
|
|
48
|
+
ender-pearl,
|
|
49
|
+
enderman,
|
|
50
|
+
endermite,
|
|
51
|
+
evoker,
|
|
52
|
+
evoker-fangs,
|
|
53
|
+
experience-bottle,
|
|
54
|
+
experience-orb,
|
|
55
|
+
eye-of-ender,
|
|
56
|
+
falling-block,
|
|
57
|
+
fireball,
|
|
58
|
+
firework-rocket,
|
|
59
|
+
fishing-bobber,
|
|
60
|
+
fox,
|
|
61
|
+
frog,
|
|
62
|
+
furnace-minecart,
|
|
63
|
+
ghast,
|
|
64
|
+
giant,
|
|
65
|
+
glow-item-frame,
|
|
66
|
+
glow-squid,
|
|
67
|
+
goat,
|
|
68
|
+
guardian,
|
|
69
|
+
happy-ghast,
|
|
70
|
+
hoglin,
|
|
71
|
+
hopper-minecart,
|
|
72
|
+
horse,
|
|
73
|
+
husk,
|
|
74
|
+
illusioner,
|
|
75
|
+
interaction,
|
|
76
|
+
iron-golem,
|
|
77
|
+
item,
|
|
78
|
+
item-display,
|
|
79
|
+
item-frame,
|
|
80
|
+
jungle-boat,
|
|
81
|
+
jungle-chest-boat,
|
|
82
|
+
leash-knot,
|
|
83
|
+
lightning-bolt,
|
|
84
|
+
lingering-potion,
|
|
85
|
+
llama,
|
|
86
|
+
llama-spit,
|
|
87
|
+
magma-cube,
|
|
88
|
+
mangrove-boat,
|
|
89
|
+
mangrove-chest-boat,
|
|
90
|
+
mannequin,
|
|
91
|
+
marker,
|
|
92
|
+
minecart,
|
|
93
|
+
mooshroom,
|
|
94
|
+
mule,
|
|
95
|
+
nautilus,
|
|
96
|
+
oak-boat,
|
|
97
|
+
oak-chest-boat,
|
|
98
|
+
ocelot,
|
|
99
|
+
ominous-item-spawner,
|
|
100
|
+
painting,
|
|
101
|
+
pale-oak-boat,
|
|
102
|
+
pale-oak-chest-boat,
|
|
103
|
+
panda,
|
|
104
|
+
parched,
|
|
105
|
+
parrot,
|
|
106
|
+
phantom,
|
|
107
|
+
pig,
|
|
108
|
+
piglin,
|
|
109
|
+
piglin-brute,
|
|
110
|
+
pillager,
|
|
111
|
+
player,
|
|
112
|
+
polar-bear,
|
|
113
|
+
pufferfish,
|
|
114
|
+
rabbit,
|
|
115
|
+
ravager,
|
|
116
|
+
salmon,
|
|
117
|
+
sheep,
|
|
118
|
+
shulker,
|
|
119
|
+
shulker-bullet,
|
|
120
|
+
silverfish,
|
|
121
|
+
skeleton,
|
|
122
|
+
skeleton-horse,
|
|
123
|
+
slime,
|
|
124
|
+
small-fireball,
|
|
125
|
+
sniffer,
|
|
126
|
+
snow-golem,
|
|
127
|
+
snowball,
|
|
128
|
+
spawner-minecart,
|
|
129
|
+
spectral-arrow,
|
|
130
|
+
spider,
|
|
131
|
+
splash-potion,
|
|
132
|
+
spruce-boat,
|
|
133
|
+
spruce-chest-boat,
|
|
134
|
+
squid,
|
|
135
|
+
stray,
|
|
136
|
+
strider,
|
|
137
|
+
sulfur-cube,
|
|
138
|
+
tadpole,
|
|
139
|
+
text-display,
|
|
140
|
+
tnt,
|
|
141
|
+
tnt-minecart,
|
|
142
|
+
trader-llama,
|
|
143
|
+
trident,
|
|
144
|
+
tropical-fish,
|
|
145
|
+
turtle,
|
|
146
|
+
vex,
|
|
147
|
+
villager,
|
|
148
|
+
vindicator,
|
|
149
|
+
wandering-trader,
|
|
150
|
+
warden,
|
|
151
|
+
wind-charge,
|
|
152
|
+
witch,
|
|
153
|
+
wither,
|
|
154
|
+
wither-skeleton,
|
|
155
|
+
wither-skull,
|
|
156
|
+
wolf,
|
|
157
|
+
zoglin,
|
|
158
|
+
zombie,
|
|
159
|
+
zombie-horse,
|
|
160
|
+
zombie-nautilus,
|
|
161
|
+
zombie-villager,
|
|
162
|
+
zombified-piglin,
|
|
163
|
+
}
|
|
164
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
interface entity { use %world.{entity, living-entity, mob, path-node-type, dye-color, villager-profession, mob-data, sheep-data, wolf-data, cat-data, villager-data, creeper-data, slime-data, enderman-data, iron-golem-data, fox-data, ageable-data, zombie-data, shulker-data, raycast-result, ray-trace-block-result, ray-trace-entity-result, block-direction}; }
|