跳转至

Work Composter

文档版本:1.21.0.24

Allows the NPC to use the composter POI to convert excess seeds into bone meal.

架构

work_composter:
{
  priority "priority"
  speed_multiplier "speed_multiplier"
  integer "active_time" : opt
  integer "block_interaction_max" : opt
  boolean "can_empty_composter" : opt
  boolean "can_fill_composter" : opt
  boolean "can_work_in_rain" : opt
  integer "goal_cooldown" : opt
  integer "items_per_use_max" : opt
  integer "min_item_count" : opt
  trigger "on_arrival"
  integer "sound_delay_max" : opt
  integer "sound_delay_min" : opt
  integer "use_block_max" : opt
  integer "use_block_min" : opt
  integer "work_in_rain_tolerance" : opt
}
prioritypriority
priority:
integer
speed_multiplierspeed_multiplier
speed_multiplier:
number
active_timeinteger
The amount of ticks the NPC will stay in their the work location.
block_interaction_maxinteger
The maximum number of times the mob will interact with the composter.
can_empty_composterboolean
Determines whether the mob can empty a full composter.
can_fill_composterboolean
Determines whether the mob can add items to a composter given that it is not full.
can_work_in_rainboolean
If true, this entity can work when their jobsite POI is being rained on.
goal_cooldowninteger
The amount of ticks the goal will be on cooldown before it can be used again.
items_per_use_maxinteger
The maximum number of items which can be added to the composter per block interaction.
min_item_countinteger
Limits the amount of each compostable item the mob can use. Any amount held over this number will be composted if possible
on_arrivaltrigger
Event to run when the mob reaches their jobsite.
trigger:
string
trigger:
{
  string "event" : opt
  filters "filters"
  subject "target"
}
eventstring
The event to run when the conditions for this trigger are met.
filtersfilters
一个过滤器组。The list of conditions for this trigger to execute.
targetsubject
The target of the event.
subject:
string
trigger:
array
{
  object "<any array element>" : opt
  {
    string "event" : opt
    filters "filters"
    subject "target"
  }
}
<any array element>object
<any array element>
sound_delay_maxinteger
Unused.
sound_delay_mininteger
Unused.
use_block_maxinteger
The maximum interval in which the mob will interact with the composter.
use_block_mininteger
The minimum interval in which the mob will interact with the composter.
work_in_rain_toleranceinteger
If "can_work_in_rain" is false, this is the maximum number of ticks left in the goal where rain will not interrupt the goal