-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmc-fsg_custom
executable file
·55 lines (41 loc) · 1.02 KB
/
mc-fsg_custom
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#! /bin/sh
#-- fsg_custom --#
# Lastest single-threaded FSG using custom methods
# Dependencies:
# - curl
# ~ ADIGEN
########################
### GETTING THE SEED ###
########################
# Generator from https://github.com/Specnr/FSGOptimizedSeedBank
# Video: https://www.youtube.com/watch?v=qwLJZ89vgq0
cd ~/.minecraft/FSG
filter="000A000A000A000A000A000A000A000A000A000A000A000A000A000A000A000A0"
resQuery="curl -s 'http://fsg.gel.webfactional.com?filter=${filter}'"
echo "Requesting token..."
res="$(eval $resQuery)"
echo "Token received."
# getProperty
gp() {
echo $res | jq -r ".${1}"
}
sseed="$(gp struct)"
sclass="$(gp class)"
randbiome="$(gp randbiome)"
pref=$(gp pref)
echo "Generating seed..."
seed="$(./bh $sseed $sclass $randbiome $pref)"
echo "Seed generated."
##############
### MACROS ###
##############
echo $seed
echo $seed | xsel -b -i
cbSeed=$(xsel -o)
echo $cbSeed
if [[ $cbSeed == $seed ]]
then
echo "Seed succesfully copied to clipboard."
else
echo "Seed was not copied to clipboard succesfully."
fi