Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rel #232

Merged
merged 37 commits into from
Dec 14, 2024
Merged

rel #232

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
c44ad90
add finally a way to get entities metadata by key
zardoy Nov 21, 2024
b881a61
fix: improve output commands formatting, especially errored ones
zardoy Nov 22, 2024
c97dbbd
feat: add query parameter to specify your custom server lists to disp…
zardoy Nov 22, 2024
50f35cf
Fix rendering of custom names and more text display options (#233)
Phoenix616 Nov 22, 2024
b89cf52
docs: move general params to top
zardoy Nov 25, 2024
af088d9
feat: minimap and full screen map (disabled by default) (#147)
gguio Nov 27, 2024
dd20994
feat: Text display orientation and rendering fixes (#235)
Phoenix616 Nov 27, 2024
0b8eaa4
fix: fix renderer bug cactus was exposing the world
zardoy Dec 3, 2024
cf7c466
copy .map file for mesher in dev for better dx
zardoy Dec 3, 2024
84dce09
write build info to all deploys!
zardoy Dec 4, 2024
5783b98
fix: spectator: display cursor block in f3, hide hotbar and hunger
zardoy Dec 6, 2024
3bacef1
fix: fix race condition when state id change was received from server…
zardoy Dec 6, 2024
18a191a
feat: add ping display on mobile & via f3, playground ui improvements
zardoy Dec 4, 2024
3c5c8b7
implement changeBackgroundColor method
zardoy Dec 7, 2024
2f21e2b
write pr & commit redirect
zardoy Dec 9, 2024
68dba89
ci: update paths for PR and commit redirect index.html in preview wor…
zardoy Dec 9, 2024
b02b250
ci(preview): correctly set pr number in url
zardoy Dec 9, 2024
74cb815
feat: support for multiple sources for `mapDir` url in case if first …
zardoy Dec 10, 2024
37b84ae
ci: fix use pr commit SHA, not base branch
zardoy Dec 10, 2024
50d1d37
dev: lock url so app restores the same game state after reloads
zardoy Dec 11, 2024
2d77bdb
ci: allow setting multiple aliases
zardoy Dec 11, 2024
7596520
fix: replace Available Offline text with Downloaded to avoid confusti…
zardoy Dec 11, 2024
c5f6c08
ci: restore linkin preview domains
zardoy Dec 11, 2024
5902918
fix: finally fix issues with ray casting on small distances. which wa…
zardoy Dec 12, 2024
376c358
feat: add support for 1.21.3
zardoy Dec 12, 2024
689bebd
cleanup eyeHeight code
zardoy Dec 12, 2024
a4c86d7
fix: update changed blocks quicker in the world by using a dedicated …
zardoy Dec 12, 2024
0624e01
fix critical but rare bug in new change worker implementation
zardoy Dec 12, 2024
13a55b4
update all latest models! fix test
zardoy Dec 12, 2024
c783094
suppress test error
zardoy Dec 13, 2024
4d411fe
feat: true hand display behind the setting (#217)
zardoy Dec 13, 2024
b10c680
fix: fix signs could not be rendered properly because font was not in…
zardoy Dec 14, 2024
9b5155d
up singleplayer version
zardoy Dec 14, 2024
ad0502d
recenter edition in ui
zardoy Dec 14, 2024
725f6ec
restore hand display setting
zardoy Dec 14, 2024
372583b
fix ci build type checks
zardoy Dec 14, 2024
5f87385
make title selectable
zardoy Dec 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ generated
dist
public
**/*/rsbuildSharedConfig.ts
src/mcDataTypes.ts
11 changes: 5 additions & 6 deletions .github/workflows/next-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ jobs:
with:
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
id: deploy
- name: Set deployment alias
run: vercel alias set ${{ steps.deploy.outputs.stdout }} ${{ secrets.TEST_PREVIEW_DOMAIN }} --token=${{ secrets.VERCEL_TOKEN }} --scope=zaro
# - uses: mshick/add-pr-comment@v2
# with:
# message: |
# Deployed to Vercel Preview: ${{ steps.deploy.outputs.stdout }}
- name: Set deployment aliases
run: |
for alias in $(echo ${{ secrets.TEST_PREVIEW_DOMAIN }} | tr "," "\n"); do
vercel alias set ${{ steps.deploy.outputs.stdout }} $alias --token=${{ secrets.VERCEL_TOKEN }} --scope=zaro
done
16 changes: 15 additions & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ jobs:
run: npm install --global vercel
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: Write Release Info
run: |
echo "{\"latestTag\": \"$(git rev-parse --short ${{ github.event.pull_request.head.sha }})\"}" > assets/release.json
- name: Build Project Artifacts
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
- run: pnpm build-storybook
Expand All @@ -63,6 +66,14 @@ jobs:
mkdir -p .vercel/output/static/playground
pnpm build-playground
cp -r prismarine-viewer/dist/* .vercel/output/static/playground/
- name: Write pr redirect index.html
run: |
mkdir -p .vercel/output/static/pr
echo "<meta http-equiv='refresh' content='0;url=https://github.com/${{ github.repository }}/pull/${{ github.event.issue.number || github.event.pull_request.number }}'>" > .vercel/output/static/pr/index.html
- name: Write commit redirect index.html
run: |
mkdir -p .vercel/output/static/commit
echo "<meta http-equiv='refresh' content='0;url=https://github.com/${{ github.repository }}/pull/${{ github.event.issue.number || github.event.pull_request.number }}/commits/${{ github.event.pull_request.head.sha }}'>" > .vercel/output/static/commit/index.html
- name: Download Generated Sounds map
run: node scripts/downloadSoundsMap.mjs
- name: Deploy Project Artifacts to Vercel
Expand All @@ -81,4 +92,7 @@ jobs:
# - run: git checkout next scripts/githubActions.mjs
- name: Set deployment alias
if: ${{ steps.alias.outputs.alias != '' && steps.alias.outputs.alias != 'mcraft.fun' && steps.alias.outputs.alias != 's.mcraft.fun' }}
run: vercel alias set ${{ steps.deploy.outputs.stdout }} ${{ steps.alias.outputs.alias }} --token=${{ secrets.VERCEL_TOKEN }} --scope=zaro
run: |
for alias in $(echo ${{ steps.alias.outputs.alias }} | tr "," "\n"); do
vercel alias set ${{ steps.deploy.outputs.stdout }} $alias --token=${{ secrets.VERCEL_TOKEN }} --scope=zaro
done
9 changes: 5 additions & 4 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ Press `Y` to set query parameters to url of your current game state.

There are some parameters you can set in the url to archive some specific behaviors:

General:

- **`?setting=<setting_name>:<setting_value>`** - Set and lock the setting on load. You can set multiple settings by separating them with `&` e.g. `?setting=autoParkour:true&setting=renderDistance:4`

Server specific:

- `?ip=<server_address>` - Display connect screen to the server on load with predefined server ip. `:<port>` is optional and can be added to the ip.
Expand All @@ -137,6 +141,7 @@ Server specific:
- `?username=<username>` - Set the username for the server
- `?lockConnect=true` - Only works then `ip` parameter is set. Disables cancel/save buttons and all inputs in the connect screen already set as parameters. Useful for integrates iframes.
- `?reconnect=true` - Reconnect to the server on page reloads. Available in **dev mode only** and very useful on server testing.
- `?serversList=<list_or_url>` - `<list_or_url>` can be a list of servers in the format `ip:version,ip` or a url to a json file with the same format (array) or a txt file with line-delimited list of server IPs.

Single player specific:

Expand Down Expand Up @@ -171,10 +176,6 @@ In this case you must use `?mapDirBaseUrl` to specify the base URL to fetch the

<!-- - `?mapDirGuess=<base_url>` - Load the map from the provided URL and paths will be guessed with a few additional fetch requests. -->

General:

- `?setting=<setting_name>:<setting_value>` - Set and lock the setting on load. You can set multiple settings by separating them with `&` e.g. `?setting=autoParkour:true&setting=renderDistance:4`

### Notable Things that Power this Project

- [Mineflayer](https://github.com/PrismarineJS/mineflayer) - Handles all client-side communications with the server (including the builtin one) - forked
Expand Down
14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"scripts": {
"dev-rsbuild": "rsbuild dev",
"dev-proxy": "node server.js",
"start": "run-p dev-rsbuild dev-proxy watch-mesher",
"start": "run-p dev-proxy dev-rsbuild watch-mesher",
"start2": "run-p dev-rsbuild watch-mesher",
"build": "pnpm build-other-workers && rsbuild build",
"build-analyze": "BUNDLE_ANALYZE=true rsbuild build && pnpm build-other-workers",
"check-build": "tsx scripts/genShims.ts && tsc && pnpm build",
Expand Down Expand Up @@ -67,12 +68,12 @@
"esbuild-plugin-polyfill-node": "^0.3.0",
"express": "^4.18.2",
"filesize": "^10.0.12",
"flying-squid": "npm:@zardoy/flying-squid@^0.0.47",
"flying-squid": "npm:@zardoy/flying-squid@^0.0.49",
"fs-extra": "^11.1.1",
"google-drive-browserfs": "github:zardoy/browserfs#google-drive",
"jszip": "^3.10.1",
"lodash-es": "^4.17.21",
"minecraft-data": "3.78.0",
"minecraft-data": "3.80.0",
"minecraft-protocol": "github:PrismarineJS/node-minecraft-protocol#master",
"mineflayer-item-map-downloader": "github:zardoy/mineflayer-item-map-downloader",
"mojangson": "^2.0.4",
Expand All @@ -92,6 +93,7 @@
"react-dom": "^18.2.0",
"react-select": "^5.8.0",
"react-transition-group": "^4.4.5",
"react-zoom-pan-pinch": "3.4.4",
"remark": "^15.0.1",
"sanitize-filename": "^1.6.3",
"skinview3d": "^3.0.1",
Expand Down Expand Up @@ -140,7 +142,7 @@
"http-browserify": "^1.7.0",
"http-server": "^14.1.1",
"https-browserify": "^1.0.0",
"mc-assets": "^0.2.12",
"mc-assets": "^0.2.23",
"minecraft-inventory-gui": "github:zardoy/minecraft-inventory-gui#next",
"mineflayer": "github:zardoy/mineflayer",
"mineflayer-pathfinder": "^2.4.4",
Expand Down Expand Up @@ -172,7 +174,7 @@
"diamond-square": "github:zardoy/diamond-square",
"prismarine-block": "github:zardoy/prismarine-block#next-era",
"prismarine-world": "github:zardoy/prismarine-world#next-era",
"minecraft-data": "3.78.0",
"minecraft-data": "3.80.0",
"prismarine-provider-anvil": "github:zardoy/prismarine-provider-anvil#everything",
"prismarine-physics": "github:zardoy/prismarine-physics",
"minecraft-protocol": "github:PrismarineJS/node-minecraft-protocol#master",
Expand All @@ -187,7 +189,7 @@
"[email protected]": "patches/[email protected]",
"[email protected]": "patches/[email protected]",
"[email protected]": "patches/[email protected]",
"minecraft-protocol@1.50.0": "patches/[email protected]"
"minecraft-protocol@1.51.0": "patches/[email protected]"
}
},
"packageManager": "[email protected]"
Expand Down
Loading
Loading