Крольчатник (#2): блок по образцу курятника

- blocks.xml: cntRabbitHutch (Class Collector, тип ChickenCoop) - 6 производителей
  (мешки wildRabbit), 9 ячеек вывода, корм resourcePlantFibers, без модификаций
  (RequiredMods пустой, пустую панель инструментов скрывает DLL); префаб-заглушка
  от станка объединения; 15 волокон и 2 игровых дня на кролика, минимум 2 кролика.
- recipes.xml: рецепт как у курятника. Localization: +5 ключей на 13 языках.
- HutchWindow.cs: скрытие пустой панели «Инструменты» (+ rabbithutch mods on|off).
- ModInfo 0.2.0, ReadMe.

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
AlexCube
2026-11-10 13:31:00 +03:00
co-authored by Claude Code
parent e25c898c99
commit f82e53b0bd
9 changed files with 167 additions and 7 deletions
+9 -3
View File
@@ -164,8 +164,9 @@ namespace RabbitHutch
public override string getHelp()
{
return "rabbithutch - status\n" +
"rabbithutch on|off - off: vanilla grab, the sack goes to the hand like a chicken";
return "rabbithutch - status\n" +
"rabbithutch on|off - off: vanilla grab, the sack goes to the hand like a chicken\n" +
"rabbithutch mods on|off - hutch: hide the empty Tools panel (on by default)";
}
public override void Execute(List<string> _params, CommandSenderInfo _senderInfo)
@@ -175,7 +176,12 @@ namespace RabbitHutch
{
RabbitGrab.Enabled = _params[0] == "on";
}
con.Output("rabbithutch: " + (RabbitGrab.Enabled ? "on - rabbit sack goes to the backpack" : "off - vanilla grab"));
if (_params.Count >= 2 && _params[0] == "mods" && (_params[1] == "on" || _params[1] == "off"))
{
HutchWindow.HideEmptyMods = _params[1] == "on";
}
con.Output("rabbithutch: " + (RabbitGrab.Enabled ? "on - rabbit sack goes to the backpack" : "off - vanilla grab")
+ "; mods panel " + (HutchWindow.HideEmptyMods ? "hidden when empty" : "always shown"));
}
}
}