fixed mod advancement group display icon

This commit is contained in:
J-onasJones 2024-10-05 18:19:33 +02:00
parent 8d9a7bd3f1
commit cdd8d1ab1b
2 changed files with 3 additions and 2 deletions

View file

@ -6,12 +6,13 @@
},
"display": {
"announce_to_chat": false,
"background": "nec:textures/gui/advancements/backgrounds/nec.png",
"description": {
"translate": "advancements.nec.root.description"
},
"icon": {
"count": 1,
"id": "minecraft:dirt"
"id": "nec:dirt_sword"
},
"show_toast": false,
"title": {

View file

@ -37,7 +37,7 @@ public class NecDataGen implements DataGeneratorEntrypoint {
public void generateAdvancement(RegistryWrapper.WrapperLookup registryLookup, Consumer<AdvancementEntry> consumer) {
AdvancementEntry rootAdvancement = Advancement.Builder.create()
.display(
Items.DIRT, // The display icon
DIRT_SWORD_ITEM, // The display icon
Text.translatable("advancements.nec.root.title"), // The title
Text.translatable("advancements.nec.root.description"), // The description//new Identifier("textures/gui/advancements/backgrounds/adventure.png","textures/gui/advancements/backgrounds/adventure.png"), // Background image used
Identifier.of(MOD_ID, "textures/gui/advancements/backgrounds/nec.png"), // Background image used