+ set gamemode
This commit is contained in:
parent
0cbe8e8ddf
commit
3af6c0fcdb
|
@ -5,6 +5,7 @@
|
||||||
time_left=30
|
time_left=30
|
||||||
score=0
|
score=0
|
||||||
spawn_pos=(8 -40 8)
|
spawn_pos=(8 -40 8)
|
||||||
|
gamemode=00
|
||||||
|
|
||||||
# palette expanded for easier randomization
|
# palette expanded for easier randomization
|
||||||
palette+=("45") # gold
|
palette+=("45") # gold
|
||||||
|
|
3
mc.sh
3
mc.sh
|
@ -4,7 +4,6 @@ dyed=0
|
||||||
keepalive=0
|
keepalive=0
|
||||||
pos=(0 0 0)
|
pos=(0 0 0)
|
||||||
players=()
|
players=()
|
||||||
time=1609000
|
|
||||||
TEMP=/dev/shm/witchcraft/
|
TEMP=/dev/shm/witchcraft/
|
||||||
mkdir -p $TEMP $TEMP/players $TEMP/world
|
mkdir -p $TEMP $TEMP/players $TEMP/world
|
||||||
|
|
||||||
|
@ -140,7 +139,7 @@ while true; do
|
||||||
|
|
||||||
res="0000$eid" # entity id
|
res="0000$eid" # entity id
|
||||||
res+="00" # not hardcore
|
res+="00" # not hardcore
|
||||||
res+="00" # survival mode
|
res+="$gamemode" # survival mode
|
||||||
res+="01" # ... as previously seen on Creative Mode (ignored)
|
res+="01" # ... as previously seen on Creative Mode (ignored)
|
||||||
|
|
||||||
# I am *not* recreating the biome codecs
|
# I am *not* recreating the biome codecs
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
# hooks.sh - dummy hooks functions
|
# hooks.sh - dummy hooks functions
|
||||||
|
|
||||||
spawn_pos=(0 0 0) # default spawn position
|
spawn_pos=(0 0 0) # default spawn position
|
||||||
|
gamemode=01 # creative
|
||||||
|
|
||||||
# on player dig
|
# on player dig
|
||||||
function hook_dig() {
|
function hook_dig() {
|
||||||
|
|
Loading…
Reference in a new issue