moths can eat goat wool (#21704)

* add Wooly system

* add RequireDead to Food

* minor fix+cleanup and fix repeating

* minor fix+cleanup and fix repeating

* make goat wooly

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
deltanedas
2023-11-17 08:51:51 +00:00
committed by GitHub
parent 6e8ed007b8
commit 1ba6cad880
5 changed files with 131 additions and 12 deletions

View File

@@ -67,4 +67,10 @@ public sealed partial class FoodComponent : Component
/// </summary>
[DataField]
public float ForceFeedDelay = 3;
/// <summary>
/// For mobs that are food, requires killing them before eating.
/// </summary>
[DataField, ViewVariables(VVAccess.ReadWrite)]
public bool RequireDead = true;
}