redscript-mc 3.0.1 → 3.0.2

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.
Files changed (225) hide show
  1. package/.github/workflows/ci.yml +1 -0
  2. package/README.md +119 -313
  3. package/README.zh.md +118 -314
  4. package/ROADMAP.md +5 -5
  5. package/dist/data/impl_test/function/counter/get.mcfunction +5 -0
  6. package/dist/data/impl_test/function/counter/inc.mcfunction +7 -0
  7. package/dist/data/impl_test/function/counter/new.mcfunction +4 -0
  8. package/dist/data/impl_test/function/load.mcfunction +1 -0
  9. package/dist/data/impl_test/function/test_impl.mcfunction +10 -0
  10. package/dist/data/minecraft/tags/function/load.json +5 -0
  11. package/dist/data/playground/function/load.mcfunction +1 -0
  12. package/dist/data/playground/function/start.mcfunction +4 -0
  13. package/dist/data/playground/function/start__say_macro_t1.mcfunction +1 -0
  14. package/dist/data/playground/function/stop.mcfunction +5 -0
  15. package/dist/data/playground/function/stop__say_macro_t0.mcfunction +1 -0
  16. package/dist/data/stdlib_queue8_test/function/__queue_append_apply.mcfunction +4 -0
  17. package/dist/data/stdlib_queue8_test/function/__queue_peek_apply.mcfunction +4 -0
  18. package/dist/data/stdlib_queue8_test/function/__queue_size_raw_apply.mcfunction +4 -0
  19. package/dist/data/stdlib_queue8_test/function/load.mcfunction +1 -0
  20. package/dist/data/stdlib_queue8_test/function/queue_clear.mcfunction +6 -0
  21. package/dist/data/stdlib_queue8_test/function/queue_empty__merge_1.mcfunction +5 -0
  22. package/dist/data/stdlib_queue8_test/function/queue_empty__then_0.mcfunction +5 -0
  23. package/dist/data/stdlib_queue8_test/function/queue_peek__merge_1.mcfunction +13 -0
  24. package/dist/data/stdlib_queue8_test/function/queue_peek__then_0.mcfunction +5 -0
  25. package/dist/data/stdlib_queue8_test/function/queue_pop__merge_1.mcfunction +15 -0
  26. package/dist/data/stdlib_queue8_test/function/queue_pop__then_0.mcfunction +5 -0
  27. package/dist/data/stdlib_queue8_test/function/queue_push__const_11.mcfunction +6 -0
  28. package/dist/data/stdlib_queue8_test/function/queue_push__const_22.mcfunction +6 -0
  29. package/dist/data/stdlib_queue8_test/function/queue_size.mcfunction +13 -0
  30. package/dist/data/stdlib_queue8_test/function/test_queue_push_and_size.mcfunction +13 -0
  31. package/dist/data/test/function/load.mcfunction +1 -0
  32. package/dist/data/test/function/say_at.mcfunction +6 -0
  33. package/dist/data/test/function/test.mcfunction +4 -0
  34. package/dist/pack.mcmeta +6 -0
  35. package/dist/package.json +1 -1
  36. package/dist/src/__tests__/formatter-extra.test.d.ts +7 -0
  37. package/dist/src/__tests__/formatter-extra.test.js +123 -0
  38. package/dist/src/__tests__/global-vars.test.d.ts +13 -0
  39. package/dist/src/__tests__/global-vars.test.js +156 -0
  40. package/dist/src/__tests__/lint/new-rules.test.d.ts +9 -0
  41. package/dist/src/__tests__/lint/new-rules.test.js +402 -0
  42. package/dist/src/__tests__/lsp-rename.test.d.ts +8 -0
  43. package/dist/src/__tests__/lsp-rename.test.js +157 -0
  44. package/dist/src/__tests__/mc-integration/say-fstring.test.d.ts +11 -0
  45. package/dist/src/__tests__/mc-integration/say-fstring.test.js +220 -0
  46. package/dist/src/__tests__/mc-integration/stdlib-coverage-2.test.js +1 -1
  47. package/dist/src/__tests__/mc-integration/stdlib-coverage-3.test.js +1 -1
  48. package/dist/src/__tests__/mc-integration/stdlib-coverage-4.test.js +1 -1
  49. package/dist/src/__tests__/mc-integration/stdlib-coverage-5.test.js +1 -1
  50. package/dist/src/__tests__/mc-integration/stdlib-coverage-6.test.js +1 -1
  51. package/dist/src/__tests__/mc-integration/stdlib-coverage-7.test.js +1 -1
  52. package/dist/src/__tests__/mc-integration/stdlib-coverage-8.test.js +1 -1
  53. package/dist/src/__tests__/mc-syntax.test.js +4 -1
  54. package/dist/src/__tests__/monomorphize-coverage.test.d.ts +9 -0
  55. package/dist/src/__tests__/monomorphize-coverage.test.js +204 -0
  56. package/dist/src/__tests__/optimizer-cse.test.d.ts +7 -0
  57. package/dist/src/__tests__/optimizer-cse.test.js +226 -0
  58. package/dist/src/__tests__/parser.test.js +4 -13
  59. package/dist/src/__tests__/repl-server-extra.test.js +6 -7
  60. package/dist/src/__tests__/repl-server.test.js +5 -7
  61. package/dist/src/__tests__/stdlib/queue.test.js +6 -6
  62. package/dist/src/cli.js +0 -0
  63. package/dist/src/lexer/index.js +2 -1
  64. package/dist/src/lint/index.d.ts +12 -5
  65. package/dist/src/lint/index.js +730 -5
  66. package/dist/src/lsp/main.js +0 -0
  67. package/dist/src/mc-test/client.d.ts +21 -0
  68. package/dist/src/mc-test/client.js +34 -0
  69. package/dist/src/mir/lower.js +108 -6
  70. package/dist/src/optimizer/interprocedural.js +37 -2
  71. package/dist/src/parser/decl-parser.d.ts +19 -0
  72. package/dist/src/parser/decl-parser.js +323 -0
  73. package/dist/src/parser/expr-parser.d.ts +46 -0
  74. package/dist/src/parser/expr-parser.js +759 -0
  75. package/dist/src/parser/index.d.ts +8 -129
  76. package/dist/src/parser/index.js +13 -2262
  77. package/dist/src/parser/stmt-parser.d.ts +28 -0
  78. package/dist/src/parser/stmt-parser.js +577 -0
  79. package/dist/src/parser/type-parser.d.ts +20 -0
  80. package/dist/src/parser/type-parser.js +257 -0
  81. package/dist/src/parser/utils.d.ts +34 -0
  82. package/dist/src/parser/utils.js +141 -0
  83. package/docs/dev/README-mc-integration-tests.md +141 -0
  84. package/docs/lint-rules.md +162 -0
  85. package/docs/stdlib/bigint.md +2 -0
  86. package/editors/vscode/README.md +63 -41
  87. package/editors/vscode/out/extension.js +1881 -1776
  88. package/editors/vscode/out/lsp-server.js +4257 -3651
  89. package/editors/vscode/package-lock.json +3 -3
  90. package/editors/vscode/package.json +1 -1
  91. package/examples/loops-demo.mcrs +87 -0
  92. package/package.json +1 -1
  93. package/redscript-docs/docs/en/stdlib/advanced.md +629 -0
  94. package/redscript-docs/docs/en/stdlib/bigint.md +316 -0
  95. package/redscript-docs/docs/en/stdlib/bits.md +292 -0
  96. package/redscript-docs/docs/en/stdlib/bossbar.md +177 -0
  97. package/redscript-docs/docs/en/stdlib/calculus.md +289 -0
  98. package/redscript-docs/docs/en/stdlib/color.md +353 -0
  99. package/redscript-docs/docs/en/stdlib/combat.md +88 -0
  100. package/redscript-docs/docs/en/stdlib/cooldown.md +82 -0
  101. package/redscript-docs/docs/en/stdlib/dialog.md +155 -0
  102. package/redscript-docs/docs/en/stdlib/easing.md +558 -0
  103. package/redscript-docs/docs/en/stdlib/ecs.md +475 -0
  104. package/redscript-docs/docs/en/stdlib/effects.md +324 -0
  105. package/redscript-docs/docs/en/stdlib/events.md +3 -0
  106. package/redscript-docs/docs/en/stdlib/expr.md +45 -0
  107. package/redscript-docs/docs/en/stdlib/fft.md +141 -0
  108. package/redscript-docs/docs/en/stdlib/geometry.md +430 -0
  109. package/redscript-docs/docs/en/stdlib/graph.md +259 -0
  110. package/redscript-docs/docs/en/stdlib/heap.md +185 -0
  111. package/redscript-docs/docs/en/stdlib/interactions.md +179 -0
  112. package/redscript-docs/docs/en/stdlib/inventory.md +97 -0
  113. package/redscript-docs/docs/en/stdlib/linalg.md +557 -0
  114. package/redscript-docs/docs/en/stdlib/list.md +559 -0
  115. package/redscript-docs/docs/en/stdlib/map.md +140 -0
  116. package/redscript-docs/docs/en/stdlib/math.md +193 -0
  117. package/redscript-docs/docs/en/stdlib/math_hp.md +149 -0
  118. package/redscript-docs/docs/en/stdlib/matrix.md +403 -0
  119. package/redscript-docs/docs/en/stdlib/mobs.md +965 -0
  120. package/redscript-docs/docs/en/stdlib/noise.md +244 -0
  121. package/redscript-docs/docs/en/stdlib/ode.md +253 -0
  122. package/redscript-docs/docs/en/stdlib/parabola.md +342 -0
  123. package/redscript-docs/docs/en/stdlib/particles.md +311 -0
  124. package/redscript-docs/docs/en/stdlib/pathfind.md +255 -0
  125. package/redscript-docs/docs/en/stdlib/physics.md +493 -0
  126. package/redscript-docs/docs/en/stdlib/player.md +78 -0
  127. package/redscript-docs/docs/en/stdlib/quaternion.md +673 -0
  128. package/redscript-docs/docs/en/stdlib/queue.md +134 -0
  129. package/redscript-docs/docs/en/stdlib/random.md +223 -0
  130. package/redscript-docs/docs/en/stdlib/result.md +143 -0
  131. package/redscript-docs/docs/en/stdlib/scheduler.md +183 -0
  132. package/redscript-docs/docs/en/stdlib/set_int.md +190 -0
  133. package/redscript-docs/docs/en/stdlib/sets.md +101 -0
  134. package/redscript-docs/docs/en/stdlib/signal.md +400 -0
  135. package/redscript-docs/docs/en/stdlib/sort.md +104 -0
  136. package/redscript-docs/docs/en/stdlib/spawn.md +147 -0
  137. package/redscript-docs/docs/en/stdlib/state.md +142 -0
  138. package/redscript-docs/docs/en/stdlib/strings.md +154 -0
  139. package/redscript-docs/docs/en/stdlib/tags.md +3451 -0
  140. package/redscript-docs/docs/en/stdlib/teams.md +153 -0
  141. package/redscript-docs/docs/en/stdlib/timer.md +246 -0
  142. package/redscript-docs/docs/en/stdlib/vec.md +158 -0
  143. package/redscript-docs/docs/en/stdlib/world.md +298 -0
  144. package/redscript-docs/docs/zh/stdlib/advanced.md +615 -0
  145. package/redscript-docs/docs/zh/stdlib/bigint.md +316 -0
  146. package/redscript-docs/docs/zh/stdlib/bits.md +292 -0
  147. package/redscript-docs/docs/zh/stdlib/bossbar.md +170 -0
  148. package/redscript-docs/docs/zh/stdlib/calculus.md +287 -0
  149. package/redscript-docs/docs/zh/stdlib/color.md +353 -0
  150. package/redscript-docs/docs/zh/stdlib/combat.md +88 -0
  151. package/redscript-docs/docs/zh/stdlib/cooldown.md +84 -0
  152. package/redscript-docs/docs/zh/stdlib/dialog.md +152 -0
  153. package/redscript-docs/docs/zh/stdlib/easing.md +558 -0
  154. package/redscript-docs/docs/zh/stdlib/ecs.md +472 -0
  155. package/redscript-docs/docs/zh/stdlib/effects.md +324 -0
  156. package/redscript-docs/docs/zh/stdlib/events.md +3 -0
  157. package/redscript-docs/docs/zh/stdlib/expr.md +37 -0
  158. package/redscript-docs/docs/zh/stdlib/fft.md +128 -0
  159. package/redscript-docs/docs/zh/stdlib/geometry.md +430 -0
  160. package/redscript-docs/docs/zh/stdlib/graph.md +259 -0
  161. package/redscript-docs/docs/zh/stdlib/heap.md +185 -0
  162. package/redscript-docs/docs/zh/stdlib/interactions.md +160 -0
  163. package/redscript-docs/docs/zh/stdlib/inventory.md +94 -0
  164. package/redscript-docs/docs/zh/stdlib/linalg.md +543 -0
  165. package/redscript-docs/docs/zh/stdlib/list.md +561 -0
  166. package/redscript-docs/docs/zh/stdlib/map.md +132 -0
  167. package/redscript-docs/docs/zh/stdlib/math.md +193 -0
  168. package/redscript-docs/docs/zh/stdlib/math_hp.md +143 -0
  169. package/redscript-docs/docs/zh/stdlib/matrix.md +396 -0
  170. package/redscript-docs/docs/zh/stdlib/mobs.md +965 -0
  171. package/redscript-docs/docs/zh/stdlib/noise.md +244 -0
  172. package/redscript-docs/docs/zh/stdlib/ode.md +243 -0
  173. package/redscript-docs/docs/zh/stdlib/parabola.md +337 -0
  174. package/redscript-docs/docs/zh/stdlib/particles.md +307 -0
  175. package/redscript-docs/docs/zh/stdlib/pathfind.md +255 -0
  176. package/redscript-docs/docs/zh/stdlib/physics.md +493 -0
  177. package/redscript-docs/docs/zh/stdlib/player.md +78 -0
  178. package/redscript-docs/docs/zh/stdlib/quaternion.md +669 -0
  179. package/redscript-docs/docs/zh/stdlib/queue.md +124 -0
  180. package/redscript-docs/docs/zh/stdlib/random.md +222 -0
  181. package/redscript-docs/docs/zh/stdlib/result.md +147 -0
  182. package/redscript-docs/docs/zh/stdlib/scheduler.md +173 -0
  183. package/redscript-docs/docs/zh/stdlib/set_int.md +180 -0
  184. package/redscript-docs/docs/zh/stdlib/sets.md +107 -0
  185. package/redscript-docs/docs/zh/stdlib/signal.md +373 -0
  186. package/redscript-docs/docs/zh/stdlib/sort.md +104 -0
  187. package/redscript-docs/docs/zh/stdlib/spawn.md +142 -0
  188. package/redscript-docs/docs/zh/stdlib/state.md +134 -0
  189. package/redscript-docs/docs/zh/stdlib/strings.md +107 -0
  190. package/redscript-docs/docs/zh/stdlib/tags.md +3451 -0
  191. package/redscript-docs/docs/zh/stdlib/teams.md +150 -0
  192. package/redscript-docs/docs/zh/stdlib/timer.md +254 -0
  193. package/redscript-docs/docs/zh/stdlib/vec.md +158 -0
  194. package/redscript-docs/docs/zh/stdlib/world.md +289 -0
  195. package/src/__tests__/formatter-extra.test.ts +139 -0
  196. package/src/__tests__/global-vars.test.ts +171 -0
  197. package/src/__tests__/lint/new-rules.test.ts +437 -0
  198. package/src/__tests__/lsp-rename.test.ts +171 -0
  199. package/src/__tests__/mc-integration/say-fstring.test.ts +211 -0
  200. package/src/__tests__/mc-integration/stdlib-coverage-2.test.ts +1 -1
  201. package/src/__tests__/mc-integration/stdlib-coverage-3.test.ts +1 -1
  202. package/src/__tests__/mc-integration/stdlib-coverage-4.test.ts +1 -1
  203. package/src/__tests__/mc-integration/stdlib-coverage-5.test.ts +1 -1
  204. package/src/__tests__/mc-integration/stdlib-coverage-6.test.ts +1 -1
  205. package/src/__tests__/mc-integration/stdlib-coverage-7.test.ts +1 -1
  206. package/src/__tests__/mc-integration/stdlib-coverage-8.test.ts +1 -1
  207. package/src/__tests__/mc-syntax.test.ts +3 -0
  208. package/src/__tests__/monomorphize-coverage.test.ts +220 -0
  209. package/src/__tests__/optimizer-cse.test.ts +250 -0
  210. package/src/__tests__/parser.test.ts +4 -13
  211. package/src/__tests__/repl-server-extra.test.ts +6 -6
  212. package/src/__tests__/repl-server.test.ts +5 -6
  213. package/src/__tests__/stdlib/queue.test.ts +6 -6
  214. package/src/lexer/index.ts +2 -1
  215. package/src/lint/index.ts +713 -5
  216. package/src/mc-test/client.ts +40 -0
  217. package/src/mir/lower.ts +111 -2
  218. package/src/optimizer/interprocedural.ts +40 -2
  219. package/src/parser/decl-parser.ts +349 -0
  220. package/src/parser/expr-parser.ts +838 -0
  221. package/src/parser/index.ts +17 -2558
  222. package/src/parser/stmt-parser.ts +585 -0
  223. package/src/parser/type-parser.ts +276 -0
  224. package/src/parser/utils.ts +173 -0
  225. package/src/stdlib/queue.mcrs +19 -6
@@ -0,0 +1,965 @@
1
+ # Mobs
2
+
3
+ > 本文档由 `src/stdlib/mobs.mcrs` 自动生成,请勿手动编辑。
4
+
5
+ ## API 列表
6
+
7
+ - [ZOMBIE](#zombie)
8
+ - [SKELETON](#skeleton)
9
+ - [CREEPER](#creeper)
10
+ - [SPIDER](#spider)
11
+ - [CAVE_SPIDER](#cave-spider)
12
+ - [ENDERMAN](#enderman)
13
+ - [WITCH](#witch)
14
+ - [PHANTOM](#phantom)
15
+ - [DROWNED](#drowned)
16
+ - [HUSK](#husk)
17
+ - [STRAY](#stray)
18
+ - [WARDEN](#warden)
19
+ - [PILLAGER](#pillager)
20
+ - [RAVAGER](#ravager)
21
+ - [VINDICATOR](#vindicator)
22
+ - [EVOKER](#evoker)
23
+ - [VEXE](#vexe)
24
+ - [ZOMBIE_VILLAGER](#zombie-villager)
25
+ - [BLAZE](#blaze)
26
+ - [GHAST](#ghast)
27
+ - [MAGMA_CUBE](#magma-cube)
28
+ - [SLIME](#slime)
29
+ - [PIGLIN_BRUTE](#piglin-brute)
30
+ - [HOGLIN](#hoglin)
31
+ - [ZOGLIN](#zoglin)
32
+ - [ENDERMITE](#endermite)
33
+ - [SILVERFISH](#silverfish)
34
+ - [SHULKER](#shulker)
35
+ - [GUARDIAN](#guardian)
36
+ - [ELDER_GUARDIAN](#elder-guardian)
37
+ - [BOGGED](#bogged)
38
+ - [BREEZE](#breeze)
39
+ - [PIG](#pig)
40
+ - [COW](#cow)
41
+ - [SHEEP](#sheep)
42
+ - [CHICKEN](#chicken)
43
+ - [HORSE](#horse)
44
+ - [DONKEY](#donkey)
45
+ - [MULE](#mule)
46
+ - [RABBIT](#rabbit)
47
+ - [COD](#cod)
48
+ - [SALMON](#salmon)
49
+ - [TROPICAL_FISH](#tropical-fish)
50
+ - [PUFFERFISH](#pufferfish)
51
+ - [SQUID](#squid)
52
+ - [GLOW_SQUID](#glow-squid)
53
+ - [BAT](#bat)
54
+ - [VILLAGER](#villager)
55
+ - [WANDERING_TRADER](#wandering-trader)
56
+ - [SNOW_GOLEM](#snow-golem)
57
+ - [STRIDER](#strider)
58
+ - [AXOLOTL](#axolotl)
59
+ - [FROG](#frog)
60
+ - [TADPOLE](#tadpole)
61
+ - [ALLAY](#allay)
62
+ - [SNIFFER](#sniffer)
63
+ - [ARMADILLO](#armadillo)
64
+ - [TURTLE](#turtle)
65
+ - [WOLF](#wolf)
66
+ - [BEE](#bee)
67
+ - [POLAR_BEAR](#polar-bear)
68
+ - [DOLPHIN](#dolphin)
69
+ - [IRON_GOLEM](#iron-golem)
70
+ - [PIGLIN](#piglin)
71
+ - [ZOMBIFIED_PIGLIN](#zombified-piglin)
72
+ - [PANDA](#panda)
73
+ - [LLAMA](#llama)
74
+ - [TRADER_LLAMA](#trader-llama)
75
+ - [CAT](#cat)
76
+ - [OCELOT](#ocelot)
77
+ - [FOX](#fox)
78
+ - [GOAT](#goat)
79
+ - [CAMEL](#camel)
80
+ - [ENDER_DRAGON](#ender-dragon)
81
+ - [WITHER](#wither)
82
+ - [ARMOR_STAND](#armor-stand)
83
+ - [ITEM_FRAME](#item-frame)
84
+ - [GLOW_ITEM_FRAME](#glow-item-frame)
85
+ - [PAINTING](#painting)
86
+ - [BOAT](#boat)
87
+ - [MINECART](#minecart)
88
+ - [TNT](#tnt)
89
+ - [FALLING_BLOCK](#falling-block)
90
+ - [ITEM](#item)
91
+ - [XP_ORB](#xp-orb)
92
+ - [FIREBALL](#fireball)
93
+ - [PLAYER](#player)
94
+
95
+ ---
96
+
97
+ ## `ZOMBIE`
98
+
99
+ Entity type ID for zombie.
100
+
101
+ ```redscript
102
+ const ZOMBIE ="minecraft:zombie"
103
+ ```
104
+
105
+ ---
106
+
107
+ ## `SKELETON`
108
+
109
+ Entity type ID for skeleton.
110
+
111
+ ```redscript
112
+ const SKELETON ="minecraft:skeleton"
113
+ ```
114
+
115
+ ---
116
+
117
+ ## `CREEPER`
118
+
119
+ Entity type ID for creeper.
120
+
121
+ ```redscript
122
+ const CREEPER ="minecraft:creeper"
123
+ ```
124
+
125
+ ---
126
+
127
+ ## `SPIDER`
128
+
129
+ Entity type ID for spider.
130
+
131
+ ```redscript
132
+ const SPIDER ="minecraft:spider"
133
+ ```
134
+
135
+ ---
136
+
137
+ ## `CAVE_SPIDER`
138
+
139
+ Entity type ID for cave spider.
140
+
141
+ ```redscript
142
+ const CAVE_SPIDER ="minecraft:cave_spider"
143
+ ```
144
+
145
+ ---
146
+
147
+ ## `ENDERMAN`
148
+
149
+ Entity type ID for enderman.
150
+
151
+ ```redscript
152
+ const ENDERMAN ="minecraft:enderman"
153
+ ```
154
+
155
+ ---
156
+
157
+ ## `WITCH`
158
+
159
+ Entity type ID for witch.
160
+
161
+ ```redscript
162
+ const WITCH ="minecraft:witch"
163
+ ```
164
+
165
+ ---
166
+
167
+ ## `PHANTOM`
168
+
169
+ Entity type ID for phantom.
170
+
171
+ ```redscript
172
+ const PHANTOM ="minecraft:phantom"
173
+ ```
174
+
175
+ ---
176
+
177
+ ## `DROWNED`
178
+
179
+ Entity type ID for drowned.
180
+
181
+ ```redscript
182
+ const DROWNED ="minecraft:drowned"
183
+ ```
184
+
185
+ ---
186
+
187
+ ## `HUSK`
188
+
189
+ Entity type ID for husk.
190
+
191
+ ```redscript
192
+ const HUSK ="minecraft:husk"
193
+ ```
194
+
195
+ ---
196
+
197
+ ## `STRAY`
198
+
199
+ Entity type ID for stray.
200
+
201
+ ```redscript
202
+ const STRAY ="minecraft:stray"
203
+ ```
204
+
205
+ ---
206
+
207
+ ## `WARDEN`
208
+
209
+ Entity type ID for warden.
210
+
211
+ ```redscript
212
+ const WARDEN ="minecraft:warden"
213
+ ```
214
+
215
+ ---
216
+
217
+ ## `PILLAGER`
218
+
219
+ Entity type ID for pillager.
220
+
221
+ ```redscript
222
+ const PILLAGER ="minecraft:pillager"
223
+ ```
224
+
225
+ ---
226
+
227
+ ## `RAVAGER`
228
+
229
+ Entity type ID for ravager.
230
+
231
+ ```redscript
232
+ const RAVAGER ="minecraft:ravager"
233
+ ```
234
+
235
+ ---
236
+
237
+ ## `VINDICATOR`
238
+
239
+ Entity type ID for vindicator.
240
+
241
+ ```redscript
242
+ const VINDICATOR ="minecraft:vindicator"
243
+ ```
244
+
245
+ ---
246
+
247
+ ## `EVOKER`
248
+
249
+ Entity type ID for evoker.
250
+
251
+ ```redscript
252
+ const EVOKER ="minecraft:evoker"
253
+ ```
254
+
255
+ ---
256
+
257
+ ## `VEXE`
258
+
259
+ Entity type ID for vex.
260
+
261
+ ```redscript
262
+ const VEXE ="minecraft:vex"
263
+ ```
264
+
265
+ ---
266
+
267
+ ## `ZOMBIE_VILLAGER`
268
+
269
+ Entity type ID for zombie villager.
270
+
271
+ ```redscript
272
+ const ZOMBIE_VILLAGER ="minecraft:zombie_villager"
273
+ ```
274
+
275
+ ---
276
+
277
+ ## `BLAZE`
278
+
279
+ Entity type ID for blaze.
280
+
281
+ ```redscript
282
+ const BLAZE ="minecraft:blaze"
283
+ ```
284
+
285
+ ---
286
+
287
+ ## `GHAST`
288
+
289
+ Entity type ID for ghast.
290
+
291
+ ```redscript
292
+ const GHAST ="minecraft:ghast"
293
+ ```
294
+
295
+ ---
296
+
297
+ ## `MAGMA_CUBE`
298
+
299
+ Entity type ID for magma cube.
300
+
301
+ ```redscript
302
+ const MAGMA_CUBE ="minecraft:magma_cube"
303
+ ```
304
+
305
+ ---
306
+
307
+ ## `SLIME`
308
+
309
+ Entity type ID for slime.
310
+
311
+ ```redscript
312
+ const SLIME ="minecraft:slime"
313
+ ```
314
+
315
+ ---
316
+
317
+ ## `PIGLIN_BRUTE`
318
+
319
+ Entity type ID for piglin brute.
320
+
321
+ ```redscript
322
+ const PIGLIN_BRUTE ="minecraft:piglin_brute"
323
+ ```
324
+
325
+ ---
326
+
327
+ ## `HOGLIN`
328
+
329
+ Entity type ID for hoglin.
330
+
331
+ ```redscript
332
+ const HOGLIN ="minecraft:hoglin"
333
+ ```
334
+
335
+ ---
336
+
337
+ ## `ZOGLIN`
338
+
339
+ Entity type ID for zoglin.
340
+
341
+ ```redscript
342
+ const ZOGLIN ="minecraft:zoglin"
343
+ ```
344
+
345
+ ---
346
+
347
+ ## `ENDERMITE`
348
+
349
+ Entity type ID for endermite.
350
+
351
+ ```redscript
352
+ const ENDERMITE ="minecraft:endermite"
353
+ ```
354
+
355
+ ---
356
+
357
+ ## `SILVERFISH`
358
+
359
+ Entity type ID for silverfish.
360
+
361
+ ```redscript
362
+ const SILVERFISH ="minecraft:silverfish"
363
+ ```
364
+
365
+ ---
366
+
367
+ ## `SHULKER`
368
+
369
+ Entity type ID for shulker.
370
+
371
+ ```redscript
372
+ const SHULKER ="minecraft:shulker"
373
+ ```
374
+
375
+ ---
376
+
377
+ ## `GUARDIAN`
378
+
379
+ Entity type ID for guardian.
380
+
381
+ ```redscript
382
+ const GUARDIAN ="minecraft:guardian"
383
+ ```
384
+
385
+ ---
386
+
387
+ ## `ELDER_GUARDIAN`
388
+
389
+ Entity type ID for elder guardian.
390
+
391
+ ```redscript
392
+ const ELDER_GUARDIAN ="minecraft:elder_guardian"
393
+ ```
394
+
395
+ ---
396
+
397
+ ## `BOGGED`
398
+
399
+ Entity type ID for bogged.
400
+
401
+ ```redscript
402
+ const BOGGED ="minecraft:bogged"
403
+ ```
404
+
405
+ ---
406
+
407
+ ## `BREEZE`
408
+
409
+ Entity type ID for breeze.
410
+
411
+ ```redscript
412
+ const BREEZE ="minecraft:breeze"
413
+ ```
414
+
415
+ ---
416
+
417
+ ## `PIG`
418
+
419
+ Entity type ID for pig.
420
+
421
+ ```redscript
422
+ const PIG ="minecraft:pig"
423
+ ```
424
+
425
+ ---
426
+
427
+ ## `COW`
428
+
429
+ Entity type ID for cow.
430
+
431
+ ```redscript
432
+ const COW ="minecraft:cow"
433
+ ```
434
+
435
+ ---
436
+
437
+ ## `SHEEP`
438
+
439
+ Entity type ID for sheep.
440
+
441
+ ```redscript
442
+ const SHEEP ="minecraft:sheep"
443
+ ```
444
+
445
+ ---
446
+
447
+ ## `CHICKEN`
448
+
449
+ Entity type ID for chicken.
450
+
451
+ ```redscript
452
+ const CHICKEN ="minecraft:chicken"
453
+ ```
454
+
455
+ ---
456
+
457
+ ## `HORSE`
458
+
459
+ Entity type ID for horse.
460
+
461
+ ```redscript
462
+ const HORSE ="minecraft:horse"
463
+ ```
464
+
465
+ ---
466
+
467
+ ## `DONKEY`
468
+
469
+ Entity type ID for donkey.
470
+
471
+ ```redscript
472
+ const DONKEY ="minecraft:donkey"
473
+ ```
474
+
475
+ ---
476
+
477
+ ## `MULE`
478
+
479
+ Entity type ID for mule.
480
+
481
+ ```redscript
482
+ const MULE ="minecraft:mule"
483
+ ```
484
+
485
+ ---
486
+
487
+ ## `RABBIT`
488
+
489
+ Entity type ID for rabbit.
490
+
491
+ ```redscript
492
+ const RABBIT ="minecraft:rabbit"
493
+ ```
494
+
495
+ ---
496
+
497
+ ## `COD`
498
+
499
+ Entity type ID for cod.
500
+
501
+ ```redscript
502
+ const COD ="minecraft:cod"
503
+ ```
504
+
505
+ ---
506
+
507
+ ## `SALMON`
508
+
509
+ Entity type ID for salmon.
510
+
511
+ ```redscript
512
+ const SALMON ="minecraft:salmon"
513
+ ```
514
+
515
+ ---
516
+
517
+ ## `TROPICAL_FISH`
518
+
519
+ Entity type ID for tropical fish.
520
+
521
+ ```redscript
522
+ const TROPICAL_FISH ="minecraft:tropical_fish"
523
+ ```
524
+
525
+ ---
526
+
527
+ ## `PUFFERFISH`
528
+
529
+ Entity type ID for pufferfish.
530
+
531
+ ```redscript
532
+ const PUFFERFISH ="minecraft:pufferfish"
533
+ ```
534
+
535
+ ---
536
+
537
+ ## `SQUID`
538
+
539
+ Entity type ID for squid.
540
+
541
+ ```redscript
542
+ const SQUID ="minecraft:squid"
543
+ ```
544
+
545
+ ---
546
+
547
+ ## `GLOW_SQUID`
548
+
549
+ Entity type ID for glow squid.
550
+
551
+ ```redscript
552
+ const GLOW_SQUID ="minecraft:glow_squid"
553
+ ```
554
+
555
+ ---
556
+
557
+ ## `BAT`
558
+
559
+ Entity type ID for bat.
560
+
561
+ ```redscript
562
+ const BAT ="minecraft:bat"
563
+ ```
564
+
565
+ ---
566
+
567
+ ## `VILLAGER`
568
+
569
+ Entity type ID for villager.
570
+
571
+ ```redscript
572
+ const VILLAGER ="minecraft:villager"
573
+ ```
574
+
575
+ ---
576
+
577
+ ## `WANDERING_TRADER`
578
+
579
+ Entity type ID for wandering trader.
580
+
581
+ ```redscript
582
+ const WANDERING_TRADER ="minecraft:wandering_trader"
583
+ ```
584
+
585
+ ---
586
+
587
+ ## `SNOW_GOLEM`
588
+
589
+ Entity type ID for snow golem.
590
+
591
+ ```redscript
592
+ const SNOW_GOLEM ="minecraft:snow_golem"
593
+ ```
594
+
595
+ ---
596
+
597
+ ## `STRIDER`
598
+
599
+ Entity type ID for strider.
600
+
601
+ ```redscript
602
+ const STRIDER ="minecraft:strider"
603
+ ```
604
+
605
+ ---
606
+
607
+ ## `AXOLOTL`
608
+
609
+ Entity type ID for axolotl.
610
+
611
+ ```redscript
612
+ const AXOLOTL ="minecraft:axolotl"
613
+ ```
614
+
615
+ ---
616
+
617
+ ## `FROG`
618
+
619
+ Entity type ID for frog.
620
+
621
+ ```redscript
622
+ const FROG ="minecraft:frog"
623
+ ```
624
+
625
+ ---
626
+
627
+ ## `TADPOLE`
628
+
629
+ Entity type ID for tadpole.
630
+
631
+ ```redscript
632
+ const TADPOLE ="minecraft:tadpole"
633
+ ```
634
+
635
+ ---
636
+
637
+ ## `ALLAY`
638
+
639
+ Entity type ID for allay.
640
+
641
+ ```redscript
642
+ const ALLAY ="minecraft:allay"
643
+ ```
644
+
645
+ ---
646
+
647
+ ## `SNIFFER`
648
+
649
+ Entity type ID for sniffer.
650
+
651
+ ```redscript
652
+ const SNIFFER ="minecraft:sniffer"
653
+ ```
654
+
655
+ ---
656
+
657
+ ## `ARMADILLO`
658
+
659
+ Entity type ID for armadillo.
660
+
661
+ ```redscript
662
+ const ARMADILLO ="minecraft:armadillo"
663
+ ```
664
+
665
+ ---
666
+
667
+ ## `TURTLE`
668
+
669
+ Entity type ID for turtle.
670
+
671
+ ```redscript
672
+ const TURTLE ="minecraft:turtle"
673
+ ```
674
+
675
+ ---
676
+
677
+ ## `WOLF`
678
+
679
+ Entity type ID for wolf.
680
+
681
+ ```redscript
682
+ const WOLF ="minecraft:wolf"
683
+ ```
684
+
685
+ ---
686
+
687
+ ## `BEE`
688
+
689
+ Entity type ID for bee.
690
+
691
+ ```redscript
692
+ const BEE ="minecraft:bee"
693
+ ```
694
+
695
+ ---
696
+
697
+ ## `POLAR_BEAR`
698
+
699
+ Entity type ID for polar bear.
700
+
701
+ ```redscript
702
+ const POLAR_BEAR ="minecraft:polar_bear"
703
+ ```
704
+
705
+ ---
706
+
707
+ ## `DOLPHIN`
708
+
709
+ Entity type ID for dolphin.
710
+
711
+ ```redscript
712
+ const DOLPHIN ="minecraft:dolphin"
713
+ ```
714
+
715
+ ---
716
+
717
+ ## `IRON_GOLEM`
718
+
719
+ Entity type ID for iron golem.
720
+
721
+ ```redscript
722
+ const IRON_GOLEM ="minecraft:iron_golem"
723
+ ```
724
+
725
+ ---
726
+
727
+ ## `PIGLIN`
728
+
729
+ Entity type ID for piglin.
730
+
731
+ ```redscript
732
+ const PIGLIN ="minecraft:piglin"
733
+ ```
734
+
735
+ ---
736
+
737
+ ## `ZOMBIFIED_PIGLIN`
738
+
739
+ Entity type ID for zombified piglin.
740
+
741
+ ```redscript
742
+ const ZOMBIFIED_PIGLIN ="minecraft:zombified_piglin"
743
+ ```
744
+
745
+ ---
746
+
747
+ ## `PANDA`
748
+
749
+ Entity type ID for panda.
750
+
751
+ ```redscript
752
+ const PANDA ="minecraft:panda"
753
+ ```
754
+
755
+ ---
756
+
757
+ ## `LLAMA`
758
+
759
+ Entity type ID for llama.
760
+
761
+ ```redscript
762
+ const LLAMA ="minecraft:llama"
763
+ ```
764
+
765
+ ---
766
+
767
+ ## `TRADER_LLAMA`
768
+
769
+ Entity type ID for trader llama.
770
+
771
+ ```redscript
772
+ const TRADER_LLAMA ="minecraft:trader_llama"
773
+ ```
774
+
775
+ ---
776
+
777
+ ## `CAT`
778
+
779
+ Entity type ID for cat.
780
+
781
+ ```redscript
782
+ const CAT ="minecraft:cat"
783
+ ```
784
+
785
+ ---
786
+
787
+ ## `OCELOT`
788
+
789
+ Entity type ID for ocelot.
790
+
791
+ ```redscript
792
+ const OCELOT ="minecraft:ocelot"
793
+ ```
794
+
795
+ ---
796
+
797
+ ## `FOX`
798
+
799
+ Entity type ID for fox.
800
+
801
+ ```redscript
802
+ const FOX ="minecraft:fox"
803
+ ```
804
+
805
+ ---
806
+
807
+ ## `GOAT`
808
+
809
+ Entity type ID for goat.
810
+
811
+ ```redscript
812
+ const GOAT ="minecraft:goat"
813
+ ```
814
+
815
+ ---
816
+
817
+ ## `CAMEL`
818
+
819
+ Entity type ID for camel.
820
+
821
+ ```redscript
822
+ const CAMEL ="minecraft:camel"
823
+ ```
824
+
825
+ ---
826
+
827
+ ## `ENDER_DRAGON`
828
+
829
+ Entity type ID for ender dragon.
830
+
831
+ ```redscript
832
+ const ENDER_DRAGON ="minecraft:ender_dragon"
833
+ ```
834
+
835
+ ---
836
+
837
+ ## `WITHER`
838
+
839
+ Entity type ID for wither.
840
+
841
+ ```redscript
842
+ const WITHER ="minecraft:wither"
843
+ ```
844
+
845
+ ---
846
+
847
+ ## `ARMOR_STAND`
848
+
849
+ Entity type ID for armor stand.
850
+
851
+ ```redscript
852
+ const ARMOR_STAND ="minecraft:armor_stand"
853
+ ```
854
+
855
+ ---
856
+
857
+ ## `ITEM_FRAME`
858
+
859
+ Entity type ID for item frame.
860
+
861
+ ```redscript
862
+ const ITEM_FRAME ="minecraft:item_frame"
863
+ ```
864
+
865
+ ---
866
+
867
+ ## `GLOW_ITEM_FRAME`
868
+
869
+ Entity type ID for glow item frame.
870
+
871
+ ```redscript
872
+ const GLOW_ITEM_FRAME ="minecraft:glow_item_frame"
873
+ ```
874
+
875
+ ---
876
+
877
+ ## `PAINTING`
878
+
879
+ Entity type ID for painting.
880
+
881
+ ```redscript
882
+ const PAINTING ="minecraft:painting"
883
+ ```
884
+
885
+ ---
886
+
887
+ ## `BOAT`
888
+
889
+ Entity type ID for boat.
890
+
891
+ ```redscript
892
+ const BOAT ="minecraft:boat"
893
+ ```
894
+
895
+ ---
896
+
897
+ ## `MINECART`
898
+
899
+ Entity type ID for minecart.
900
+
901
+ ```redscript
902
+ const MINECART ="minecraft:minecart"
903
+ ```
904
+
905
+ ---
906
+
907
+ ## `TNT`
908
+
909
+ Entity type ID for primed TNT.
910
+
911
+ ```redscript
912
+ const TNT ="minecraft:tnt"
913
+ ```
914
+
915
+ ---
916
+
917
+ ## `FALLING_BLOCK`
918
+
919
+ Entity type ID for falling block.
920
+
921
+ ```redscript
922
+ const FALLING_BLOCK ="minecraft:falling_block"
923
+ ```
924
+
925
+ ---
926
+
927
+ ## `ITEM`
928
+
929
+ Entity type ID for dropped item.
930
+
931
+ ```redscript
932
+ const ITEM ="minecraft:item"
933
+ ```
934
+
935
+ ---
936
+
937
+ ## `XP_ORB`
938
+
939
+ Entity type ID for experience orb.
940
+
941
+ ```redscript
942
+ const XP_ORB ="minecraft:experience_orb"
943
+ ```
944
+
945
+ ---
946
+
947
+ ## `FIREBALL`
948
+
949
+ Entity type ID for fireball.
950
+
951
+ ```redscript
952
+ const FIREBALL ="minecraft:fireball"
953
+ ```
954
+
955
+ ---
956
+
957
+ ## `PLAYER`
958
+
959
+ Entity type ID for player.
960
+
961
+ ```redscript
962
+ const PLAYER ="minecraft:player"
963
+ ```
964
+
965
+ ---