Comment by senfiaj

3 days ago

When I turn off JS, it shows a loader instead of the terrain. Is this really CSS-Only? I mean it's still a high achievement even with JS, but was expecting it would also work without JS. This one, for example, truly works without JS https://benjaminaster.com/css-minecraft/ .

I'm assuming it's the render engine that is in pure CSS. You could display a static map in CSS but things like the tools to modify the terrain definitely need JS.

  • You might not need it using the new :has() and different inputs as modifiers. Though that's a lot of :has() and probably would kill performance.

  • I wanted to check if your assumption is correct but I couldn’t find the source code.

    Why do you think the renderer is pure css and not e.g. mostly css?

  • GP linked an example of a similar project that allowed you to modify the terrain without any JS at all

I think what's intended is that the completed and downloaded solution doesn't require any javascript.

Build something then hit the Download Code button - that packaged HTML solution doesn't require any javascript to render locally.

  • Yeah, it worked, it seems to be a static rendered html with no interactivity though.