JIT
Exploring 3D games similar to Minecraft
3d games like minecraft
Updated files
v1
An error occurred in the code: ``` THREE.PointerLockControls: Unable to use Pointer Lock API ``` Update the code to resolve this issue.
Updated files
v2
An error occurred in the code: ``` SecurityError: Failed to execute 'requestPointerLock' on 'Element': Blocked pointer lock on an element because the element's frame is sandboxed and the 'allow-pointer-lock' permission is not set. at PointerLockControls.lock (https://cdn.jsdelivr.net/npm/three@0.166/examples/jsm/controls/PointerLockControls.js:103:19) at HTMLCanvasElement.<anonymous> (https://preview-otloko--th-m5.app.jit.dev/src/player.js:68:54) ``` Update the code to resolve this issue.
Updated files
v3
all block bug fix

Do you mean when you add/remove or change one block it affects every block (all blocks become the same)? Or describe the exact repro/behavior (what you click, what happens, screenshot or console output).

If it's the "one change affects all blocks" issue I can push a fix now (common safe fixes: clone colors when building geometry and ensure vertex order/winding is consistent). Which would you like me to apply, or share a short repro?

Something went wrong Preview is not available. fix that
Updated files
v4
just 3D bro no first person
Updated files
v5
block bug add player and block textures
Updated files
v6