Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new decorative features to The Wicked Night
- Loading branch information
1 parent
89390e8
commit 2527089
Showing
13 changed files
with
124 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#Success value for if the spine was actually built | ||
scoreboard players set success value 0 | ||
|
||
#Decide the height | ||
scoreboard players set spine_height value 48 | ||
execute if predicate tid:random_50 run scoreboard players set spine_height value 58 | ||
execute if predicate tid:random_33 run scoreboard players set spine_height value 68 | ||
execute if predicate tid:random_25 run scoreboard players set spine_height value 78 | ||
execute if predicate tid:random_10 run scoreboard players set spine_height value 88 | ||
|
||
#Attempt to build the spine | ||
function tid:misc/intro_spine_trace | ||
|
||
#If the spine built successfully, build the last little bit under the pillar | ||
execute if score success value matches 1 run fill ~ ~-1 ~ ~1 ~-8 ~1 stone_bricks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#Build the spine shaft | ||
fill ~ ~ ~ ~1 ~ ~1 stone_bricks | ||
execute positioned ~0 ~ ~0 run function tid:dungeon/intro/rng/stone_bricks | ||
execute positioned ~1 ~ ~0 run function tid:dungeon/intro/rng/stone_bricks | ||
execute positioned ~0 ~ ~1 run function tid:dungeon/intro/rng/stone_bricks | ||
execute positioned ~1 ~ ~1 run function tid:dungeon/intro/rng/stone_bricks | ||
|
||
#Maybe place some thorns | ||
execute positioned ~0 ~ ~0 if predicate tid:random_04 if block ~ ~-3 ~ air run function tid:misc/intro_spine_thorn_north | ||
execute positioned ~0 ~ ~0 if predicate tid:random_04 if block ~ ~-3 ~ air run function tid:misc/intro_spine_thorn_west | ||
|
||
execute positioned ~1 ~ ~0 if predicate tid:random_04 if block ~ ~-3 ~ air run function tid:misc/intro_spine_thorn_north | ||
execute positioned ~1 ~ ~0 if predicate tid:random_04 if block ~ ~-3 ~ air run function tid:misc/intro_spine_thorn_east | ||
|
||
execute positioned ~0 ~ ~1 if predicate tid:random_04 if block ~ ~-3 ~ air run function tid:misc/intro_spine_thorn_south | ||
execute positioned ~0 ~ ~1 if predicate tid:random_04 if block ~ ~-3 ~ air run function tid:misc/intro_spine_thorn_west | ||
|
||
execute positioned ~1 ~ ~1 if predicate tid:random_04 if block ~ ~-3 ~ air run function tid:misc/intro_spine_thorn_east | ||
execute positioned ~1 ~ ~1 if predicate tid:random_04 if block ~ ~-3 ~ air run function tid:misc/intro_spine_thorn_south |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#Place the top block | ||
scoreboard players set temp19 value 0 | ||
execute if predicate tid:random_50 run scoreboard players set temp19 value 1 | ||
execute if predicate tid:random_50 run scoreboard players set temp19 value 2 | ||
execute if predicate tid:random_50 run scoreboard players set temp19 value 3 | ||
|
||
execute if score temp19 value matches 0 positioned ~0 ~ ~0 run function tid:misc/intro_spine_build_top_block | ||
execute if score temp19 value matches 1 positioned ~1 ~ ~0 run function tid:misc/intro_spine_build_top_block | ||
execute if score temp19 value matches 2 positioned ~0 ~ ~1 run function tid:misc/intro_spine_build_top_block | ||
execute if score temp19 value matches 3 positioned ~1 ~ ~1 run function tid:misc/intro_spine_build_top_block | ||
|
||
#Count score | ||
scoreboard players remove spine_height value 1 | ||
|
||
#Set success | ||
scoreboard players set success value 1 |
7 changes: 7 additions & 0 deletions
7
data/tid/functions/misc/intro_spine_build_top_block.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#Place the top block | ||
setblock ~ ~ ~ stone_bricks | ||
function tid:dungeon/intro/rng/stone_bricks | ||
|
||
#If no spine chests have been built yet build it | ||
execute unless score intro_spine_chests value matches 1.. run setblock ~ ~1 ~ chest{LootTable: "tid:chests/intro_spine"} | ||
scoreboard players set intro_spine_chests value 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
fill ~ ~ ~ ~1 ~ ~ bone_block[axis=x] | ||
execute if predicate tid:random_80 run fill ~ ~ ~ ~2 ~ ~ bone_block[axis=x] replace air | ||
execute if predicate tid:random_40 run fill ~ ~ ~ ~3 ~ ~ bone_block[axis=x] replace air | ||
execute if predicate tid:random_20 run fill ~ ~ ~ ~4 ~ ~ bone_block[axis=x] replace air |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
fill ~ ~ ~ ~ ~ ~-1 bone_block[axis=z] | ||
execute if predicate tid:random_80 run fill ~ ~ ~ ~ ~ ~-2 bone_block[axis=z] replace air | ||
execute if predicate tid:random_40 run fill ~ ~ ~ ~ ~ ~-3 bone_block[axis=z] replace air | ||
execute if predicate tid:random_20 run fill ~ ~ ~ ~ ~ ~-4 bone_block[axis=z] replace air |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
fill ~ ~ ~ ~ ~ ~1 bone_block[axis=z] | ||
execute if predicate tid:random_80 run fill ~ ~ ~ ~ ~ ~2 bone_block[axis=z] replace air | ||
execute if predicate tid:random_40 run fill ~ ~ ~ ~ ~ ~3 bone_block[axis=z] replace air | ||
execute if predicate tid:random_20 run fill ~ ~ ~ ~ ~ ~4 bone_block[axis=z] replace air |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
fill ~ ~ ~ ~-1 ~ ~ bone_block[axis=x] | ||
execute if predicate tid:random_80 run fill ~ ~ ~ ~-2 ~ ~ bone_block[axis=x] replace air | ||
execute if predicate tid:random_40 run fill ~ ~ ~ ~-3 ~ ~ bone_block[axis=x] replace air | ||
execute if predicate tid:random_20 run fill ~ ~ ~ ~-4 ~ ~ bone_block[axis=x] replace air |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#Add to spine height | ||
scoreboard players remove spine_height value 1 | ||
|
||
#Make sure we're not running into a building | ||
scoreboard players set temp18 value 0 | ||
execute if block ~0 ~ ~0 #tid:air_or_liquid if block ~5 ~ ~0 #tid:air_or_liquid if block ~-4 ~ ~0 #tid:air_or_liquid if block ~0 ~ ~5 #tid:air_or_liquid if block ~0 ~ ~-4 #tid:air_or_liquid run scoreboard players set temp18 value 1 | ||
|
||
#Recurse | ||
execute if score temp18 value matches 1 if score spine_height value matches 1.. positioned ~ ~1 ~ run function tid:misc/intro_spine_trace | ||
|
||
#Build the top | ||
execute if score spine_height value matches 0 if score success value matches 0 positioned ~ ~1 ~ run function tid:misc/intro_spine_build_top | ||
|
||
#Tail-End: If we succeeded, build the pillar! | ||
execute if score success value matches 1 run function tid:misc/intro_spine_build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"pools": [ | ||
{ | ||
"rolls": 8, | ||
"entries": [ | ||
{ | ||
"type": "item", | ||
"weight": 10, | ||
"name": "minecraft:gold_nugget" | ||
} | ||
] | ||
}, | ||
{ | ||
"rolls": 1, | ||
"entries": [ | ||
{ | ||
"type": "item", | ||
"weight": 10, | ||
"name": "minecraft:golden_apple" | ||
} | ||
] | ||
} | ||
] | ||
} |