-
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
70 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
gnome-terminal -- bash -c " | ||
while true; do | ||
# Run the build command and capture output | ||
output=\$(./gradlew build 2>&1) | ||
echo \"\$output\" | ||
# Check if the build was successful | ||
if [[ \$? -eq 0 ]]; then | ||
./gradlew runClient | ||
read -p 'Press Enter to close...' | ||
break | ||
fi | ||
# Check for Spotless error | ||
if echo \"\$output\" | grep -q 'spotlessJavaCheck FAILED'; then | ||
echo 'Spotless check failed. Press a to apply spotless fixes and retry, or q to quit.' | ||
read -n 1 -s -r key | ||
if [[ \"\$key\" == \"a\" ]]; then | ||
./gradlew spotlessApply | ||
echo 'Spotless fixes applied. Retrying build...' | ||
elif [[ \"\$key\" == \"q\" ]]; then | ||
echo 'Exiting.' | ||
exit 1 | ||
else | ||
echo 'Invalid option. Exiting.' | ||
exit 1 | ||
fi | ||
else | ||
echo 'Build failed for other reasons. Press Enter to exit.' | ||
read -p 'Press Enter to close...' | ||
exit 1 | ||
fi | ||
done | ||
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 19 additions & 13 deletions
32
...integrateddynamics/recipes/mechanical_squeezer/convenience/mechanical_facade_squeeze.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,25 @@ | ||
{ | ||
"type": "integrateddynamics:mechanical_squeezer", | ||
"item": "integrateddynamics:facade", | ||
"item": { | ||
"item": "integrateddynamics:facade" | ||
}, | ||
"result": { | ||
"items": [ | ||
{ | ||
"item": "integrateddynamics:facade", | ||
"chance": 1, | ||
"count": 1 | ||
}, | ||
{ | ||
"item": "integrateddynamics:facade", | ||
"chance": 1, | ||
"count": 1 | ||
} | ||
] | ||
"items": [ | ||
{ | ||
"item": { | ||
"item": "integrateddynamics:facade", | ||
"chance": 1, | ||
"count": 1 | ||
} | ||
}, | ||
{ | ||
"item": { | ||
"item": "integrateddynamics:facade", | ||
"chance": 1, | ||
"count": 5 | ||
} | ||
} | ||
] | ||
}, | ||
"duration": 20 | ||
} |
26 changes: 16 additions & 10 deletions
26
src/main/resources/data/integrateddynamics/recipes/squeezer/convenience/facade_squeeze.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,24 @@ | ||
{ | ||
"type": "integrateddynamics:squeezer", | ||
"item": "integrateddynamics:facade", | ||
"type": "integrateddynamics:mechanical_squeezer", | ||
"item": { | ||
"item": "integrateddynamics:facade" | ||
}, | ||
"result": { | ||
"items": [ | ||
{ | ||
"item": "integrateddynamics:facade", | ||
"chance": 1, | ||
"count": 1 | ||
"item": { | ||
"item": "integrateddynamics:facade", | ||
"chance": 1, | ||
"count": 1 | ||
} | ||
}, | ||
{ | ||
"item": "integrateddynamics:facade", | ||
"chance": 1, | ||
"count": 1 | ||
} | ||
] | ||
"item": { | ||
"item": "integrateddynamics:facade", | ||
"chance": 1, | ||
"count": 5 | ||
} | ||
} | ||
] | ||
} | ||
} |