Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nk2IsHere authored Jul 11, 2021
1 parent 984d837 commit 0f580f8
Showing 1 changed file with 50 additions and 1 deletion.
51 changes: 50 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,52 @@
# Apathy for 1.16.5

Make mobs apathetic up until you attack
Make mobs apathetic up until you attack
Literally, thats it.

Or is it?
Configuration example of `apathy.hjson` given:
```
{
/* This is the default behaviour for all mobs.
You can configure multiple behaviours for any MobEntity
The key is either null or an Identifier of a mob, the value is an array of behaviours described later
*/
"null": [
{
/* This is the type of a behaviour
Allowed values are: do_not_follow, if_block_broken, if_item_selected
For if_block_broken, if_item_selected you must include the maximal_reaction_distance property
For if_block_broken you must include reaction_block property which is an Identifier of a block
For if_item_selected you must include reaction_item which is an Identifier of an item and reaction_item_count to form ItemStack
*/
"type": "do_not_follow"
}
],
/*
Zombie will be aggressive to a player, who has broken a sandstone block in radius 16.0 or shown any amount of enchanted gapples in any hand.
*/
"minecraft:zombie": [
{
"type": "if_block_broken",
"maximal_reaction_distance": 16.0,
"reaction_block": "minecraft:sandstone"
},
{
"type": "if_item_selected",
"maximal_reaction_distance": 16.0,
"reaction_item": "minecraft:enchanted_golden_apple"
}
],
/*
Skeleton will be aggressive to a playes who has shown 16 zombie spawn eggs in any hand.
*/
"minecraft:skeleton": [
{
"type": "if_item_selected",
"maximal_reaction_distance": 32.0,
"reaction_item": "minecraft:zombie_spawn_egg",
"reaction_item_count": 16
}
]
}
```

0 comments on commit 0f580f8

Please sign in to comment.