Skip to content

Commit 54c1684

Browse files
committed
Realease commit
1 parent 2b51790 commit 54c1684

22 files changed

+114
-66
lines changed

README.md

+12-11
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
# VTP
22

33
It's a fork of Vanilla Terraforming Pack ([Original author](https://www.planetminecraft.com/mod/vanilla-terraforming-pack-datapack-4124905/)).
4-
I modified it to be compatible with BlingEdit
54

6-
## Road map
7-
8-
* Vegetate brush
95

106
## Utilisation
117

128
### Commands:
13-
`/function vtp:option`: Displays brush options and how to get them
9+
`/function vtp:menu`: Displays brush options and how to get them
1410

1511
`/function vtp:fixwater`: Filled with water a closed area of 30 * 30 around you
1612

@@ -42,24 +38,29 @@ I modified it to be compatible with BlingEdit
4238

4339
`Stencils`: Brush to put a stencil
4440

41+
`Gravel` : Setblock gravel relative to a percentage
42+
43+
`Vegetate` : Setblock grass relative to a percentage
44+
4545
### Stencils:
4646

47-
You can create stencils either using BlingEdit or with the structure block
47+
You can create stencils either using BlingEdit.
4848

4949
#### With BlingEdit:
5050

51-
Install BlingEdit on your world Link [here](https://drive.google.com/file/d/1XgJ2_PHpiAnWSMkLqOwht88zwJG0AVeK/view)
51+
Install BlingEdit on your world Link [here](https://www.reddit.com/r/BlingEdit/comments/9pdd2w/subreddit_plugin_list/)
5252

5353
Select a area click on Plugin and click again on VTP - Create Stencils
5454

5555
A block structure appears under your feet. Name the stencils.
5656

57-
#### With Structre block
58-
59-
Place two structure blocks in opposite side on the structure
60-
Place a third structure block near and name the stencils and save
6157

6258
#### Name the stencils
6359
`stencils:stencilsx/y`
6460
X is the channel on stencils
6561
Y is the number of stencils
62+
63+
64+
## Warning!!
65+
66+
The large brush can induce lag especially by putting the percentage of brush vegetate and gravel

data/Functions.txt

+19-13
Large diffs are not rendered by default.
+12-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
give @s minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Clean\",\"color\":\"gray\"}"}}
2-
give @s minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Push\",\"color\":\"dark_red\"}"}}
3-
give @s minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Pull\",\"color\":\"dark_green\"}"}}
4-
give @s minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Smooth\",\"color\":\"blue\"}"}}
5-
give @s minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Melt\",\"color\":\"red\"}"}}
6-
give @s minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Lift\",\"color\":\"green\"}"}}
7-
give @s minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Paintbrush\",\"color\":\"dark_purple\"}"}}
8-
give @s minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Tree\",\"color\":\"green\"}"}}
2+
give @s minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Push\",\"color\":\"gray\"}"}}
3+
give @s minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Pull\",\"color\":\"gray\"}"}}
4+
give @s minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Smooth\",\"color\":\"gray\"}"}}
5+
give @s minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Melt\",\"color\":\"gray\"}"}}
6+
give @s minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Lift\",\"color\":\"gray\"}"}}
7+
give @s minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Paintbrush\",\"color\":\"gray\"}"}}
8+
give @s minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Tree\",\"color\":\"gray\"}"}}
9+
give @s minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Vegetate\",\"color\":\"gray\"}"}}
10+
give @s minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Stencils\",\"color\":\"gray\"}"}}
11+
give @s minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Gravel\",\"color\":\"gray\"}"}}
12+
13+
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
give @s minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Lift\",\"color\":\"green\"}"}}
1+
give @s minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Lift\",\"color\":\"gray\"}"}}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
give @s minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Melt\",\"color\":\"red\"}"}}
1+
give @s minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Melt\",\"color\":\"gray\"}"}}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
give @s minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Paintbrush\",\"color\":\"dark_purple\"}"}}
1+
give @s minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Paintbrush\",\"color\":\"gray\"}"}}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
give @s minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Pull\",\"color\":\"dark_green\"}"}}
1+
give @s minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Pull\",\"color\":\"gray\"}"}}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
give @s minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Push\",\"color\":\"dark_red\"}"}}
1+
give @s minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Push\",\"color\":\"gray\"}"}}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
give @s minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Smooth\",\"color\":\"blue\"}"}}
1+
give @s minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Smooth\",\"color\":\"gray\"}"}}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
give @s minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Tree\",\"color\":\"green\"}"}}
1+
give @s minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Tree\",\"color\":\"gray\"}"}}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
give @s minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Vegatate\",\"color\":\"gray\"}"}}
1+
give @s minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Vegetate\",\"color\":\"gray\"}"}}

data/raytracer/functions/init.mcfunction

+6-5
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ scoreboard objectives add blockCount dummy
1313
scoreboard objectives add gravel_loop dummy
1414
scoreboard objectives add gravel_loop_c dummy
1515
scoreboard objectives add gravel_percent dummy
16-
scoreboard players set percent gravel_percent 10
16+
1717

1818
scoreboard objectives add vegetate_loop dummy
1919
scoreboard objectives add vegetate_loop_c dummy
2020
scoreboard objectives add vegetate_percent dummy
21-
scoreboard players set percent vegetate_percent 10
21+
2222

2323
#Settings
2424
scoreboard objectives add Settings dummy
@@ -65,10 +65,11 @@ execute positioned 8 255 -8 as @a[distance=15..] store result score @s PlayerPos
6565

6666
function vtp:welcome
6767
#execute store result score forceload Chunk run forceload query 0 -1
68-
execute store success score loaded Chunk run setblock 11 255 -8 stone
69-
execute if score forceload Chunk matches 0 run tellraw @a ["",{"text":"[I]","color":"gold"},{"text":"Chunk 0 -1 wasn't loaded. Use ","color":"none"},{"text":"/forceload add 0 -1","color":"aqua","underlined":true,"clickEvent":{"action":"suggest_command","value":"/forceload add 0 -1"}},{"text":"\nAtfer reload the datapack","color":"none","underlined":false}]
70-
execute if score forceload Chunk matches 0 run scoreboard players set forceload Chunk 1
68+
#execute store success score loaded Chunk run setblock 11 255 -8 stone
69+
#execute if score forceload Chunk matches 0 run tellraw @a ["",{"text":"[I]","color":"gold"},{"text":"Chunk 0 -1 wasn't loaded. Use ","color":"none"},{"text":"/forceload add 0 -1","color":"aqua","underlined":true,"clickEvent":{"action":"suggest_command","value":"/forceload add 0 -1"}},{"text":"\nAtfer reload the datapack","color":"none","underlined":false}]
70+
#execute if score forceload Chunk matches 0 run scoreboard players set forceload Chunk 1
7171
#{"command":"tellraw @a %s","jobject":[{"text":"[I]","color":"gold"},{"text":"Chunk 0 -1 wasn't loaded. Use "},{"text":"/forceload add 0 -1","color":"aqua","underlined":true,"clickEvent":{"action":"suggest_command","value":"/forceload add 0 -1"}},{"text":"\\nAtfer reload the datapack"}],"jtemplate":"tellraw"}
72+
tellraw @a ["",{"text":"[I]","color":"gold"},{"text":"Chunk 0 -1 wasn't loaded. Use ","color":"none"},{"text":"/forceload add 0 -1","color":"aqua","underlined":true,"clickEvent":{"action":"suggest_command","value":"/forceload add 0 -1"}},{"text":"\nAtfer reload the datapack","color":"none","underlined":false}]
7273
fill 11 253 -2 5 254 -14 white_concrete keep
7374
fill 6 254 -13 10 254 -9 air replace white_concrete
7475
fill 6 254 -7 10 254 -3 air replace white_concrete

data/raytracer/functions/main.mcfunction

+14-14
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,26 @@ execute as @a[scores={click_vtp=1..},tag=VTP] at @s run summon minecraft:armor_s
22
execute as @a[scores={click_vtp=1..},tag=VTP] at @s run tp @e[type=armor_stand,name=ray,limit=1,sort=nearest] @s
33

44
execute as @a[scores={click_vtp=1..},tag=VTP,nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{Unbreakable:1,display:{Name:"{\"text\":\"Clean\",\"color\":\"gray\"}"}}}}] at @s run tag @e[type=armor_stand,name=ray,distance=0..2,limit=1] add clean
5-
execute as @a[scores={click_vtp=1..},tag=VTP,nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{Unbreakable:1,display:{Name:"{\"text\":\"Push\",\"color\":\"dark_red\"}"}}}}] at @s run tag @e[type=armor_stand,name=ray,distance=0..2,limit=1] add push
6-
execute as @a[scores={click_vtp=1..},tag=VTP,nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{Unbreakable:1,display:{Name:"{\"text\":\"Pull\",\"color\":\"dark_green\"}"}}}}] at @s run tag @e[type=armor_stand,name=ray,distance=0..2,limit=1] add pull
7-
execute as @a[scores={click_vtp=1..},tag=VTP,nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{Unbreakable:1,display:{Name:"{\"text\":\"Melt\",\"color\":\"red\"}"}}}}] at @s run tag @e[type=armor_stand,name=ray,distance=0..2,limit=1] add melt
8-
execute as @a[scores={click_vtp=1..},tag=VTP,nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{Unbreakable:1,display:{Name:"{\"text\":\"Lift\",\"color\":\"green\"}"}}}}] at @s run tag @e[type=armor_stand,name=ray,distance=0..2,limit=1] add lift
9-
execute as @a[scores={click_vtp=1..},tag=VTP,nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{Unbreakable:1,display:{Name:"{\"text\":\"Smooth\",\"color\":\"blue\"}"}}}}] at @s run tag @e[type=armor_stand,name=ray,distance=0..2,limit=1] add smooth
10-
execute as @a[scores={click_vtp=1..},tag=VTP,nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{Unbreakable:1,display:{Name:"{\"text\":\"Paintbrush\",\"color\":\"dark_purple\"}"}}}}] at @s run tag @e[type=armor_stand,name=ray,distance=0..2,limit=1] add paintbrush
11-
execute as @a[scores={click_vtp=1..},tag=VTP,tag=ground,nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{Unbreakable:1,display:{Name:"{\"text\":\"Paintbrush\",\"color\":\"dark_purple\"}"}}}}] at @s run tag @e[type=armor_stand,name=ray,distance=0..2,limit=1] add ground
12-
execute as @a[scores={click_vtp=1..},tag=VTP,tag=up,nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{Unbreakable:1,display:{Name:"{\"text\":\"Paintbrush\",\"color\":\"dark_purple\"}"}}}}] at @s run tag @e[type=armor_stand,name=ray,distance=0..2,limit=1] add top
13-
14-
execute as @a[scores={click_vtp=1..},tag=VTP,nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{Unbreakable:1,display:{Name:"{\"text\":\"Tree\",\"color\":\"green\"}"}}}}] at @s run tag @e[type=armor_stand,name=ray,distance=0..2,limit=1] add tree
5+
execute as @a[scores={click_vtp=1..},tag=VTP,nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{Unbreakable:1,display:{Name:"{\"text\":\"Push\",\"color\":\"gray\"}"}}}}] at @s run tag @e[type=armor_stand,name=ray,distance=0..2,limit=1] add push
6+
execute as @a[scores={click_vtp=1..},tag=VTP,nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{Unbreakable:1,display:{Name:"{\"text\":\"Pull\",\"color\":\"gray\"}"}}}}] at @s run tag @e[type=armor_stand,name=ray,distance=0..2,limit=1] add pull
7+
execute as @a[scores={click_vtp=1..},tag=VTP,nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{Unbreakable:1,display:{Name:"{\"text\":\"Melt\",\"color\":\"gray\"}"}}}}] at @s run tag @e[type=armor_stand,name=ray,distance=0..2,limit=1] add melt
8+
execute as @a[scores={click_vtp=1..},tag=VTP,nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{Unbreakable:1,display:{Name:"{\"text\":\"Lift\",\"color\":\"gray\"}"}}}}] at @s run tag @e[type=armor_stand,name=ray,distance=0..2,limit=1] add lift
9+
execute as @a[scores={click_vtp=1..},tag=VTP,nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{Unbreakable:1,display:{Name:"{\"text\":\"Smooth\",\"color\":\"gray\"}"}}}}] at @s run tag @e[type=armor_stand,name=ray,distance=0..2,limit=1] add smooth
10+
execute as @a[scores={click_vtp=1..},tag=VTP,nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{Unbreakable:1,display:{Name:"{\"text\":\"Paintbrush\",\"color\":\"gray\"}"}}}}] at @s run tag @e[type=armor_stand,name=ray,distance=0..2,limit=1] add paintbrush
11+
execute as @a[scores={click_vtp=1..},tag=VTP,tag=ground,nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{Unbreakable:1,display:{Name:"{\"text\":\"Paintbrush\",\"color\":\"gray\"}"}}}}] at @s run tag @e[type=armor_stand,name=ray,distance=0..2,limit=1] add ground
12+
execute as @a[scores={click_vtp=1..},tag=VTP,tag=up,nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{Unbreakable:1,display:{Name:"{\"text\":\"Paintbrush\",\"color\":\"gray\"}"}}}}] at @s run tag @e[type=armor_stand,name=ray,distance=0..2,limit=1] add top
13+
14+
execute as @a[scores={click_vtp=1..},tag=VTP,nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{Unbreakable:1,display:{Name:"{\"text\":\"Tree\",\"color\":\"gray\"}"}}}}] at @s run tag @e[type=armor_stand,name=ray,distance=0..2,limit=1] add tree
1515
execute as @a[scores={click_vtp=1..},tag=VTP,nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{Unbreakable:1,display:{Name:"{\"text\":\"Stencils\",\"color\":\"gray\"}"}}}}] at @s run tag @e[type=armor_stand,name=ray,distance=0..2,limit=1] add stencils
1616
execute as @a[scores={click_vtp=1..},tag=VTP,nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{Unbreakable:1,display:{Name:"{\"text\":\"Gravel\",\"color\":\"gray\"}"}}}}] at @s run tag @e[type=armor_stand,name=ray,distance=0..2,limit=1] add gravel
1717

1818
execute as @a[scores={click_vtp=1..},tag=VTP,nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{Unbreakable:1,display:{Name:"{\"text\":\"Vegetate\",\"color\":\"gray\"}"}}}}] at @s run tag @e[type=armor_stand,name=ray,distance=0..2,limit=1] add vegetate
1919

2020

21-
execute if score ToggleTools Settings matches 1 as @a[tag=VTP,nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{Unbreakable:1,display:{Name:"{\"text\":\"Push\",\"color\":\"dark_red\"}"}}}}] run scoreboard players set @s tools 1
22-
execute if score ToggleTools Settings matches 1 as @a[tag=VTP,nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{Unbreakable:1,display:{Name:"{\"text\":\"Pull\",\"color\":\"dark_green\"}"}}}}] run scoreboard players set @s tools 2
23-
execute if score ToggleTools Settings matches 1 as @a[tag=VTP,nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{Unbreakable:1,display:{Name:"{\"text\":\"Melt\",\"color\":\"red\"}"}}}}] run scoreboard players set @s tools 3
24-
execute if score ToggleTools Settings matches 1 as @a[tag=VTP,nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{Unbreakable:1,display:{Name:"{\"text\":\"Lift\",\"color\":\"green\"}"}}}}] run scoreboard players set @s tools 4
21+
execute if score ToggleTools Settings matches 1 as @a[tag=VTP,nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{Unbreakable:1,display:{Name:"{\"text\":\"Push\",\"color\":\"gray\"}"}}}}] run scoreboard players set @s tools 1
22+
execute if score ToggleTools Settings matches 1 as @a[tag=VTP,nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{Unbreakable:1,display:{Name:"{\"text\":\"Pull\",\"color\":\"gray\"}"}}}}] run scoreboard players set @s tools 2
23+
execute if score ToggleTools Settings matches 1 as @a[tag=VTP,nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{Unbreakable:1,display:{Name:"{\"text\":\"Melt\",\"color\":\"gray\"}"}}}}] run scoreboard players set @s tools 3
24+
execute if score ToggleTools Settings matches 1 as @a[tag=VTP,nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{Unbreakable:1,display:{Name:"{\"text\":\"Lift\",\"color\":\"gray\"}"}}}}] run scoreboard players set @s tools 4
2525
execute if score ToggleTools Settings matches 1 as @a[tag=VTP] at @s unless score @s tools = @s tools_old run function raytracer:tools_toggle/tools_toggle
2626
execute if score ToggleTools Settings matches 1 as @a[tag=VTP] run scoreboard players operation @s tools_old = @s tools
2727

Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
execute if score @s tools matches 1 run replaceitem entity @s weapon.offhand minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Pull\",\"color\":\"dark_green\"}"}}
2-
execute if score @s tools matches 2 run replaceitem entity @s weapon.offhand minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Push\",\"color\":\"dark_red\"}"}}
1+
execute if score @s tools matches 1 run replaceitem entity @s weapon.offhand minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Pull\",\"color\":\"gray\"}"}}
2+
execute if score @s tools matches 2 run replaceitem entity @s weapon.offhand minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Push\",\"color\":\"gray\"}"}}
33

4-
execute if score @s tools matches 3 run replaceitem entity @s weapon.offhand minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Lift\",\"color\":\"green\"}"}}
5-
execute if score @s tools matches 4 run replaceitem entity @s weapon.offhand minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Melt\",\"color\":\"red\"}"}}
4+
execute if score @s tools matches 3 run replaceitem entity @s weapon.offhand minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Lift\",\"color\":\"gray\"}"}}
5+
execute if score @s tools matches 4 run replaceitem entity @s weapon.offhand minecraft:carrot_on_a_stick{Unbreakable:1,display:{Name:"{\"text\":\"Melt\",\"color\":\"gray\"}"}}
66

77
scoreboard players set @s detect 0

data/stencils/functions/list_stencil/stencils_0.mcfunction

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ function rand:rand
33
scoreboard players operation rand% rand %= Nstencils0_V Stencils
44

55

6-
76
execute as @s at @s if score rand% rand matches 0 run setblock ~ ~ ~ minecraft:structure_block{mirror: "NONE", rotation: "NONE", mode: "LOAD", name: "stencils:stencils0/1", showboundingbox: 0b}
87
execute as @s at @s if score rand% rand matches 1 run setblock ~ ~ ~ minecraft:structure_block{mirror: "NONE", rotation: "CLOCKWISE_90", mode: "LOAD", name: "stencils:stencils0/1", showboundingbox: 0b}
98
execute as @s at @s if score rand% rand matches 2 run setblock ~ ~ ~ minecraft:structure_block{mirror: "NONE", rotation: "CLOCKWISE_180", mode: "LOAD", name: "stencils:stencils0/1", showboundingbox: 0b}

data/stencils/functions/main.mcfunction

+15
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,18 @@ execute as @e[type=minecraft:player] run execute if score @s disp_plugins matche
3838
execute as @a store result score @s player_x run data get entity @s Pos[0] 1
3939
execute as @a store result score @s player_y run data get entity @s Pos[1] 1
4040
execute as @a store result score @s player_z run data get entity @s Pos[2] 1
41+
42+
43+
execute if score Nstencils0 Stencils matches 51.. run function stencils:reset_scoreboard/reset_nb_stencils
44+
execute if score Nstencils1 Stencils matches 51.. run function stencils:reset_scoreboard/reset_nb_stencils
45+
execute if score Nstencils2 Stencils matches 51.. run function stencils:reset_scoreboard/reset_nb_stencils
46+
execute if score Nstencils3 Stencils matches 51.. run function stencils:reset_scoreboard/reset_nb_stencils
47+
execute if score Nstencils4 Stencils matches 51.. run function stencils:reset_scoreboard/reset_nb_stencils
48+
execute if score Nstencils5 Stencils matches 51.. run function stencils:reset_scoreboard/reset_nb_stencils
49+
execute if score Nstencils6 Stencils matches 51.. run function stencils:reset_scoreboard/reset_nb_stencils
50+
execute if score Nstencils7 Stencils matches 51.. run function stencils:reset_scoreboard/reset_nb_stencils
51+
execute if score Nstencils8 Stencils matches 51.. run function stencils:reset_scoreboard/reset_nb_stencils
52+
execute if score Nstencilsx Stencils matches 51.. run function stencils:reset_scoreboard/reset_nb_stencils
53+
54+
55+
execute if score ChStencils Stencils matches 10.. run function stencils:reset_scoreboard/reset_ch_stencils
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
scoreboard players set ChStencils Stencils 0
2+
tellraw @a ["",{"text":"Please. No number above 9"}]

0 commit comments

Comments
 (0)