Minecraft Maps / Redstone Device

32x32x32 Perfect Objects ( Sphere, Torus, Octahedron ) generated on-the-fly with command blocks!

  • 3,334 views, 15 today
  • 133 downloads, 1 today
  • 2
  • 1
  • 2
keani's Avatar keani
Level 7 : Apprentice Miner
1
DOWNLOAD

mediafire ( 14.1MB )


THEORY

a lot of 3d shapes can be described as an implicit equation, i'm saying the graph of a function with 3 parameters (x,y,z) creates a 3d surface,( see Wikipedia Graphs),

for example the equation to form a x-y plane is "z", so any position below will be less than zero, and any position above, greater than zero, in the between, at exactly z=0, the result is 0, there is the surface, at the 'zero'


(this site has some functions of primitive types, and also a interative visualization)


MINECRAFT


to implement the solving of equation, first i need to use scoreboards to pass in the x,y,z values
so i've created 3 dummy scores: pos_x,pos_y,pos_z
and i've created a system that summons 256 armor stands, each with their correspondent scoreboard of their positions
( starting at zero and going to 7 in each direction)


after realising that is too small room to plot anything, i've made a teleporter system to move all armor stands in all directions,
so they can go to 64 "domains"


a lot of command blocks does the actual calculation, so it's basically a
/execute @e[name=V] ~ ~ ~ /scoreboard players operation @e[name=V,r=0] tempa = @e[name=V,r=0] pos_x
to set tempa score the value of pos_x

and so on, all four operations (+,-,*,/) with four temp scoreboards can calculate almost any function that don't need a square root or any other complicated function (sin(x), cos(x), tang(x), PI, any floating point etc...)


note: although Floating-Point is not supported, one can use Fixed-Point math, to integers using integers to do fractional calculations, without any complicated system


Note 2: Any English spelling error is because I'm from Brazil and I am not an expert in English



video
Progress90% complete
Tags

Create an account or sign in to comment.

1
02/28/2016 4:54 pm
Level 7 : Apprentice Miner
keani
keani's Avatar
i'm working in a way to make easier to choose graphs, and combine them... also scale the graph, and choose the resolution, from 8x8x8, to possibly more than 64x64x64, although will take a lot of time of 100% cpu usage to draw bigger graphs
1
02/28/2016 10:25 am
Level 30 : Artisan Chef
Avixey
Avixey's Avatar
God dam.. math genius xD
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome