When applying the warp, do it on the 3D coordinates while you're performing the initial noise evaluation in the first place. I am not super familiar with the Numpy syntax here, but basically you would want to redefine your lambda function so that instead of generating noise(<x, y, z>) or noiseA(<x, y, z> + noiseB(<x, y, z>)) at a particular ...
There is another quite impressive solution for this problem using GPU based raycasting approach together with Depth Peeling and Bezier Clipping algorithms.
Implementation is not straightforward but performance is worth it. Please check the white-paper.
Not sure if Python is good idea for such problem since is more related to shader programming.
If you still ...
You can split it on three elements and only one need for-loop
Top line XXXXXXXXXXXX
print(tile1 * width)
Middle lines XOOOOOOOOOOX
There will be height-2 lines and they will have "X", next "O" * (width-2), next "X"
for i in range(height-2):
print(tile1 + (tile2 * (width-2)) + tile1)
Bottom line XXXXXXXXXXXX
print(tile1 * ...
System sends to programs information about pressed key ("events") only when key changes state from not-pressed to pressed or from pressed to not-pressed (released). It doesn't send events when you hold down key.
You have to use onkeypressed() to set arrow_up_pressed = True and onkeyreleased() to reset arrow_up_pressed = False and ontimer() to run ...
Unfortunately, Minecraft mods are (as far as my knowledge goes) coded in Java. But, you might be able to convert the .py files into .jar using a program such as Jython. I steal it from here:
Distributing Python Scripts as Jar Files with Jython
Minecraft Education Edition (https://education.minecraft.net/) offers an immersive integration with Python, however this requires an educational account so that's not a general solution for everyone.
Besides this, there are a number of Java environments, but I don't know about Python environments. I did find this article: