This repository has been archived by the owner on Dec 23, 2023. It is now read-only.
/
create.py
95 lines (91 loc) · 3.55 KB
/
create.py
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
# This is a util to create the advancement files
# Advancement list from https://github.com/jan00bl/mcfunction-novum/blob/master/lib/1.16/id/advancement.json
advancements = [
"minecraft:adventure/adventuring_time",
"minecraft:adventure/arbalistic",
"minecraft:adventure/bullseye",
"minecraft:adventure/hero_of_the_village",
"minecraft:adventure/honey_block_slide",
"minecraft:adventure/kill_all_mobs",
"minecraft:adventure/kill_a_mob",
"minecraft:adventure/ol_betsy",
"minecraft:adventure/root",
"minecraft:adventure/shoot_arrow",
"minecraft:adventure/sleep_in_bed",
"minecraft:adventure/sniper_duel",
"minecraft:adventure/summon_iron_golem",
"minecraft:adventure/throw_trident",
"minecraft:adventure/totem_of_undying",
"minecraft:adventure/trade",
"minecraft:adventure/two_birds_one_arrow",
"minecraft:adventure/very_very_frightening",
"minecraft:adventure/voluntary_exile",
"minecraft:adventure/whos_the_pillager_now",
"minecraft:end/dragon_breath",
"minecraft:end/dragon_egg",
"minecraft:end/elytra",
"minecraft:end/enter_end_gateway",
"minecraft:end/find_end_city",
"minecraft:end/kill_dragon",
"minecraft:end/levitate",
"minecraft:end/respawn_dragon",
"minecraft:end/root",
"minecraft:husbandry/balanced_diet",
"minecraft:husbandry/bred_all_animals",
"minecraft:husbandry/breed_an_animal",
"minecraft:husbandry/complete_catalogue",
"minecraft:husbandry/fishy_business",
"minecraft:husbandry/obtain_netherite_hoe",
"minecraft:husbandry/plant_seed",
"minecraft:husbandry/root",
"minecraft:husbandry/safely_harvest_honey",
"minecraft:husbandry/silk_touch_nest",
"minecraft:husbandry/tactical_fishing",
"minecraft:husbandry/tame_an_animal",
"minecraft:nether/all_effects",
"minecraft:nether/all_potions",
"minecraft:nether/brew_potion",
"minecraft:nether/charge_respawn_anchor",
"minecraft:nether/create_beacon",
"minecraft:nether/create_full_beacon",
"minecraft:nether/distract_piglin",
"minecraft:nether/explore_nether",
"minecraft:nether/fast_travel",
"minecraft:nether/find_bastion",
"minecraft:nether/find_fortress",
"minecraft:nether/get_wither_skull",
"minecraft:nether/loot_bastion",
"minecraft:nether/netherite_armor",
"minecraft:nether/obtain_ancient_debris",
"minecraft:nether/obtain_blaze_rod",
"minecraft:nether/obtain_crying_obsidian",
"minecraft:nether/return_to_sender",
"minecraft:nether/ride_strider",
"minecraft:nether/root",
"minecraft:nether/summon_wither",
"minecraft:nether/uneasy_alliance",
"minecraft:nether/use_lodestone",
"minecraft:story/cure_zombie_villager",
"minecraft:story/deflect_arrow",
"minecraft:story/enchant_item",
"minecraft:story/enter_the_end",
"minecraft:story/enter_the_nether",
"minecraft:story/follow_ender_eye",
"minecraft:story/form_obsidian",
"minecraft:story/iron_tools",
"minecraft:story/lava_bucket",
"minecraft:story/mine_diamond",
"minecraft:story/mine_stone",
"minecraft:story/obtain_armor",
"minecraft:story/root",
"minecraft:story/shiny_gear",
"minecraft:story/smelt_iron",
"minecraft:story/upgrade_tools"
]
for i, a in enumerate(advancements):
print("execute if entity @a[advancements={" + a + "=true}] run scoreboard players set #adv" + str(
i) + " globaladvance 1")
print("\n\n\n")
for i, a in enumerate(advancements):
print("execute if score #adv" + str(i) +
" globaladvance matches 1 run advancement grant @a only " + a)