From 822c0601b07a16cab477a67577ce321c882072d2 Mon Sep 17 00:00:00 2001
From: Daniel Karbach <daniel.karbach@localhorst.tv>
Date: Sat, 3 Oct 2015 18:58:19 +0200
Subject: [PATCH] add some generation parameters

three block types of each primary colour

changes to notation and defaults

prototype for gravity blocks
---
 data/default.types            | 210 +++++++++++++++++++++-------------
 textures/gravity-directed.png | Bin 0 -> 488 bytes
 textures/gravity-neutral.png  | Bin 0 -> 568 bytes
 3 files changed, 132 insertions(+), 78 deletions(-)
 create mode 100644 textures/gravity-directed.png
 create mode 100644 textures/gravity-neutral.png

diff --git a/data/default.types b/data/default.types
index 19d5acb..a1515aa 100644
--- a/data/default.types
+++ b/data/default.types
@@ -1,149 +1,203 @@
-white_block = {
-	visible = true;
+white_coarse = {
 	texture = "rock-1";
-	color = [ 1, 1, 1 ];
-	label = "White Block";
-	block_light = true;
-	collision = true;
-	collide_block = true;
+	label = "Coarse White";
 	shape = block;
+	generate = true;
+	mid_solidity = 0.5;
+	max_solidity = 0.75;
+	max_temperature = 0.0;
+	mid_temperature = -0.5;
+};
+white_smooth = {
+	texture = "rock-2";
+	label = "Smooth White";
+	shape = block;
+	generate = true;
+	mid_solidity = 0.6;
+	max_temperature = 0.0;
+	mid_temperature = -0.5;
+};
+white_hard = {
+	texture = "rock-3";
+	label = "Hard White";
+	shape = block;
+	generate = true;
+	min_solidity = 0.7;
+	mid_solidity = 1.0;
+	max_temperature = 0.0;
+	mid_temperature = -0.5;
 };
 white_slab = {
-	visible = true;
 	texture = "rock-1";
-	color = [ 1, 1, 1 ];
 	label = "White Slab";
-	block_light = true;
-	collision = true;
-	collide_block = true;
 	shape = slab;
 };
 white_stair = {
-	visible = true;
 	texture = "rock-1";
-	color = [ 1, 1, 1 ];
 	label = "White Stair";
-	block_light = true;
-	collision = true;
-	collide_block = true;
 	shape = stair;
 };
 
-red_block = {
-	visible = true;
+red_coarse = {
+	texture = "rock-1";
+	rgb_mod = [ 1, 0, 0 ];
+	label = "Coarse Red";
+	shape = block;
+	generate = true;
+	mid_solidity = 0.5;
+	max_solidity = 0.75;
+	min_temperature = 0.0;
+	mid_temperature = 0.5;
+	max_humidity = 0.0;
+	mid_humidity = -0.5;
+};
+red_smooth = {
+	texture = "rock-2";
+	rgb_mod = [ 1, 0, 0 ];
+	label = "Smooth Red";
+	shape = block;
+	generate = true;
+	mid_solidity = 0.6;
+	min_temperature = 0.0;
+	mid_temperature = 0.5;
+	max_humidity = 0.0;
+	mid_humidity = -0.5;
+};
+red_hard = {
 	texture = "rock-3";
-	color = [ 1, 0, 0 ];
-	label = "Red Block";
-	block_light = true;
-	collision = true;
-	collide_block = true;
+	rgb_mod = [ 1, 0, 0 ];
+	label = "Hard Red";
 	shape = block;
+	generate = true;
+	min_solidity = 0.7;
+	mid_solidity = 1.0;
+	min_temperature = 0.0;
+	mid_temperature = 0.5;
+	max_humidity = 0.0;
+	mid_humidity = -0.5;
 };
 red_slab = {
-	visible = true;
 	texture = "rock-3";
-	color = [ 1, 0, 0 ];
+	rgb_mod = [ 1, 0, 0 ];
 	label = "Red Slab";
-	block_light = true;
-	collision = true;
-	collide_block = true;
 	shape = slab;
 };
 red_stair = {
-	visible = true;
 	texture = "rock-3";
-	color = [ 1, 0, 0 ];
+	rgb_mod = [ 1, 0, 0 ];
 	label = "Red Stair";
-	block_light = true;
-	collision = true;
-	collide_block = true;
 	shape = stair;
 };
 
-green_block = {
-	visible = true;
+green_coarse = {
 	texture = "rock-1";
-	color = [ 0, 1, 0 ];
-	label = "Green Block";
-	block_light = true;
-	collision = true;
-	collide_block = true;
+	rgb_mod = [ 0, 1, 0 ];
+	label = "Coarse Green";
+	shape = block;
+	generate = true;
+	mid_solidity = 0.5;
+	max_solidity = 0.75;
+};
+green_smooth = {
+	texture = "rock-2";
+	rgb_mod = [ 0, 1, 0 ];
+	label = "Smooth Green";
 	shape = block;
+	generate = true;
+	mid_solidity = 0.6;
+};
+green_hard = {
+	texture = "rock-3";
+	rgb_mod = [ 0, 1, 0 ];
+	label = "Hard Green";
+	shape = block;
+	generate = true;
+	min_solidity = 0.7;
+	mid_solidity = 1.0;
 };
 green_slab = {
-	visible = true;
 	texture = "rock-1";
-	color = [ 0, 1, 0 ];
+	rgb_mod = [ 0, 1, 0 ];
 	label = "Green Slab";
-	block_light = true;
-	collision = true;
-	collide_block = true;
 	shape = slab;
 };
 green_stair = {
-	visible = true;
 	texture = "rock-1";
-	color = [ 0, 1, 0 ];
+	rgb_mod = [ 0, 1, 0 ];
 	label = "Green Stair";
-	block_light = true;
-	collision = true;
-	collide_block = true;
 	shape = stair;
 };
 
-blue_block = {
-	visible = true;
+blue_coarse = {
+	texture = "rock-1";
+	rgb_mod = [ 0, 0, 1 ];
+	outline = [ 0.75, 0.75, 0.75 ];
+	label = "Coarse Blue";
+	shape = block;
+	generate = true;
+	mid_solidity = 0.5;
+	max_solidity = 0.75;
+	min_humidity = 0.0;
+	mid_humidity = 1.0;
+};
+blue_smooth = {
+	texture = "rock-2";
+	rgb_mod = [ 0, 0, 1 ];
+	outline = [ 0.75, 0.75, 0.75 ];
+	label = "Smooth Blue";
+	shape = block;
+	generate = true;
+	mid_solidity = 0.6;
+	min_humidity = 0.0;
+	mid_humidity = 1.0;
+};
+blue_hard = {
 	texture = "rock-3";
-	color = [ 0, 0, 1 ];
+	rgb_mod = [ 0, 0, 1 ];
 	outline = [ 0.75, 0.75, 0.75 ];
-	label = "Blue Block";
-	block_light = true;
-	collision = true;
-	collide_block = true;
+	label = "Hard Blue";
 	shape = block;
+	generate = true;
+	min_solidity = 0.7;
+	mid_solidity = 1.0;
+	min_humidity = 0.0;
+	mid_humidity = 1.0;
 };
 blue_slab = {
-	visible = true;
 	texture = "rock-3";
-	color = [ 0, 0, 1 ];
+	rgb_mod = [ 0, 0, 1 ];
 	outline = [ 0.75, 0.75, 0.75 ];
 	label = "Blue Slab";
-	block_light = true;
-	collision = true;
-	collide_block = true;
 	shape = slab;
 };
 blue_stair = {
-	visible = true;
 	texture = "rock-3";
-	color = [ 0, 0, 1 ];
+	rgb_mod = [ 0, 0, 1 ];
 	outline = [ 0.75, 0.75, 0.75 ];
 	label = "Blue Stair";
-	block_light = true;
-	collision = true;
-	collide_block = true;
 	shape = stair;
 };
 
+grav_spherical = {
+	texture = "gravity-neutral";
+	label = "Spherical Gravity";
+	shape = block;
+};
+
 light = {
-	visible = true;
 	texture = "rock-2";
-	color = [ 1, 1, 0 ];
+	rgb_mod = [ 1, 1, 0 ];
 	label = "Light";
 	luminosity = 15;
-	block_light = true;
-	collision = true;
-	collide_block = true;
 	shape = block;
+	generate = true;
+	mid_solidity = 0.5;
+	max_solidity = 0.75;
+	commonness = 0.125;
 };
 
 debug = {
-	visible = true;
 	texture = "debug";
-	color = [ 1, 1, 1 ];
 	label = "Debug Cube";
-	block_light = true;
-	collision = true;
-	collide_block = true;
 	shape = block;
 };
diff --git a/textures/gravity-directed.png b/textures/gravity-directed.png
new file mode 100644
index 0000000000000000000000000000000000000000..afffd82441501c67e2ceccab7cb90f618d9ecb3e
GIT binary patch
literal 488
zcmV<E0T=#>P)<h;3K|Lk000e1NJLTq000mG000mO0{{R3C@l|D0002VP)t-s#?sQp
z)6>Vy%*WBu$J5it*4D_#$jHgb$jZvd%ge~p(#grm$;!&g$jHjd%FDsQ%frLZwYAW%
zuhFWi*^G?Z>FL{thuh`l+vw=r+}zyW-rVHm+~wum=H}hq-QD2e-QnTg;^N-b)!x?D
z-re2a-rnBd-{8i^;=8-!W@hAGUgfN;=2%$gnwscTROp+V>6Dc4Vq)-SX7Fig@i8&-
zR#x;SCG<{C_YxBL7Z>{h0sI02{3Rv*78d;%7ybYM{{R601qJ^K3PV^$;{X5v+DSw~
zR2Ufr!3`sW01yV?BVDZvrIIDr$h(q4@{wWP{Qn>2d1x&v8s=^m6r!SMBw$3-Y_{)e
z53HoTNv&_4G8va)1tCFth${xeZ+3&Hq>;t<4Cj`?%~A`6Q(rOY=V8n6$F87!ZW;V&
zb_zza56CqKeEs(R_3DF5%P6ywabd}e)eOg63ib((KR<3xexE9C=bVae^zXi(8JB<O
zRX>F!_0o7(KDavC#uh25H|!c846fos3L(L2SjMDu+TPL)D=EXPyS>>wMPLY>si+h|
e=H{V_%K9J8q#ezI*mHXT0000<MNUMnLSTZB7z7Rg

literal 0
HcmV?d00001

diff --git a/textures/gravity-neutral.png b/textures/gravity-neutral.png
new file mode 100644
index 0000000000000000000000000000000000000000..b83a4b59bd4116ee9999b910c7024eb1f6369ea6
GIT binary patch
literal 568
zcmV-80>}M{P)<h;3K|Lk000e1NJLTq000mG000mO0{{R3C@l|D00036P)t-s#Ny({
z($dD$)5g@)$IZ>h&d$fr&&Scx$JW-!$jHda$;ise$ji&f%*@Er(#grm$;!&g%F4^b
z!_30M&AYqJyu8n~wb81o(W|S|qN3NAm)Mb!*^7(WjEvgp>Dz;Y+vVlk=H}bz=-k}g
z+}_^Y<mBAt<=xrY-QC^Y-{0Nf;N9Wj-Qwci<Ky1e*52OU-rwKf($e6@#^Jra;=8-!
zWMt%CUgca|<)NYGSXkzzrRSNM=bD=8hKB2Ye(gU$?R|ajZ*T8vYVcxW@M&rBE-v&&
zM)o{B_YxBM3=H`Z5&9w``vC#_2nhTd8vOtO{SOcQ5D@(r7ybYM{s;*F009351*~y?
zfB*mh?ny*JR2Ufr!HXh;U=#r0!#4G|>9kO8C0ol8I;2J9+Dw>RIeY&{@qI8xLb3wg
zH$x<(As{QZXSGO^Ck875QYW4inHITKTMifj*;_jC%F*WGTDm9=0<y(9-u)7hM<Z<$
z1Z!5rJMwwA_q@&hDi0y3v)-#*DmKm)yNwCDXrs5^&dv1cAXbt1;7hdn^FEsXwev1(
zqJ!DElNZ@I19>=ASsg%_SN&W0*uR!}H!fxtVA7_&`)?7siXE{D$S4=-`e^H-GjWz4
zBOnjTwsIpaE5tid1f<wV@<ybd*{m30NJto(z8+YFgyVmeG%Bwu+nwV80000<MNUMn
GLSTZ$jxY}Z

literal 0
HcmV?d00001

-- 
2.39.5