Updated Material Group (markdown)

alexcrea 2024-07-14 13:50:57 +02:00
parent 1ec28b5460
commit 9619a38836

@ -23,8 +23,8 @@ Adding a group to another group is not impacted by the type of group. For exampl
## Creating and Registering a Material Group
Here is an example of you could create some material group
```java
@EventHandler
public void onConfigReady(){
@EventHandler
public void onConfigReady(){
// Create group of zombie drops
IncludeGroup zombieGroup = new IncludeGroup("zombieDrop");
zombieGroup.addToPolicy(Material.ROTTEN_FLESH) // Please note "addToPolicy would be "exclude from group" for ExcludeGroup
@ -51,7 +51,7 @@ Here is an example of you could create some material group
// Create conflict (see appropriate doc) (wiki wip)
// ...
}
}
```
Material group can also be registered after the event is triggered. But not before.