Add pumpkin (#4307)

Co-authored-by: Lucas Fabres <>
This commit is contained in:
fxwssandLucas Fabres authored and GitHub committed 2026-10-10 17:20:01 -05:00
1 parent 2d2d683ef5
commit bb27fd9fef
9 files changed
+630 -7

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
mc-image-helper assert fileExists "/data/pumpkin-*-Linux*"
pumpkinToml=/data/pumpkin.toml
assertPathEquals() {
local path=$1
local expected=$2
local actual
actual=$(mc-image-helper toml-path --file "${pumpkinToml}" "${path}")
if [[ ${actual} != "${expected}" ]]; then
echo "Expected ${path} to be '${expected}', but was '${actual}'"
exit 1
fi
}
assertPathEquals '$.networking.java.motd' "Pumpkin test MOTD"
assertPathEquals '$.networking.bedrock.motd' "Pumpkin test MOTD"
assertPathEquals '$.networking.java.max_players' "25"
assertPathEquals '$.networking.bedrock.max_players' "25"
assertPathEquals '$.networking.java.online_mode' "false"
assertPathEquals '$.networking.bedrock.online_mode' "false"
assertPathEquals '$.networking.java.view_distance' "8"
assertPathEquals '$.default_gamemode' "Creative"
assertPathEquals '$.default_difficulty' "Hard"
assertPathEquals '$.default_level_name' "myworld"
assertPathEquals '$.pvp.enabled' "false"
assertPathEquals '$.networking.query.enabled' "true"
assertPathEquals '$.networking.query.address' "0.0.0.0:25566"
assertPathEquals '$.networking.rcon.address' "0.0.0.0:25576"