8ee8be9cc0
- mc_aigod.py: main watcher script (log tail, RCON, two-call LLM) - Two-call LLM split: qwen3-coder:30b for commands, gemma3:12b for messages - Divine intervention timer (Poisson process, configurable avg/day) - Prayer memory (persistent, last 10 exchanges) - Rolling server log context (last 20 min events) - Live player context (inventory with rarity, health, food, pos, XP) - /pray and bible chat detection (no slash — vanilla 1.21 compatible) - Login notice, bible help system - debug_commands toggle (in-game command display via tellraw) - Auto-fix for transposed give command syntax - JSON repair fallback for truncated LLM responses - Sentence-aware message chunking for long responses - mc-aigod.service systemd unit - mc_aigod_shrink.json example config - README.md full implementation guide - Minecraft_Ai_God.md full design document
19 lines
829 B
MCFunction
19 lines
829 B
MCFunction
# Initialise scoreboards on world load
|
|
scoreboard objectives add deaths_total dummy "Total Deaths"
|
|
scoreboard objectives add deaths_prev dummy "Previous Deaths"
|
|
scoreboard objectives add border_parity dummy "Border Parity"
|
|
scoreboard objectives add shrink_enabled dummy "Shrink Enabled"
|
|
scoreboard objectives add player_deaths deathCount
|
|
|
|
# Set shrink feature to DISABLED by default
|
|
scoreboard players set $shrink_enabled shrink_enabled 0
|
|
|
|
# Initialise parity tracker (0=shrink N/S, 1=shrink E/W)
|
|
scoreboard players set $border_parity border_parity 0
|
|
|
|
# Set world border
|
|
worldborder center 0 0
|
|
worldborder set 1000
|
|
|
|
tellraw @a ["",{"text":"[ShrinkBorder] ","color":"gold"},{"text":"Loaded. Shrinking is ","color":"white"},{"text":"DISABLED","color":"red"},{"text":". Use /function shrinkborder:enable to start.","color":"gray"}]
|