Skip to content

🌱 グアノ生成と農作物自動骨粉施肥システム ​

📌 リポジトリソースコードに関する免責事項: 本Wikiドキュメントはリポジトリの最新ソースコード状態を反映しており、CurseForgeやModrinthで公開されているリリース版に含まれない開発中機能を含む場合があります。

ParameterSpecification Details
NBT Persistence Tagbetterbats:guano_ticks (Integer)
Default Timer Threshold12000 ticks ($600\text{ seconds} / 10\text{ minutes}$)
Speed GameRule Keybetter-bats:bat_guano_threshold
Item Drop GameRule Keybetter-bats:bat_drop_guano_item (Default: false)
Crop Target Interfacenet.minecraft.world.level.block.BonemealableBlock
Farmland Search DepthUp to 20 blocks vertically below roost position
Fertilizer ParticlesHAPPY_VILLAGER (Success) / MYCELIUM (Soil drop)
Item Entity Dropminecraft:bone_meal (When item drop enabled)

☕ 個人開発者ノート: 3D BOIDsによるコウモリのリアルな群飛やグアノによる作物施肥を気に入っていただけたら、ぜひ Ko-fi でのご支援をお願いします!


⌛ グアノ蓄積と施肥トリガー ​

While a bat is roosting (isResting() == true), each game tick increments its internal guano_ticks counter. Once the counter reaches the threshold specified by better-bats:bat_guano_threshold:

  1. A downward raycast checks up to 20 blocks below the bat's position.
  2. If a BonemealableBlock (e.g. wheat, carrots, potatoes, beetroots) is detected, bone meal fertilization is applied automatically with green HAPPY_VILLAGER sparkles.
  3. If better-bats:bat_drop_guano_item is true, a physical minecraft:bone_meal item drops at the ground coordinate.
  4. The guano_ticks counter resets to 0.

🌾 作物と農地ブロックの反応 ​

$$\text{Fertilization Interval} = \frac{T_{\text{threshold}}}{20.0} \quad (\text{seconds})$$

Setting bat_guano_threshold to a lower value increases the frequency of automatic crop fertilization.


Next: 動的ゲームルール一覧表 | コウモリの生態と昼間休息

Official documentation & web portal for Dasik Igaijinn mods.