sciner / webcraft Goto Github PK
View Code? Open in Web Editor NEWMinecraft clone on JS
License: MIT License
Minecraft clone on JS
License: MIT License
When i try spawn bee by command:
Game.player.chat.sendMessage('/spawnmob 3880 71 2527 bee base');
I receive error in console:
mob_model.js:246 Uncaught TypeError: Cannot read properties of null (reading 'quat')
at MobAnimation.head (mob_model.js:246)
at MobAnimator.applyAnimation (mob_model.js:207)
at MobAnimator.update (mob_model.js:189)
at MobModel.update (mob_model.js:384)
at MobModel.draw (mob_model.js:390)
at Renderer.drawMobs (render.js:523)
at Renderer.draw (render.js:434)
at GameClass.loop (game.js:351)
Subj.
There's a bug in windows, preventing of use built-in anisotropy: https://bugs.chromium.org/p/angleproject/issues/detail?id=4994
However we can use https://developer.mozilla.org/en-US/docs/Web/API/OES_standard_derivatives, which always supported in WebGL2 to calculate the number of mip, and calculate offset for texture coords in terrain texture.
proper terrain + mask can be generated with heavy canvas2d manipulations.
Hello, can you please add a License file and use a license for your Project?
Maybe the same as prismarineJS (MIT License)?
Thank you.
How to see the players body like 3rd person
Lmk if it works or if you want it down or anything http://159.223.158.113/
Hey, so when I try to play the demo on the website, it says bad gateway and everything’s fine but it says host error in so I’m trying to figure out what’s going on
When you mine blocks, they disappear slowly and you can see through the whole world.
Also when you mine blocks under another player, the player is not falling down to the blocks underneath.
Debugger listening on ws://127.0.0.1:9229/b3cf079b-097c-4cbd-ba79-7dba6f75138a
For help, see: https://nodejs.org/en/docs/inspector
file:///C:/Users/nabil/OneDrive/Bureau/webcraft-dev-chunk-batch/node_server/index.js:16
import features from "../www/vendors/prismarine-physics/lib/features.json" assert { type: "json" };
^^^^^^
SyntaxError: Unexpected identifier
←[90m at Loader.moduleStrategy (internal/modules/esm/translators.js:145:18)←[39m
←[90m at async link (internal/modules/esm/module_job.js:47:21)←[39m
Press any key to continue . . .
Hi @sciner
I checkout the latest commit and run but i got this error on macOS:
Last login: Fri Sep 3 23:38:13 on ttys000
apple@Apples-iMac webcraft % go run ./main.go
# whiteframe.ru/webcraft/Type
Type/World.go:37:24: this.getDirectoryCTime undefined (type *World has no field or method getDirectoryCTime)
apple@Apples-iMac webcraft %
Hi
I am trying to run: go run ./main.go
But I have this error on the terminal, please help
# runtime/cgo
In file included from gcc_darwin_amd64.c:6:
/usr/local/include/pthread.h:331:6: error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
/usr/local/include/pthread.h:200:2: note: expanded from macro '_PTHREAD_SWIFT_IMPORTER_NULLABILITY_COMPAT'
/usr/local/include/pthread.h:331:6: error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
/usr/local/include/pthread.h:200:34: note: expanded from macro '_PTHREAD_SWIFT_IMPORTER_NULLABILITY_COMPAT'
/usr/local/include/pthread.h:540:6: error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
/usr/local/include/pthread.h:200:2: note: expanded from macro '_PTHREAD_SWIFT_IMPORTER_NULLABILITY_COMPAT'
/usr/local/include/pthread.h:540:6: error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
/usr/local/include/pthread.h:200:34: note: expanded from macro '_PTHREAD_SWIFT_IMPORTER_NULLABILITY_COMPAT'
go version
go version go1.16.6 darwin/amd64
Hi there!
Can we wrap around the client with some game engine to build a "native feeling like" android client?
So we can reach more users and have the mobility of playing this game (like https://www.classicube.net/)
Thank you so much!
WebCraft is really an awesome project!
Uncaught TypeError: lastBuffer.destroy is not a function
at TrivialGeometryPool.alloc (GeometryPool.js:28:24)
at Chunk.applyVertices (chunk.js:262:65)
at ChunkManager.prepareRenderList (chunk_manager.js:282:27)
at Renderer.update (render.js:516:12)
at GameClass.loop (game.js:477:25)
Hi @sciner
I just start the server and run http://localhost:5700
I can see the world in Demo Server mode
But when creating a new game, I only see the sky, no blocks
Lets take a moment to admire how smart this sciner kid is. This is a massive project that runs completely in the web and uses java texture packs. He wrote all of the shaders which are ridiculously complicated, and decided to not even use a library like threejs. I am in awe
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.