Skip to content

Commit 2b51790

Browse files
committed
End of vegetate brush
1 parent e4dc205 commit 2b51790

12 files changed

+3505
-7
lines changed

data/raytracer/functions/brush.mcfunction

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
execute as @s[tag=vegetate,scores={brushRad=1}] at @s unless block ^ ^ ^1 #raytracer:transparent run function raytracer:brushsize/vegetate_r1
2+
execute as @s[tag=vegetate,scores={brushRad=2}] at @s unless block ^ ^ ^1 #raytracer:transparent run function raytracer:brushsize/vegetate_r2
3+
execute as @s[tag=vegetate,scores={brushRad=3}] at @s unless block ^ ^ ^1 #raytracer:transparent run function raytracer:brushsize/vegetate_r3
4+
execute as @s[tag=vegetate,scores={brushRad=5}] at @s unless block ^ ^ ^1 #raytracer:transparent run function raytracer:brushsize/vegetate_r5
5+
execute as @s[tag=vegetate,scores={brushRad=7}] at @s unless block ^ ^ ^1 #raytracer:transparent run function raytracer:brushsize/vegetate_r7
26

37

48
execute as @s[tag=push,scores={brushRad=1}] at @s unless block ^ ^ ^1 #raytracer:transparent run function raytracer:brushsize/push_r1

data/raytracer/functions/brushsize/vegetate/place_block.mcfunction

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function rand:rand
22

3-
scoreboard players operation rand% rand %= Ten vegetate_percent
3+
scoreboard players operation rand% rand %= hundred vegetate_percent
44

55
execute if score rand% rand matches 0 run setblock ~ ~1 ~ grass keep
66
execute if score rand% rand matches 1 run setblock ~ ~1 ~ grass keep
@@ -101,4 +101,4 @@ execute if score rand% rand matches 95 run setblock ~ ~1 ~ grass keep
101101
execute if score rand% rand matches 96 run setblock ~ ~1 ~ grass keep
102102
execute if score rand% rand matches 97 run setblock ~ ~1 ~ poppy keep
103103
execute if score rand% rand matches 98 run setblock ~ ~1 ~ dandelion keep
104-
execute if score rand% rand matches 99 run setblock ~ ~1 ~ blue_orchid keep
104+
execute if score rand% rand matches 99 run setblock ~ ~1 ~ fern keep

data/raytracer/functions/brushsize/vegetate/vegetate_loop_r1.mcfunction

-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
2-
31
function rand:rand
42

5-
63
scoreboard players operation rand% rand %= BrushR1 vegetate_percent
74

85
execute as @s at @s if score rand% rand matches 0 positioned ~-1 ~-1 ~-1 unless entity @e[type=armor_stand,name=placeVegetate,distance=0] run summon armor_stand ~ ~ ~ {CustomName:"{\"text\":\"placeVegetate\"}",Marker:1,Invisible:1,NoGravity:1}
@@ -33,6 +30,5 @@ execute as @s at @s if score rand% rand matches 25 positioned ~1 ~1 ~-1 unless e
3330
execute as @s at @s if score rand% rand matches 26 positioned ~1 ~1 ~0 unless entity @e[type=armor_stand,name=placeVegetate,distance=0] run summon armor_stand ~ ~ ~ {CustomName:"{\"text\":\"placeVegetate\"}",Marker:1,Invisible:1,NoGravity:1}
3431
execute as @s at @s if score rand% rand matches 27 positioned ~1 ~1 ~1 unless entity @e[type=armor_stand,name=placeVegetate,distance=0] run summon armor_stand ~ ~ ~ {CustomName:"{\"text\":\"placeVegetate\"}",Marker:1,Invisible:1,NoGravity:1}
3532

36-
3733
scoreboard players add @s vegetate_loop_c 1
3834
execute as @s at @s if score @s vegetate_loop_c < @s vegetate_loop run function raytracer:brushsize/vegetate/vegetate_loop_r1

data/raytracer/functions/brushsize/vegetate/vegetate_loop_r2.mcfunction

+100
Large diffs are not rendered by default.

data/raytracer/functions/brushsize/vegetate/vegetate_loop_r3.mcfunction

+258
Large diffs are not rendered by default.

data/raytracer/functions/brushsize/vegetate/vegetate_loop_r5.mcfunction

+905
Large diffs are not rendered by default.

data/raytracer/functions/brushsize/vegetate/vegetate_loop_r7.mcfunction

+2,111
Large diffs are not rendered by default.

data/raytracer/functions/brushsize/vegetate_r1.mcfunction

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ scoreboard players operation vegetate_loop vegetate_percent *= Two vegetate_perc
2222

2323

2424
execute as @e[type=armor_stand,name=centerVegetate] at @s run function raytracer:brushsize/vegetate/vegetate_loop_r1
25-
execute as @e[type=armor_stand,name=placeVegetate] at @s if block ~ ~ ~ #raytracer:solid run function raytracer:brushsize/vegetate/place_block
25+
execute as @e[type=armor_stand,name=placeVegetate] at @s if block ~ ~ ~ minecraft:grass_block run function raytracer:brushsize/vegetate/place_block
2626
#execute as @e[type=armor_stand,name=placeGravel] at @s run kill @e[type=minecraft:item,nbt={Item:{id:"minecraft:gravel"}}]
2727

2828

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
summon armor_stand ~0 ~0 ~0 {CustomName:"{\"text\":\"centerVegetate\"}",Marker:1,Invisible:1,NoGravity:1}
2+
3+
4+
5+
scoreboard players set Two vegetate_percent 2
6+
scoreboard players set BrushR2 vegetate_percent 92
7+
scoreboard players set hundred vegetate_percent 100
8+
9+
10+
11+
scoreboard players operation @e[type=armor_stand,name=centerVegetate] vegetate_loop = BrushR2 vegetate_percent
12+
scoreboard players operation @e[type=armor_stand,name=centerVegetate] vegetate_loop *= percent vegetate_percent
13+
scoreboard players operation @e[type=armor_stand,name=centerVegetate] vegetate_loop /= hundred vegetate_percent
14+
scoreboard players operation @e[type=armor_stand,name=centerVegetate] vegetate_loop *= Two vegetate_percent
15+
16+
17+
scoreboard players operation vegetate_loop vegetate_percent = BrushR2 vegetate_percent
18+
scoreboard players operation vegetate_loop vegetate_percent *= percent vegetate_percent
19+
scoreboard players operation vegetate_loop vegetate_percent /= hundred vegetate_percent
20+
21+
scoreboard players operation vegetate_loop vegetate_percent *= Two vegetate_percent
22+
23+
24+
execute as @e[type=armor_stand,name=centerVegetate] at @s run function raytracer:brushsize/vegetate/vegetate_loop_r2
25+
execute as @e[type=armor_stand,name=placeVegetate] at @s if block ~ ~ ~ minecraft:grass_block run function raytracer:brushsize/vegetate/place_block
26+
#execute as @e[type=armor_stand,name=placeGravel] at @s run kill @e[type=minecraft:item,nbt={Item:{id:"minecraft:gravel"}}]
27+
28+
29+
30+
kill @e[type=armor_stand,name=centerVegetate]
31+
kill @e[type=armor_stand,name=placeVegetate]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
summon armor_stand ~0 ~0 ~0 {CustomName:"{\"text\":\"centerVegetate\"}",Marker:1,Invisible:1,NoGravity:1}
2+
3+
4+
5+
scoreboard players set Two vegetate_percent 2
6+
scoreboard players set BrushR3 vegetate_percent 251
7+
scoreboard players set hundred vegetate_percent 100
8+
9+
10+
11+
scoreboard players operation @e[type=armor_stand,name=centerVegetate] vegetate_loop = BrushR3 vegetate_percent
12+
scoreboard players operation @e[type=armor_stand,name=centerVegetate] vegetate_loop *= percent vegetate_percent
13+
scoreboard players operation @e[type=armor_stand,name=centerVegetate] vegetate_loop /= hundred vegetate_percent
14+
scoreboard players operation @e[type=armor_stand,name=centerVegetate] vegetate_loop *= Two vegetate_percent
15+
16+
17+
scoreboard players operation vegetate_loop vegetate_percent = BrushR2 vegetate_percent
18+
scoreboard players operation vegetate_loop vegetate_percent *= percent vegetate_percent
19+
scoreboard players operation vegetate_loop vegetate_percent /= hundred vegetate_percent
20+
21+
scoreboard players operation vegetate_loop vegetate_percent *= Two vegetate_percent
22+
23+
24+
execute as @e[type=armor_stand,name=centerVegetate] at @s run function raytracer:brushsize/vegetate/vegetate_loop_r3
25+
execute as @e[type=armor_stand,name=placeVegetate] at @s if block ~ ~ ~ minecraft:grass_block run function raytracer:brushsize/vegetate/place_block
26+
#execute as @e[type=armor_stand,name=placeGravel] at @s run kill @e[type=minecraft:item,nbt={Item:{id:"minecraft:gravel"}}]
27+
28+
29+
30+
kill @e[type=armor_stand,name=centerVegetate]
31+
kill @e[type=armor_stand,name=placeVegetate]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
summon armor_stand ~0 ~0 ~0 {CustomName:"{\"text\":\"centerVegetate\"}",Marker:1,Invisible:1,NoGravity:1}
2+
3+
4+
5+
scoreboard players set Two vegetate_percent 2
6+
scoreboard players set BrushR5 vegetate_percent 896
7+
scoreboard players set hundred vegetate_percent 100
8+
9+
10+
11+
scoreboard players operation @e[type=armor_stand,name=centerVegetate] vegetate_loop = BrushR5 vegetate_percent
12+
scoreboard players operation @e[type=armor_stand,name=centerVegetate] vegetate_loop *= percent vegetate_percent
13+
scoreboard players operation @e[type=armor_stand,name=centerVegetate] vegetate_loop /= hundred vegetate_percent
14+
scoreboard players operation @e[type=armor_stand,name=centerVegetate] vegetate_loop *= Two vegetate_percent
15+
16+
17+
scoreboard players operation vegetate_loop vegetate_percent = BrushR2 vegetate_percent
18+
scoreboard players operation vegetate_loop vegetate_percent *= percent vegetate_percent
19+
scoreboard players operation vegetate_loop vegetate_percent /= hundred vegetate_percent
20+
21+
scoreboard players operation vegetate_loop vegetate_percent *= Two vegetate_percent
22+
23+
24+
execute as @e[type=armor_stand,name=centerVegetate] at @s run function raytracer:brushsize/vegetate/vegetate_loop_r5
25+
execute as @e[type=armor_stand,name=placeVegetate] at @s if block ~ ~ ~ minecraft:grass_block run function raytracer:brushsize/vegetate/place_block
26+
#execute as @e[type=armor_stand,name=placeGravel] at @s run kill @e[type=minecraft:item,nbt={Item:{id:"minecraft:gravel"}}]
27+
28+
29+
30+
kill @e[type=armor_stand,name=centerVegetate]
31+
kill @e[type=armor_stand,name=placeVegetate]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
summon armor_stand ~0 ~0 ~0 {CustomName:"{\"text\":\"centerVegetate\"}",Marker:1,Invisible:1,NoGravity:1}
2+
3+
4+
5+
scoreboard players set Two vegetate_percent 2
6+
scoreboard players set BrushR7 vegetate_percent 2104
7+
scoreboard players set hundred vegetate_percent 100
8+
9+
10+
11+
scoreboard players operation @e[type=armor_stand,name=centerVegetate] vegetate_loop = BrushR7 vegetate_percent
12+
scoreboard players operation @e[type=armor_stand,name=centerVegetate] vegetate_loop *= percent vegetate_percent
13+
scoreboard players operation @e[type=armor_stand,name=centerVegetate] vegetate_loop /= hundred vegetate_percent
14+
scoreboard players operation @e[type=armor_stand,name=centerVegetate] vegetate_loop *= Two vegetate_percent
15+
16+
17+
scoreboard players operation vegetate_loop vegetate_percent = BrushR2 vegetate_percent
18+
scoreboard players operation vegetate_loop vegetate_percent *= percent vegetate_percent
19+
scoreboard players operation vegetate_loop vegetate_percent /= hundred vegetate_percent
20+
21+
scoreboard players operation vegetate_loop vegetate_percent *= Two vegetate_percent
22+
23+
24+
execute as @e[type=armor_stand,name=centerVegetate] at @s run function raytracer:brushsize/vegetate/vegetate_loop_r7
25+
execute as @e[type=armor_stand,name=placeVegetate] at @s if block ~ ~ ~ minecraft:grass_block run function raytracer:brushsize/vegetate/place_block
26+
#execute as @e[type=armor_stand,name=placeGravel] at @s run kill @e[type=minecraft:item,nbt={Item:{id:"minecraft:gravel"}}]
27+
28+
29+
30+
kill @e[type=armor_stand,name=centerVegetate]
31+
kill @e[type=armor_stand,name=placeVegetate]

0 commit comments

Comments
 (0)