Skip to content

Commit 55b8ef1

Browse files
JaylyDevbot174
andauthored
Update vanilla-types to 1.20.30 (#323)
* Update index.ts * Update index.js * Update index.js * fox * Update index.js * Update vanilla-types to 1.20.30 --------- Co-authored-by: bot174 <91819282+bot174@users.noreply.github.com>
1 parent e5e14c8 commit 55b8ef1

15 files changed

+4280
-2287
lines changed

scripts/vanilla-types/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Author: Jayly <https://github.com/JaylyDev>
33
// Project: https://github.com/JaylyDev/ScriptAPI
44
export * from './mojang-block';
5+
export * from './mojang-cameraPresets';
56
export * from './mojang-dimension';
67
export * from './mojang-effect';
78
export * from './mojang-enchantment';

scripts/vanilla-types/index.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/vanilla-types/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Author: Jayly <https://github.com/JaylyDev>
33
// Project: https://github.com/JaylyDev/ScriptAPI
44
export * from './mojang-block';
5+
export * from './mojang-cameraPresets';
56
export * from './mojang-dimension';
67
export * from './mojang-effect';
78
export * from './mojang-enchantment';

scripts/vanilla-types/mojang-block.ts

Lines changed: 2987 additions & 931 deletions
Large diffs are not rendered by default.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/**
2+
* All possible MinecraftCameraPresetsTypes
3+
*/
4+
export var MinecraftCameraPresetsTypes;
5+
(function (MinecraftCameraPresetsTypes) {
6+
MinecraftCameraPresetsTypes["FirstPerson"] = "minecraft:first_person";
7+
MinecraftCameraPresetsTypes["Free"] = "minecraft:free";
8+
MinecraftCameraPresetsTypes["ThirdPerson"] = "minecraft:third_person";
9+
MinecraftCameraPresetsTypes["ThirdPersonFront"] = "minecraft:third_person_front";
10+
})(MinecraftCameraPresetsTypes || (MinecraftCameraPresetsTypes = {}));
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/**
2+
* All possible MinecraftCameraPresetsTypes
3+
*/
4+
export enum MinecraftCameraPresetsTypes {
5+
FirstPerson = "minecraft:first_person",
6+
Free = "minecraft:free",
7+
ThirdPerson = "minecraft:third_person",
8+
ThirdPersonFront = "minecraft:third_person_front"
9+
}
10+
/**
11+
* Union type equivalent of the MinecraftCameraPresetsTypes enum.
12+
*/
13+
export type MinecraftCameraPresetsTypesUnion = keyof typeof MinecraftCameraPresetsTypes;

scripts/vanilla-types/mojang-dimension.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DimensionTypes, world } from "@minecraft/server";
1+
import { world, DimensionTypes } from "@minecraft/server";
22
/**
33
* All possible MinecraftDimensionTypes
44
*/

scripts/vanilla-types/mojang-dimension.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Dimension, DimensionTypes, world } from "@minecraft/server";
1+
import { Dimension, world, DimensionTypes } from "@minecraft/server";
22

33
/**
44
* All possible MinecraftDimensionTypes
@@ -17,3 +17,7 @@ export class MinecraftDimensionTypes {
1717
static get Overworld() { return world.getDimension("minecraft:overworld"); };
1818
static get TheEnd() { return world.getDimension("minecraft:the_end"); };
1919
}
20+
/**
21+
* Union type equivalent of the MinecraftDimensionTypes enum.
22+
*/
23+
export type MinecraftDimensionTypesUnion = keyof typeof MinecraftDimensionTypes;

scripts/vanilla-types/mojang-effect.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { EffectType, EffectTypes } from "@minecraft/server";
1+
import { EffectTypes, EffectType } from "@minecraft/server";
2+
23
/**
34
* All possible MinecraftEffectTypes
45
*/
@@ -44,3 +45,7 @@ export class MinecraftEffectTypes implements EffectTypes {
4445
static get Weakness() { return EffectTypes.get("weakness"); };
4546
static get Wither() { return EffectTypes.get("wither"); };
4647
}
48+
/**
49+
* Union type equivalent of the MinecraftEffectTypes enum.
50+
*/
51+
export type MinecraftEffectTypesUnion = keyof typeof MinecraftEffectTypes;

scripts/vanilla-types/mojang-enchantment.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { EnchantmentType, EnchantmentTypes } from "@minecraft/server";
2-
32
/**
43
* All possible MinecraftEnchantmentTypes
54
*/
@@ -58,3 +57,7 @@ export class MinecraftEnchantmentTypes implements EnchantmentTypes {
5857
static get Unbreaking() { return EnchantmentTypes.get("unbreaking"); };
5958
static get Vanishing() { return EnchantmentTypes.get("vanishing"); };
6059
}
60+
/**
61+
* Union type equivalent of the MinecraftEnchantmentTypes enum.
62+
*/
63+
export type MinecraftEnchantmentTypesUnion = keyof typeof MinecraftEnchantmentTypes;

scripts/vanilla-types/mojang-entity.js

Lines changed: 0 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -16,231 +16,117 @@ export class MinecraftEntityTypes {
1616
}
1717
;
1818
static get Agent() { return EntityTypes.get("agent"); }
19-
;
2019
static get Allay() { return EntityTypes.get("allay"); }
21-
;
2220
static get AreaEffectCloud() { return EntityTypes.get("area_effect_cloud"); }
23-
;
2421
static get ArmorStand() { return EntityTypes.get("armor_stand"); }
25-
;
2622
static get Arrow() { return EntityTypes.get("arrow"); }
27-
;
2823
static get Axolotl() { return EntityTypes.get("axolotl"); }
29-
;
3024
static get Bat() { return EntityTypes.get("bat"); }
31-
;
3225
static get Bee() { return EntityTypes.get("bee"); }
33-
;
3426
static get Blaze() { return EntityTypes.get("blaze"); }
35-
;
3627
static get Boat() { return EntityTypes.get("boat"); }
37-
;
3828
static get Camel() { return EntityTypes.get("camel"); }
39-
;
4029
static get Cat() { return EntityTypes.get("cat"); }
41-
;
4230
static get CaveSpider() { return EntityTypes.get("cave_spider"); }
43-
;
4431
static get ChestBoat() { return EntityTypes.get("chest_boat"); }
45-
;
4632
static get ChestMinecart() { return EntityTypes.get("chest_minecart"); }
47-
;
4833
static get Chicken() { return EntityTypes.get("chicken"); }
49-
;
5034
static get Cod() { return EntityTypes.get("cod"); }
51-
;
5235
static get CommandBlockMinecart() { return EntityTypes.get("command_block_minecart"); }
53-
;
5436
static get Cow() { return EntityTypes.get("cow"); }
55-
;
5637
static get Creeper() { return EntityTypes.get("creeper"); }
57-
;
5838
static get Dolphin() { return EntityTypes.get("dolphin"); }
59-
;
6039
static get Donkey() { return EntityTypes.get("donkey"); }
61-
;
6240
static get DragonFireball() { return EntityTypes.get("dragon_fireball"); }
63-
;
6441
static get Drowned() { return EntityTypes.get("drowned"); }
65-
;
6642
static get Egg() { return EntityTypes.get("egg"); }
67-
;
6843
static get ElderGuardian() { return EntityTypes.get("elder_guardian"); }
69-
;
7044
static get EnderCrystal() { return EntityTypes.get("ender_crystal"); }
71-
;
7245
static get EnderDragon() { return EntityTypes.get("ender_dragon"); }
73-
;
7446
static get EnderPearl() { return EntityTypes.get("ender_pearl"); }
75-
;
7647
static get Enderman() { return EntityTypes.get("enderman"); }
77-
;
7848
static get Endermite() { return EntityTypes.get("endermite"); }
79-
;
8049
static get EvocationIllager() { return EntityTypes.get("evocation_illager"); }
81-
;
8250
static get EyeOfEnderSignal() { return EntityTypes.get("eye_of_ender_signal"); }
83-
;
8451
static get Fireball() { return EntityTypes.get("fireball"); }
85-
;
8652
static get FireworksRocket() { return EntityTypes.get("fireworks_rocket"); }
87-
;
8853
static get FishingHook() { return EntityTypes.get("fishing_hook"); }
89-
;
9054
static get Fox() { return EntityTypes.get("fox"); }
91-
;
9255
static get Frog() { return EntityTypes.get("frog"); }
93-
;
9456
static get Ghast() { return EntityTypes.get("ghast"); }
95-
;
9657
static get GlowSquid() { return EntityTypes.get("glow_squid"); }
97-
;
9858
static get Goat() { return EntityTypes.get("goat"); }
99-
;
10059
static get Guardian() { return EntityTypes.get("guardian"); }
101-
;
10260
static get Hoglin() { return EntityTypes.get("hoglin"); }
103-
;
10461
static get HopperMinecart() { return EntityTypes.get("hopper_minecart"); }
105-
;
10662
static get Horse() { return EntityTypes.get("horse"); }
107-
;
10863
static get Husk() { return EntityTypes.get("husk"); }
109-
;
11064
static get IronGolem() { return EntityTypes.get("iron_golem"); }
111-
;
11265
static get LightningBolt() { return EntityTypes.get("lightning_bolt"); }
113-
;
11466
static get LingeringPotion() { return EntityTypes.get("lingering_potion"); }
115-
;
11667
static get Llama() { return EntityTypes.get("llama"); }
117-
;
11868
static get LlamaSpit() { return EntityTypes.get("llama_spit"); }
119-
;
12069
static get MagmaCube() { return EntityTypes.get("magma_cube"); }
121-
;
12270
static get Minecart() { return EntityTypes.get("minecart"); }
123-
;
12471
static get Mooshroom() { return EntityTypes.get("mooshroom"); }
125-
;
12672
static get Mule() { return EntityTypes.get("mule"); }
127-
;
12873
static get Npc() { return EntityTypes.get("npc"); }
129-
;
13074
static get Ocelot() { return EntityTypes.get("ocelot"); }
131-
;
13275
static get Panda() { return EntityTypes.get("panda"); }
133-
;
13476
static get Parrot() { return EntityTypes.get("parrot"); }
135-
;
13677
static get Phantom() { return EntityTypes.get("phantom"); }
137-
;
13878
static get Pig() { return EntityTypes.get("pig"); }
139-
;
14079
static get Piglin() { return EntityTypes.get("piglin"); }
141-
;
14280
static get PiglinBrute() { return EntityTypes.get("piglin_brute"); }
143-
;
14481
static get Pillager() { return EntityTypes.get("pillager"); }
145-
;
14682
static get Player() { return EntityTypes.get("player"); }
147-
;
14883
static get PolarBear() { return EntityTypes.get("polar_bear"); }
149-
;
15084
static get Pufferfish() { return EntityTypes.get("pufferfish"); }
151-
;
15285
static get Rabbit() { return EntityTypes.get("rabbit"); }
153-
;
15486
static get Ravager() { return EntityTypes.get("ravager"); }
155-
;
15687
static get Salmon() { return EntityTypes.get("salmon"); }
157-
;
15888
static get Sheep() { return EntityTypes.get("sheep"); }
159-
;
16089
static get Shulker() { return EntityTypes.get("shulker"); }
161-
;
16290
static get ShulkerBullet() { return EntityTypes.get("shulker_bullet"); }
163-
;
16491
static get Silverfish() { return EntityTypes.get("silverfish"); }
165-
;
16692
static get Skeleton() { return EntityTypes.get("skeleton"); }
167-
;
16893
static get SkeletonHorse() { return EntityTypes.get("skeleton_horse"); }
169-
;
17094
static get Slime() { return EntityTypes.get("slime"); }
171-
;
17295
static get SmallFireball() { return EntityTypes.get("small_fireball"); }
173-
;
17496
static get Sniffer() { return EntityTypes.get("sniffer"); }
175-
;
17697
static get SnowGolem() { return EntityTypes.get("snow_golem"); }
177-
;
17898
static get Snowball() { return EntityTypes.get("snowball"); }
179-
;
18099
static get Spider() { return EntityTypes.get("spider"); }
181-
;
182100
static get SplashPotion() { return EntityTypes.get("splash_potion"); }
183-
;
184101
static get Squid() { return EntityTypes.get("squid"); }
185-
;
186102
static get Stray() { return EntityTypes.get("stray"); }
187-
;
188103
static get Strider() { return EntityTypes.get("strider"); }
189-
;
190104
static get Tadpole() { return EntityTypes.get("tadpole"); }
191-
;
192105
static get ThrownTrident() { return EntityTypes.get("thrown_trident"); }
193-
;
194106
static get Tnt() { return EntityTypes.get("tnt"); }
195-
;
196107
static get TntMinecart() { return EntityTypes.get("tnt_minecart"); }
197-
;
198108
static get TraderLlama() { return EntityTypes.get("trader_llama"); }
199-
;
200109
static get TripodCamera() { return EntityTypes.get("tripod_camera"); }
201-
;
202110
static get Tropicalfish() { return EntityTypes.get("tropicalfish"); }
203-
;
204111
static get Turtle() { return EntityTypes.get("turtle"); }
205-
;
206112
static get Vex() { return EntityTypes.get("vex"); }
207-
;
208113
static get Villager() { return EntityTypes.get("villager"); }
209-
;
210114
static get VillagerV2() { return EntityTypes.get("villager_v2"); }
211-
;
212115
static get Vindicator() { return EntityTypes.get("vindicator"); }
213-
;
214116
static get WanderingTrader() { return EntityTypes.get("wandering_trader"); }
215-
;
216117
static get Warden() { return EntityTypes.get("warden"); }
217-
;
218118
static get Witch() { return EntityTypes.get("witch"); }
219-
;
220119
static get Wither() { return EntityTypes.get("wither"); }
221-
;
222120
static get WitherSkeleton() { return EntityTypes.get("wither_skeleton"); }
223-
;
224121
static get WitherSkull() { return EntityTypes.get("wither_skull"); }
225-
;
226122
static get WitherSkullDangerous() { return EntityTypes.get("wither_skull_dangerous"); }
227-
;
228123
static get Wolf() { return EntityTypes.get("wolf"); }
229-
;
230124
static get XpBottle() { return EntityTypes.get("xp_bottle"); }
231-
;
232125
static get XpOrb() { return EntityTypes.get("xp_orb"); }
233-
;
234126
static get Zoglin() { return EntityTypes.get("zoglin"); }
235-
;
236127
static get Zombie() { return EntityTypes.get("zombie"); }
237-
;
238128
static get ZombieHorse() { return EntityTypes.get("zombie_horse"); }
239-
;
240129
static get ZombiePigman() { return EntityTypes.get("zombie_pigman"); }
241-
;
242130
static get ZombieVillager() { return EntityTypes.get("zombie_villager"); }
243-
;
244131
static get ZombieVillagerV2() { return EntityTypes.get("zombie_villager_v2"); }
245-
;
246132
}

0 commit comments

Comments
 (0)