From b19602f205267e13ad71d52797040cc75d13b860 Mon Sep 17 00:00:00 2001 From: Jacob Babor Date: Wed, 10 Jul 2024 13:06:31 -0500 Subject: [PATCH] Add a bunch of cool envvars to the MC server --- playbooks/tasks/game/minecraft-createfarming.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/playbooks/tasks/game/minecraft-createfarming.yml b/playbooks/tasks/game/minecraft-createfarming.yml index c066c63..4a82bb0 100644 --- a/playbooks/tasks/game/minecraft-createfarming.yml +++ b/playbooks/tasks/game/minecraft-createfarming.yml @@ -4,11 +4,20 @@ name: minecraft-createfarming state: started image: itzg/minecraft-server:latest - restart_policy: unless-stopped - pull: yes env: + # Common envvars EULA: "true" + OPS: "VintageSalt" + SNOOPER_ENABLED: "false" + SPAWN_PROTECTION: "0" + USE_AIKAR_FLAGS: "true" + RCON_CMDS_STARTUP: |- + scoreboard objectives add Deaths deathCount + RCON_CMDS_ON_CONNECT: |- + scoreboard objectives setdisplay list Deaths + # Pack-specific stuff MODRINTH_PROJECT: "https://modrinth.com/modpack/create-farmersdelight/version/1.0.0" + MOTD: "Create Farming and Delights! Spinny trains!" TYPE: "MODRINTH" VERSION: "1.20.1" MAX_MEMORY: "6G"