how to stop killing chickens in a hen house?
FarmableAnimal
hi, put them in a group and make a rule so they can't take damage from players
rule:players cannot hurt farm
group:
{
"name": "farm",
"members": "simplechicken.entity, FarmableAnimal",
"exclusions": ""
}, "RuleSets": [
{
"name": "default",
"enabled": true,
"defaultAllowDamage": false,
"flags": "AuthorizedDamage, HumanNPCDamage, LockedBoxesImmortal, LockedDoorsImmortal, PlayerSamSitesIgnorePlayers, TurretsIgnorePlayers, TrapsIgnorePlayers, AdminsHurtSleepers, NoHeliDamage, TwigDamage",
"rules": [
"anything can hurt dispensers",
"anything can hurt resources",
"anything can hurt barricades",
"anything can hurt traps",
"anything can hurt heli",
"anything can hurt npcs",
"anything can hurt players",
"nothing can hurt ch47",
"nothing can hurt cars",
"nothing can hurt mini",
"nothing can hurt snowmobiles",
"nothing can hurt ridablehorses",
"cars cannot hurt anything",
"mini cannot hurt anything",
"ch47 cannot hurt anything",
"scrapheli cannot hurt anything",
"players cannot hurt players",
"players cannot hurt traps",
"guards cannot hurt players",
"fire cannot hurt players",
"traps cannot hurt players",
"highwalls cannot hurt players",
"barricades2 cannot hurt players",
"mini cannot hurt mini",
"npcs can hurt players",
"junkyard cannot hurt anything",
"junkyard can hurt cars",
"players cannot hurt tugboats",
"heliturrets cannot hurt players",
"ramhead can hurt ramhead",
"siege cannot hurt players",
"players cannot hurt farm"
]
}
],
"Entity Groups": [
{
"name": "barricades",
"members": "door_barricade_a, door_barricade_a_large, door_barricade_b, door_barricade_dbl_a, door_barricade_dbl_a_large, door_barricade_dbl_b, door_barricade_dbl_b_large, gingerbread_barricades_house, gingerbread_barricades_snowman, gingerbread_barricades_tree, wooden_crate_gingerbread",
"exclusions": "barricade.concrete, barricade.sandbags, barricade.stone"
},
{
"name": "farm",
"members": "simplechicken.entity, FarmableAnimal",
"exclusions": ""
},
{
"name": "barricades2",
"members": "spikes_static, barricade.metal, barricade.wood, barricade.woodwire, spikes.floor, icewall, GraveyardFence",
"exclusions": ""
},
yes that works
I did so, homework passes
Merged post
Damage to the chicken still goes through, I don't know what the problem is
Merged post
sorry for english google translator
it blocks damage. I just tested it for you
2.2.7 will do this with default config too
I updated the plugin and Domag still goes through the chickens
no, the damage is blocked with the default config.
you are allowing it with the AuthorizedDamage flag
you can add CupboardOwnership flag
nivexno, the damage is blocked with the default config.
you are allowing it with the AuthorizedDamage flag
you can add CupboardOwnership flag
Then the question: why with the AuthorizedDamage flag only chickens receive damage regardless of authorization and ownership, while the building and everything else do not receive it even if I am authorized.
I am not happy with the CupboardOwnership flag because it allows damage to be dealt not only to chickens, but also to the building upon authorization, and without it only chickens receive damage, why is that?
I will just block farmable chicken from using that flag. it should not use it and would not use it if the game flagged them as an npc
I will also protect the chicken from the heli while I'm at it
2.2.8 released
I dont have AuthorizedDamage, I use AuthorizedDamageRequiresOwnership. I would like for only the player that owns the chicken coop to be able to kill the chickens in it. Will AuthorizedDamageRequiresOwnership have this same functionality? Thank you!
codepimp1234I dont have AuthorizedDamage, I use AuthorizedDamageRequiresOwnership. I would like for only the player that owns the chicken coop to be able to kill the chickens in it. Will AuthorizedDamageRequiresOwnership have this same functionality? Thank you!
try CupboardOwnership
hi, AuthorizedDamageRequiresOwnership requires AuthorizedDamage. so you must add AuthorizedDamage, too. that will let the owner or his ally kill the coop.
so basically if i understood it correctly @nivex, we need to have AuthorizedDamage & AuthorizedDamageRequiresOwnership in order for owner to be able to hurt farm, "players cannot hurt farm" should be removed as well, right?
hi, no, I responded with the wrong information. I removed the ability to use AuthorizedDamage for the farm. it is not possible to allow damage for the owner and ally only.
2.2.9 will have a new flag that allows this