Skip to content

A three.js voxel painter / generator that outputs to a Minecraft command block code

License

Notifications You must be signed in to change notification settings

deanfra/voxelcraft

Repository files navigation

Minecraft voxel generator

Built upon the three.js voxel painter example

Initially built as a simple voxel painter that allows you to export your design to a Minecraft version 1.19 command block.

Open the app on Netlify

Possible features and improvements to come:

Features

  • Update saved a template (rather than create/delete)
  • Paint mode
  • Shape mode
  • Larger grid area
  • Windows for house & building generation
  • Slabs (with orientation)
  • Logs with orientation
  • Mirror Voxels on y/z axis
  • Stairs (with orientation)
  • More UI controls for randomizers
  • Frames for house generation
  • Roofs for house generation
  • Mirror Voxels x
  • Flip model x/y/z
  • Move model x/y/z
  • Prefilled example
  • Texture selection
  • House generator
  • Building generator

Develop

npm install

npm run start

You can run a dev server on: localhost:8080

Build

npm run build

Assets will be built to ./dist

Test

npm run test

Export to minecraft

  1. Click the "Generate command code" link.
  2. Copy the command block code that is generated
  3. In minecraft, open the terminal with /
  4. Give yourself a command block /give <player_name> minecraft:command_block
  5. Place the command block where you'd like
  6. Right click the command block to bring up the options
  7. Paste the generated code in the the text field and click "Done"
  8. Activate it with redstone, or select "Always Active" to trigger it immediately

The design will generate 1 block above the command block, and the code will auto-delete the command block. You can bury the command block below the ground to make your design sit on the ground.

About

A three.js voxel painter / generator that outputs to a Minecraft command block code

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published