Better HN
topnewbestaskshowjobs
Log inSign up

_3vsm

1 karma · joined Nov 21, 2022 (4y ago) · 1 submissions

Submissions

comment 11y ago · link · parent

Seeing this, thought I'd share a prototype of mine. For the minecrafters out there who use worldedit: here's a javascript library prototype that lets you draw minecraft scenes. Demo is a doodling of a skeleton grinder: http://babylon.pp19dd.com/ that I made the other year.

Code example goes like something this:

  // var scene = (some babylon js stuff here, - sorry, messy)
  var WE = new Worldedit(scene);
  WE
    .select([-4, 0, -4])
    .set("cobblestone")
    .move([0, 2, 0])
    .select([0, -5, 7], [-1, -1, 6])
    .set("dirt")
Suppose I should consider finishing this library, namely porting it from BabylonJS to three.js, finishing worledit functions, etc but thought it was a fun exploration of babylonjs and raw files from minecraft (the textures are just extracted from the minecraft jar file).