Skip to content

Commit 9b441a6

Browse files
committed
Update README
1 parent 4556ea7 commit 9b441a6

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,17 @@
1-
# EntityModifiers
2-
A mod that adds entity modifiers to Minecraft.
1+
# Entity Modifiers
2+
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

Comments
 (0)