-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
191 changed files
with
907 additions
and
120 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
datapack/data/nucleus/tags/entity_types/scheduled/second_clock.json
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"values":[ | ||
"minecraft:armor_stand", | ||
"minecraft:marker" | ||
"minecraft:marker", | ||
"minecraft:drowned" | ||
] | ||
} |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"values":[ | ||
"minecraft:armor_stand", | ||
"minecraft:marker" | ||
"minecraft:marker", | ||
"minecraft:drowned" | ||
] | ||
} |
37 changes: 37 additions & 0 deletions
37
datapack/data/sanguine/advancements/sanguine/flesh_tuner.json
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,37 @@ | ||
{ | ||
"display": { | ||
"icon": { | ||
"item": "minecraft:dispenser", | ||
"nbt": "{CustomModelData:8361007}" | ||
}, | ||
"title": { | ||
"translate": "advancement.sanguine.flesh_tuner" | ||
}, | ||
"description": [ | ||
{ | ||
"translate": "advancement.sanguine.flesh_tuner.desc" | ||
}, | ||
"\n", | ||
{ | ||
"text": "ꀈ", | ||
"color": "white", | ||
"font": "sanguine:recipes" | ||
}, | ||
"\n", | ||
"\n", | ||
"\n", | ||
"\n", | ||
"\n" | ||
], | ||
"frame": "task", | ||
"show_toast": true, | ||
"announce_to_chat": true, | ||
"hidden": false | ||
}, | ||
"parent": "sanguine:sanguine/credence", | ||
"criteria": { | ||
"requirement": { | ||
"trigger": "minecraft:impossible" | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
datapack/data/sanguine/advancements/technical/entity_hurt_player/sounds/maul.json
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 @@ | ||
{ | ||
"parent": "sanguine:technical/root", | ||
"criteria": { | ||
"requirement": { | ||
"trigger": "minecraft:entity_hurt_player", | ||
"conditions": { | ||
"damage": { | ||
"source_entity": { | ||
"type": "minecraft:drowned", | ||
"nbt": "{Tags:[\"sanguine.maul\"]}" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"rewards": { | ||
"function": "sanguine:entity/technical/sounds/attack/maul" | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
datapack/data/sanguine/advancements/technical/entity_hurt_player/sounds/offal.json
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 @@ | ||
{ | ||
"parent": "sanguine:technical/root", | ||
"criteria": { | ||
"requirement": { | ||
"trigger": "minecraft:entity_hurt_player", | ||
"conditions": { | ||
"damage": { | ||
"source_entity": { | ||
"type": "minecraft:vindicator", | ||
"nbt": "{Tags:[\"sanguine.offal\"]}" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"rewards": { | ||
"function": "sanguine:entity/technical/sounds/attack/offal" | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
datapack/data/sanguine/advancements/technical/item_used_on_block/click_flesh_tuner.json
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,20 @@ | ||
{ | ||
"criteria": { | ||
"requirement": { | ||
"trigger": "minecraft:item_used_on_block", | ||
"conditions": { | ||
"location": { | ||
"block": { | ||
"blocks": [ | ||
"minecraft:dispenser" | ||
], | ||
"nbt": "{Lock:\"§flesh_tuner\\\\uF001\"}" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"rewards": { | ||
"function": "sanguine:block/flesh_tuner/click" | ||
} | ||
} |
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
16 changes: 16 additions & 0 deletions
16
datapack/data/sanguine/functions/block/effigy/checks.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,16 @@ | ||
scoreboard players reset #error sanguine.dummy | ||
|
||
# Checks | ||
execute if score #sanguine.xp sanguine.dummy < #sanguine.xp_min sanguine.dummy run scoreboard players set #error sanguine.dummy 1 | ||
execute unless score #max_health sanguine.dummy matches 2.. run scoreboard players set #error sanguine.dummy 2 | ||
execute if score @s sanguine.bindings matches 9.. run scoreboard players set #error sanguine.dummy 3 | ||
execute unless data storage sanguine:storage root.temp.item.tag.sanguine.binding run scoreboard players set #error sanguine.dummy 4 | ||
|
||
execute unless score #error sanguine.dummy matches 1.. run function sanguine:item/blood_binding/check_and_apply | ||
|
||
# Display | ||
execute if score #error sanguine.dummy matches 1 run data modify storage smithed.actionbar:input message set value {freeze:45,priority:'override',json:'{"translate":"ui.sanguine.blood_binding.xp","color":"red","with":[{"score":{"name":"#sanguine.xp_min","objective":"sanguine.dummy"}},{"score":{"name":"#sanguine.xp_cost","objective":"sanguine.dummy"}}]}'} | ||
execute if score #error sanguine.dummy matches 2 run data modify storage smithed.actionbar:input message set value {freeze:45,priority:'override',json:'{"translate":"ui.sanguine.blood_binding.low_health","color":"red"}'} | ||
execute if score #error sanguine.dummy matches 3 run data modify storage smithed.actionbar:input message set value {freeze:45,priority:'override',json:'{"translate":"ui.sanguine.blood_binding.too_many","color":"red"}'} | ||
execute if score #error sanguine.dummy matches 4 run data modify storage smithed.actionbar:input message set value {freeze:45,priority:'override',json:'{"translate":"ui.sanguine.blood_binding.unbound","color":"red"}'} | ||
execute if score #error sanguine.dummy matches 1.. run function #smithed.actionbar:message |
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
2 changes: 0 additions & 2 deletions
2
datapack/data/sanguine/functions/block/effigy/prevent_popup.mcfunction
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
datapack/data/sanguine/functions/block/effigy/scheduled.mcfunction
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
datapack/data/sanguine/functions/block/flesh_tuner/break/kill_item.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,3 @@ | ||
execute store result score #count sanguine.dummy run data get entity @s Item.Count | ||
loot spawn ~ ~ ~ loot sanguine:technical/blocks/flesh_tuner | ||
kill @s |
4 changes: 4 additions & 0 deletions
4
datapack/data/sanguine/functions/block/flesh_tuner/break/main.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,4 @@ | ||
execute as @e[tag=!smithed.entity,limit=1,type=item,distance=..2,nbt={PickupDelay:10s,Item:{id:"minecraft:dispenser",tag:{display:{Name:'{"font":"sanguine:technical","translate":"block.sanguine.flesh_tuner.name"}'}}}}] at @s run function sanguine:block/flesh_tuner/break/kill_item | ||
particle item dispenser{CustomModelData:8361007} ~ ~ ~ 0.2 0.2 0.2 0.05 20 normal | ||
kill @s | ||
function sanguine:block/hopper_updating/undo |
8 changes: 8 additions & 0 deletions
8
datapack/data/sanguine/functions/block/flesh_tuner/click.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,8 @@ | ||
advancement revoke @s only sanguine:technical/item_used_on_block/click_flesh_tuner | ||
stopsound @a[distance=..16] * block.chest.locked | ||
|
||
data remove storage sanguine:storage root.temp | ||
data modify storage sanguine:storage root.temp.item set from entity @s SelectedItem | ||
|
||
execute if data storage sanguine:storage root.gamerules{flesh_tuner:1b} run function sanguine:block/flesh_tuner/gamerule_check/success | ||
execute unless data storage sanguine:storage root.gamerules{flesh_tuner:1b} run function sanguine:block/flesh_tuner/gamerule_check/fail |
2 changes: 2 additions & 0 deletions
2
datapack/data/sanguine/functions/block/flesh_tuner/gamerule_check/fail.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,2 @@ | ||
data modify storage smithed.actionbar:input message set value {freeze:45,priority:'notification',json:'{"translate":"ui.sanguine.flesh_tuner.blocked","color":"red"}'} | ||
function #smithed.actionbar:message |
3 changes: 3 additions & 0 deletions
3
datapack/data/sanguine/functions/block/flesh_tuner/gamerule_check/success.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,3 @@ | ||
execute anchored eyes run function sanguine:block/flesh_tuner/interact/raycast | ||
execute if data storage sanguine:storage root.temp{success:1b} run function sanguine:block/flesh_tuner/player/main | ||
execute anchored eyes run function sanguine:block/flesh_tuner/interact/raycast |
3 changes: 3 additions & 0 deletions
3
datapack/data/sanguine/functions/block/flesh_tuner/interact/as_entity.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,3 @@ | ||
execute if data storage sanguine:storage root.temp{vfx:1} run function sanguine:block/flesh_tuner/interact/vfx/bind | ||
execute if data storage sanguine:storage root.temp{vfx:2} run function sanguine:block/flesh_tuner/interact/vfx/unbind | ||
data modify storage sanguine:storage root.temp.success set value 1b |
2 changes: 2 additions & 0 deletions
2
datapack/data/sanguine/functions/block/flesh_tuner/interact/raycast.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,2 @@ | ||
execute if block ^ ^ ^0.01 minecraft:dispenser{Lock:"§flesh_tuner\\uF001"} positioned ^ ^ ^0.01 align xyz as @e[dx=0,type=armor_stand,tag=sanguine.flesh_tuner,limit=1] positioned ~0.5 ~0.5 ~0.5 run function sanguine:block/flesh_tuner/interact/as_entity | ||
execute if entity @s[distance=..5] unless block ^ ^ ^0.01 minecraft:dispenser{Lock:"§flesh_tuner\\uF001"} positioned ^ ^ ^0.01 run function sanguine:block/flesh_tuner/interact/raycast |
3 changes: 3 additions & 0 deletions
3
datapack/data/sanguine/functions/block/flesh_tuner/interact/vfx/bind.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,3 @@ | ||
playsound sanguine:block.flesh_tuner.bind block @a | ||
particle dust 0.588 0.090 0.039 2 ~ ~0.75 ~ 0.25 0.1 0.25 1 10 force | ||
particle dust 0.588 0.090 0.039 1 ~ ~ ~ 0.55 0.55 0.55 1 25 force |
3 changes: 3 additions & 0 deletions
3
datapack/data/sanguine/functions/block/flesh_tuner/interact/vfx/unbind.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,3 @@ | ||
playsound sanguine:block.flesh_tuner.unbind block @a | ||
particle dust 0.588 0.090 0.039 2 ~ ~0.75 ~ 0.25 0.1 0.25 1 5 force | ||
particle dust 0.588 0.090 0.039 1 ~ ~ ~ 0.55 0.55 0.55 1 15 force |
6 changes: 6 additions & 0 deletions
6
datapack/data/sanguine/functions/block/flesh_tuner/place.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,6 @@ | ||
setblock ~ ~ ~ air | ||
setblock ~ ~ ~ dispenser[facing=down]{CustomName:'{"font":"sanguine:technical","translate":"block.sanguine.flesh_tuner.name"}',Lock:"§flesh_tuner\\uF001",TransferCooldown:9999} | ||
|
||
summon armor_stand ~ ~ ~ {CustomName:'{"translate":"block.sanguine.flesh_tuner"}',ArmorItems:[{},{},{},{id:"minecraft:dispenser",Count:1b,tag:{CustomModelData:8361007,sanguine:{stored_dispenser_data:[[],[]]}}}],Tags:["nucleus.entity","sanguine.entity","sanguine.block","sanguine.flesh_tuner","smithed.entity","smithed.block","nucleus.prevents_hoppers"],NoGravity:1b,Invisible:1b,Marker:1b} | ||
|
||
function nucleus:block/hopper_updating/fill |
2 changes: 2 additions & 0 deletions
2
datapack/data/sanguine/functions/block/flesh_tuner/player/error.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,2 @@ | ||
data modify storage smithed.actionbar:input message set value {freeze:45,priority:'notification',json:'{"translate":"ui.sanguine.flesh_tuner.error","color":"red"}'} | ||
function #smithed.actionbar:message |
8 changes: 8 additions & 0 deletions
8
datapack/data/sanguine/functions/block/flesh_tuner/player/join.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,8 @@ | ||
team join sanguine.flesh_tuner @s | ||
data modify storage smithed.actionbar:input message set value {freeze:45,priority:'notification',json:'{"translate":"ui.sanguine.flesh_tuner.join","color":"red"}'} | ||
function #smithed.actionbar:message | ||
|
||
data modify storage sanguine:storage root.temp.vfx set value 1 | ||
effect give @s minecraft:instant_damage 1 30 true | ||
|
||
advancement grant @s only sanguine:sanguine/flesh_tuner |
6 changes: 6 additions & 0 deletions
6
datapack/data/sanguine/functions/block/flesh_tuner/player/leave.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,6 @@ | ||
team leave @s | ||
data modify storage smithed.actionbar:input message set value {freeze:45,priority:'notification',json:'{"translate":"ui.sanguine.flesh_tuner.leave","color":"red"}'} | ||
function #smithed.actionbar:message | ||
|
||
data modify storage sanguine:storage root.temp.vfx set value 2 | ||
effect give @s minecraft:instant_damage 1 30 true |
6 changes: 6 additions & 0 deletions
6
datapack/data/sanguine/functions/block/flesh_tuner/player/main.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,6 @@ | ||
tag @s remove sanguine.tag | ||
execute if entity @s[team=sanguine.flesh_tuner] run tag @s add sanguine.tag | ||
|
||
execute unless entity @s[tag=sanguine.tag] unless entity @s[team=] run function sanguine:block/flesh_tuner/player/error | ||
execute unless entity @s[tag=sanguine.tag] if entity @s[team=] run function sanguine:block/flesh_tuner/player/join | ||
execute if entity @s[tag=sanguine.tag] run function sanguine:block/flesh_tuner/player/leave |
1 change: 1 addition & 0 deletions
1
datapack/data/sanguine/functions/block/flesh_tuner/tick.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 @@ | ||
execute unless block ~ ~ ~ dispenser run function sanguine:block/flesh_tuner/break/main |
4 changes: 2 additions & 2 deletions
4
datapack/data/sanguine/functions/block/jukebox/engorge/play/as_player.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
tag @s remove sanguine.scheduled.engorge | ||
scoreboard players set @s sanguine.hide_sanity 45 | ||
title @s actionbar {"translate":"record.nowPlaying","with":[{"translate":"record.sanguine.engorge"}],"color":"#880f0f"} | ||
data modify storage smithed.actionbar:input message set value {freeze:45,priority:'notification',json:'{"translate":"record.nowPlaying","with":[{"translate":"record.sanguine.engorge"}],"color":"#880f0f"}'} | ||
function #smithed.actionbar:message |
Oops, something went wrong.