Open qfcy opened 1 year ago
Nice!
I would love a mod like this. Though it is already possible to break bedrock in Minekhan without changing any code. You just have to break save codes by putting them through certain versions in certain ways. Its still kinda complicated tho lol
1.MOD In a bid to apply my MOD, you could modify the source code like this:
①Play music after entering the world.
② Stop the music when returning to the main menu.
③The main code above the
window.onload
method.For the adapted source code,please refer to my fork github.com/qfcy/MineKhan-extended. Additionally,the original file of music.ogg is hal3.ogg. I hope my contribution could be valuable.
2.Some useful commands 👍 Although the game does not have a command feature, you can still use commands in the developer tool. Firstly, use F12 to open the developer tools of your browser, and switch to the Console tab to enter the commands.
Player
player.x=n
;player.y=n
; player.z=n : Set the coordinates of a player. If you teleport yourself into an unloaded chunk, the game tick will stop. This could be resolved by exiting and re-entering the world. However, severe distance effects will occur at high coordinates, especially beyond X/Z: ±16384, as the rendering uses single-precision floating-point numbers.player.gravityStrength=n
: Set the value of gravity. If the value is set to 0, the player will gain weightlessness. Worldworld.tickCount=n
: Adjust the time of the world. 0<n<=6000: Day. (This is different from Minecraft) 6000<n<=12000: Night.The value n beyond 12000 is also acceptable. Example:world.tickCount = 8000
world.setBlock(x,y,z,blockID,lazy,remote)
: Place a block in the world, and it's recommended to set lazy and remote to false. The blockID of 0 refers to the air. You can use this to destroy any existing blocks. Example:world.setBlock(0, 0, 0, 0, false, false)
However, destroying a block at the bedrock layer(y=0) will allow the player to fall into the void.3.A few screenshots The void. The severely twisted world beyond X/Z:±8388608.