Maps 3D Art

The Chaos Game - WorldEdit script

  • 1.8k views 0 today
Progress
100% complete
  • 1
  • 0
  • 1
sjrb
Lvl 32Artisan Miner
0
Implementation of The Chaos Game in Minecraft.

This is a simple script that allows you to play the Chaos Game, learn a little about fractals and make some very cool shapes in Minecraft.

Prerequisites:
  • Install WorldEdit and Single Player Commands

  • Copy this script into your 'craftscripts' subfolder under your .minecraft' folder
To use:
  • Select a point to be used as the origin of the shape.

  • Invoke this script by typing: //cs chaosgame <mtl> <type> <divisor> <endpts> <length> <npoints>


Arguments are:
<mtl> = type of material, defaults to 89, glowstone
< type> = type of transformation, where
1 = adding the points (default for Sierpinski)
2 = subtract old point from new
3 = subtract new point from old (#2 but backwards & upside down)
4 = multiply the points (I haven't gotten anything useful from this yet...)
5 = divide the points (I haven't gotten anything useful from this yet either...)
<divisor> = divide the results from the action above by this amount; defaults to '2'
Together, the <type> and <divisor> make up a simple mathematical transform.
An "add" (type of 1) and a "divide by 2" (divisor of 2) can be used to create Sierpinski gaskets & pyramids.
<endpts> = number of target points used by the algorithm
3 = use 3 points to make a triangle
4 = use 4 points to make a tetrahedron (or as close as MC gets...)
5-8 = the other points marking the vertices of a cube
<length> = how big is it... the length of the sides of a cube used in the algorithm
Multiples of 4 work best for the Sierpinski shapes
<npoints> = how many iterations to run; the more points, the more accurate your picture

If no arguments are passed, the script defaults to making a simple Sierpinski gasket

The script may be found here.

*** IT IS VERY EASY TO SCREW UP YOUR MC WORLD WITH THIS SCRIPT!!!
*** IT MAKES BIG THINGS....
*** USE WITH CARE!!! EXPERIMENT SOMEWHERE SAFE FIRST!!!
*** I AM STILL EXPERIMENTING WITH THIS MYSELF!!!

Many thanks and kudos to inHaze for his coil scripts.
Also thanks to "MyCatVerbs" on YouTube for his square_tower.js script.
I learned a lot from those two scripts.
Also many thanks to sk89q for the brilliant work on WorldEdit.

More like this

  Have something to say?

TitaniusAnglesmith
01/02/2012 3:46 pm
Level 12 : Journeyman Narwhal
So it makes triforces inside of triforces inside of triforces

Triforceception?
1

Welcome