In the docs, there is written that for the performExampleAction, we need to use get our registry but with the non-existent value() method and it should be replaced with the get() method.
This is a minor change. To datagen an advancement, we need to create a class that implements AdvancementProvider.AdvancementGenerator. This interface have the generate method with theses paramaters HolderLookup.Provider registries, Consumer<AdvancementHolder> saver, ExistingFileHelper existingFileHelper but in the docs, the parameter consumer is named saver
AdvancementRewards.Builder#addLootTable() require a ResourceKey
In the docs, to add a lootTable, it says that the function AdvancementRewards.Builder#addLootTable() require a ResourceLocation but it actually need a ResourceKey<LootTable>
This PR fix two things in the advancements page.
Supplier#value()
In the docs, there is written that for the
performExampleAction
, we need to use get our registry but with the non-existentvalue()
method and it should be replaced with theget()
method.Parameter name for AdvancementGenerator
This is a minor change. To datagen an advancement, we need to create a class that implements
AdvancementProvider.AdvancementGenerator
. This interface have thegenerate
method with theses paramatersHolderLookup.Provider registries
,Consumer<AdvancementHolder> saver
,ExistingFileHelper existingFileHelper
but in the docs, the parameterconsumer
is namedsaver
AdvancementRewards.Builder#addLootTable() require a ResourceKey
In the docs, to add a lootTable, it says that the function
AdvancementRewards.Builder#addLootTable()
require a ResourceLocation but it actually need aResourceKey<LootTable>