You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a fabric mod that adds entity modifiers to Minecraft.
3
+
4
+
Entity modifiers are similar to item modifiers, except that they work with entities rather than items!
5
+
They are supposed to replace the `data modify entity ...` commands.
6
+
This makes changing entities much more powerful, as we can provide context to what we want to modify.
7
+
- We know what we want to change. This means we can have validation of our input!
8
+
- We can use number providers rather than having to use `execute store ...`. This also means it doesn't limit us to just the integer range, as we are able to use floating point numbers as well!
9
+
- When we are working with text components we can use advanced components such as `score` that resolve properly.
10
+
- Because we are editing direct values and not save data, we can apply this to players as well! This enables player-specific features like hunger.
11
+
12
+
## Using entity modifiers
13
+
Entity modifiers are JSON files in data packs.
14
+
You can create entity modifiers under the `modifiers/entities` folder in your namespace.
15
+
This structure is similar to what tags and loot tables use.
16
+
Inside the file you can either have one or an array of modifiers, just like in item modifiers!
17
+
The modifiers can be applied using the `entity` command, which follows a similar syntax to the `item` and `data` commands.
0 commit comments