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 ## Creating and Registering a Material Group
Here is an example of you could create some material group Here is an example of you could create some material group
```java ```java
@EventHandler @EventHandler
public void onConfigReady(){ public void onConfigReady(){
// Create group of zombie drops // Create group of zombie drops
IncludeGroup zombieGroup = new IncludeGroup("zombieDrop"); IncludeGroup zombieGroup = new IncludeGroup("zombieDrop");
zombieGroup.addToPolicy(Material.ROTTEN_FLESH) // Please note "addToPolicy would be "exclude from group" for ExcludeGroup 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) // Create conflict (see appropriate doc) (wiki wip)
// ... // ...
} }
``` ```
Material group can also be registered after the event is triggered. But not before. Material group can also be registered after the event is triggered. But not before.