From 3af6c0fcdb96fdffc7821603b540431a6bc6a1fb Mon Sep 17 00:00:00 2001 From: Dominika Date: Mon, 14 Feb 2022 11:31:57 +0100 Subject: [PATCH] + set gamemode --- demos/digmeout.sh | 1 + mc.sh | 3 +-- src/hooks.sh | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/demos/digmeout.sh b/demos/digmeout.sh index ac6d0ed..6f81a63 100644 --- a/demos/digmeout.sh +++ b/demos/digmeout.sh @@ -5,6 +5,7 @@ time_left=30 score=0 spawn_pos=(8 -40 8) +gamemode=00 # palette expanded for easier randomization palette+=("45") # gold diff --git a/mc.sh b/mc.sh index da8475b..978dac3 100755 --- a/mc.sh +++ b/mc.sh @@ -4,7 +4,6 @@ dyed=0 keepalive=0 pos=(0 0 0) players=() -time=1609000 TEMP=/dev/shm/witchcraft/ mkdir -p $TEMP $TEMP/players $TEMP/world @@ -140,7 +139,7 @@ while true; do res="0000$eid" # entity id res+="00" # not hardcore - res+="00" # survival mode + res+="$gamemode" # survival mode res+="01" # ... as previously seen on Creative Mode (ignored) # I am *not* recreating the biome codecs diff --git a/src/hooks.sh b/src/hooks.sh index 356370f..57e9486 100644 --- a/src/hooks.sh +++ b/src/hooks.sh @@ -2,6 +2,7 @@ # hooks.sh - dummy hooks functions spawn_pos=(0 0 0) # default spawn position +gamemode=01 # creative # on player dig function hook_dig() {