-
Notifications
You must be signed in to change notification settings - Fork 4
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
105 changed files
with
4,088 additions
and
291 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "anc:item/seal_slate_fire" | ||
} | ||
} |
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 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "anc:item/seal_slate_poison" | ||
} | ||
} |
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 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "anc:item/seal_slate_shadow" | ||
} | ||
} |
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 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "anc:item/seal_slate_soul" | ||
} | ||
} |
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 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "anc:item/seal_slate_water" | ||
} | ||
} |
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 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "anc:item/space_capsule" | ||
} | ||
} |
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 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "anc:item/space_capsule_empty" | ||
} | ||
} |
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
data/anc/advancements/custom_enchantments/sucking_blood.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,16 @@ | ||
{ | ||
"criteria": { | ||
"sucking_blood": { | ||
"trigger": "minecraft:player_hurt_entity", | ||
"conditions": { | ||
"item": { | ||
"nbt": "{ancCustomEnchantments:[{id:\"anc:sucking_blood\",lvl:1b}]}" | ||
} | ||
} | ||
} | ||
}, | ||
"requirements": [["sucking_blood"]], | ||
"rewards":{ | ||
"function": "anc:custom_enchantments/sucking_blood" | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
data/anc/functions/custom_enchantments/sucking_blood.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 @@ | ||
effect give @s regeneration 1 0 true | ||
advancement revoke @s only anc:custom_enchantments/sucking_blood |
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 +1 @@ | ||
tellraw @s {"translate": "Please install the correct resource pack","with":[{"text": "0.6.2","color": "gold","bold": true}]} | ||
tellraw @s {"translate": "Please install the correct resource pack","with":[{"text": "0.6.3","color": "gold","bold": true}]} |
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 @@ | ||
summon magma_cube ~ ~ ~ | ||
data modify entity @e[type=magma_cube,limit=1,sort=nearest] Size set from entity @s Size | ||
kill @s | ||
tp @s ~ -500 ~ |
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,57 @@ | ||
scoreboard players set $min ancRandom 0 | ||
scoreboard players set $min ancRandom 1000 | ||
function anc:handle/random | ||
|
||
scoreboard players add ancLotteryPurpleTimes ancValue 1 | ||
scoreboard players add ancLotteryGoldTimes ancValue 1 | ||
|
||
# 基础概率 | ||
execute unless score ancLotteryPurpleTimes ancValue matches 80 unless score ancLotteryGoldTimes ancValue matches 180 if score $output ancRandom matches 0..4 run tag @s add ancGlodUp | ||
execute unless score ancLotteryPurpleTimes ancValue matches 80 unless score ancLotteryGoldTimes ancValue matches 180 if score $output ancRandom matches 5..9 run tag @s add ancGlodNormal | ||
execute unless score ancLotteryPurpleTimes ancValue matches 80 unless score ancLotteryGoldTimes ancValue matches 180 if score $output ancRandom matches 10..99 run tag @s add ancPurple | ||
execute unless score ancLotteryPurpleTimes ancValue matches 80 unless score ancLotteryGoldTimes ancValue matches 180 if score $output ancRandom matches 100..1000 run tag @s add ancGreen | ||
|
||
|
||
# 保底机制 | ||
execute if score ancLotteryPurpleTimes ancValue matches 80 run tag @s add ancPurple | ||
execute if score ancLotteryPurpleTimes ancValue matches 80 if score ancLotteryGoldTimes ancValue matches 180 run tag @s remove ancPurple | ||
execute if score ancLotteryPurpleTimes ancValue matches 80 if score ancLotteryGoldTimes ancValue matches 180 run scoreboard players reset ancLotteryPurpleTimes ancValue | ||
execute if score ancLotteryGoldTimes ancValue matches 180 if score $output ancRandom matches 0..500 run tag @s add ancGlodUp | ||
execute if score ancLotteryGoldTimes ancValue matches 180 if score $output ancRandom matches 501..1000 run tag @s add ancGlodNormal | ||
execute if entity @s[tag=ancPurple] run scoreboard players reset ancLotteryPurpleTimes ancValue | ||
execute if entity @s[tag=ancGlodNormal] run scoreboard players reset ancLotteryGoldTimes ancValue | ||
execute if entity @s[tag=ancGlodUp] run scoreboard players reset ancLotteryGoldTimes ancValue | ||
|
||
# UP机制 | ||
execute if entity @s[tag=ancGlodNormal] run scoreboard players add ancGoldTimes ancValue 1 | ||
execute if entity @s[tag=ancGlodNormal] if score ancGoldTimes ancValue matches 2.. run tag @s add ancGlodUp | ||
execute if entity @s[tag=ancGlodNormal] if score ancGoldTimes ancValue matches 2.. run tag @s remove ancGlodNormal | ||
execute if entity @s[tag=ancGlodUp] run scoreboard players reset ancGoldTimes ancValue | ||
|
||
# 颜色 | ||
execute if entity @s[tag=sealFire] if entity @s[tag=ancGreen] run summon area_effect_cloud ~ ~ ~ {Tags:["ancColorTemp","ancGreen","ancSeal","sealFire"],Color:5635925,Duration:2147438647,Particle:"minecraft:dust",Radius:0.01f} | ||
execute if entity @s[tag=sealFire] if entity @s[tag=ancPurple] run summon area_effect_cloud ~ ~ ~ {Tags:["ancColorTemp","ancPurple","ancSeal","sealFire"],Color:11141290,Duration:2147438647,Particle:"minecraft:dust",Radius:0.01f} | ||
execute if entity @s[tag=sealFire] if entity @s[tag=ancGlodNormal] run summon area_effect_cloud ~ ~ ~ {Tags:["ancColorTemp","ancGlodNormal","ancSeal","sealFire"],Color:16754177,Duration:2147438647,Particle:"minecraft:dust",Radius:0.01f} | ||
execute if entity @s[tag=sealFire] if entity @s[tag=ancGlodUp] run summon area_effect_cloud ~ ~ ~ {Tags:["ancColorTemp","ancGlodUp","ancSeal","sealFire"],Color:16754177,Duration:2147438647,Particle:"minecraft:dust",Radius:0.01f} | ||
|
||
execute if entity @s[tag=sealPoison] if entity @s[tag=ancGreen] run summon area_effect_cloud ~ ~ ~ {Tags:["ancColorTemp","ancGreen","ancSeal","sealPoison"],Color:5635925,Duration:2147438647,Particle:"minecraft:dust",Radius:0.01f} | ||
execute if entity @s[tag=sealPoison] if entity @s[tag=ancPurple] run summon area_effect_cloud ~ ~ ~ {Tags:["ancColorTemp","ancPurple","ancSeal","sealPoison"],Color:11141290,Duration:2147438647,Particle:"minecraft:dust",Radius:0.01f} | ||
execute if entity @s[tag=sealPoison] if entity @s[tag=ancGlodNormal] run summon area_effect_cloud ~ ~ ~ {Tags:["ancColorTemp","ancGlodNormal","ancSeal","sealPoison"],Color:16754177,Duration:2147438647,Particle:"minecraft:dust",Radius:0.01f} | ||
execute if entity @s[tag=sealPoison] if entity @s[tag=ancGlodUp] run summon area_effect_cloud ~ ~ ~ {Tags:["ancColorTemp","ancGlodUp","ancSeal","sealPoison"],Color:16754177,Duration:2147438647,Particle:"minecraft:dust",Radius:0.01f} | ||
|
||
execute if entity @s[tag=sealShadow] if entity @s[tag=ancGreen] run summon area_effect_cloud ~ ~ ~ {Tags:["ancColorTemp","ancGreen","ancSeal","sealShadow"],Color:5635925,Duration:2147438647,Particle:"minecraft:dust",Radius:0.01f} | ||
execute if entity @s[tag=sealShadow] if entity @s[tag=ancPurple] run summon area_effect_cloud ~ ~ ~ {Tags:["ancColorTemp","ancPurple","ancSeal","sealShadow"],Color:11141290,Duration:2147438647,Particle:"minecraft:dust",Radius:0.01f} | ||
execute if entity @s[tag=sealShadow] if entity @s[tag=ancGlodNormal] run summon area_effect_cloud ~ ~ ~ {Tags:["ancColorTemp","ancGlodNormal","ancSeal","sealShadow"],Color:16754177,Duration:2147438647,Particle:"minecraft:dust",Radius:0.01f} | ||
execute if entity @s[tag=sealShadow] if entity @s[tag=ancGlodUp] run summon area_effect_cloud ~ ~ ~ {Tags:["ancColorTemp","ancGlodUp","ancSeal","sealShadow"],Color:16754177,Duration:2147438647,Particle:"minecraft:dust",Radius:0.01f} | ||
|
||
execute if entity @s[tag=sealSoul] if entity @s[tag=ancGreen] run summon area_effect_cloud ~ ~ ~ {Tags:["ancColorTemp","ancGreen","ancSeal","sealSoul"],Color:5635925,Duration:2147438647,Particle:"minecraft:dust",Radius:0.01f} | ||
execute if entity @s[tag=sealSoul] if entity @s[tag=ancPurple] run summon area_effect_cloud ~ ~ ~ {Tags:["ancColorTemp","ancPurple","ancSeal","sealSoul"],Color:11141290,Duration:2147438647,Particle:"minecraft:dust",Radius:0.01f} | ||
execute if entity @s[tag=sealSoul] if entity @s[tag=ancGlodNormal] run summon area_effect_cloud ~ ~ ~ {Tags:["ancColorTemp","ancGlodNormal","ancSeal","sealSoul"],Color:16754177,Duration:2147438647,Particle:"minecraft:dust",Radius:0.01f} | ||
execute if entity @s[tag=sealSoul] if entity @s[tag=ancGlodUp] run summon area_effect_cloud ~ ~ ~ {Tags:["ancColorTemp","ancGlodUp","ancSeal","sealSoul"],Color:16754177,Duration:2147438647,Particle:"minecraft:dust",Radius:0.01f} | ||
|
||
execute if entity @s[tag=sealWater] if entity @s[tag=ancGreen] run summon area_effect_cloud ~ ~ ~ {Tags:["ancColorTemp","ancGreen","ancSeal","sealWater"],Color:5635925,Duration:2147438647,Particle:"minecraft:dust",Radius:0.01f} | ||
execute if entity @s[tag=sealWater] if entity @s[tag=ancPurple] run summon area_effect_cloud ~ ~ ~ {Tags:["ancColorTemp","ancPurple","ancSeal","sealWater"],Color:11141290,Duration:2147438647,Particle:"minecraft:dust",Radius:0.01f} | ||
execute if entity @s[tag=sealWater] if entity @s[tag=ancGlodNormal] run summon area_effect_cloud ~ ~ ~ {Tags:["ancColorTemp","ancGlodNormal","ancSeal","sealWater"],Color:16754177,Duration:2147438647,Particle:"minecraft:dust",Radius:0.01f} | ||
execute if entity @s[tag=sealWater] if entity @s[tag=ancGlodUp] run summon area_effect_cloud ~ ~ ~ {Tags:["ancColorTemp","ancGlodUp","ancSeal","sealWater"],Color:16754177,Duration:2147438647,Particle:"minecraft:dust",Radius:0.01f} | ||
scoreboard players operation @e[tag=ancColorTemp,limit=1] ancValue = @s ancValue | ||
kill @s |
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,5 @@ | ||
execute if entity @s[tag=ancGreen] run loot spawn ~ ~ ~ loot anc:seal_slate/green | ||
execute if entity @s[tag=ancPurple] run loot spawn ~ ~ ~ loot anc:seal_slate/purple | ||
execute if entity @s[tag=ancGlodNormal] run loot spawn ~ ~ ~ loot anc:seal_slate/gold_normal | ||
execute if entity @s[tag=ancGlodUp] run loot spawn ~ ~ ~ loot anc:seal_slate/gold_up | ||
kill @s |
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,5 @@ | ||
tp @s ~ ~0.1 ~ | ||
scoreboard players add @s ancValue 1 | ||
execute store result entity @s Air int 1 run scoreboard players get @s ancValue | ||
execute if score @s[tag=!ancColorTemp] ancValue matches 12 run function anc:items/seal_slate/color | ||
execute if score @s ancValue matches 18.. run function anc:items/seal_slate/open |
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 as @e[type=area_effect_cloud,tag=ancSeal] at @s run function anc:items/seal_slate/seal_aec | ||
schedule function anc:items/seal_slate/tick3 3t |
Oops, something went wrong.