Skip to content

Commit

Permalink
Remove an unclear segment.
Browse files Browse the repository at this point in the history
  • Loading branch information
hjake123 committed Oct 6, 2024
1 parent 03f7640 commit a13c73a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/resources/server/enchantments/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public static final DeferredHolder<DataComponentType<?>, DataComponentType<Examp
.build());
```

There are no inheritance requirements on the data held by an enchantment effect component, but it may be helpful to refer to vanilla to ensure compatibility with the vanilla helper methods.
There are no inheritance requirements on the data held by an enchantment effect component.

### `ConditionalEffect`
Wrapping the type in `ConditionalEffect<?>` allows the enchantment effect component to take effect based on conditions informed by a [LootContext].
Expand Down Expand Up @@ -251,12 +251,12 @@ BUILDER.add(
bootstrap -> bootstrap.register(
EXAMPLE_ENCHANTMENT_KEY,
new Enchantment(
Component.literal("Example Enchantment"), // The Text Component that specifies the enchantment's name.
EXAMPLE_ENCHANTMENT_DEFINITION,
HolderSet.empty(), // A HolderSet of incompatible other enchantments.
DataComponentMap.builder() // A DataComponentMap of the enchantment effect components associated with this enchantment and their values.
.set(MY_ENCHANTMENT_EFFECT_COMPONENT_TYPE, new ExampleData())
.build()
Component.literal("Example Enchantment"), // The Text Component that specifies the enchantment's name.
EXAMPLE_ENCHANTMENT_DEFINITION,
HolderSet.empty(), // A HolderSet of incompatible other enchantments.
DataComponentMap.builder() // A DataComponentMap of the enchantment effect components associated with this enchantment and their values.
.set(MY_ENCHANTMENT_EFFECT_COMPONENT_TYPE, new ExampleData())
.build()
)
)
);
Expand Down

1 comment on commit a13c73a

@neoforged-pages-deployments
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploying with Cloudflare Pages

Name Result
Last commit: a13c73a9f182bc65822274fbe7a5ae16342cb9dd
Status: ✅ Deploy successful!
Preview URL: https://4dc8a965.neoforged-docs-previews.pages.dev
PR Preview URL: https://pr-165.neoforged-docs-previews.pages.dev

Please sign in to comment.