-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
16 changed files
with
60 additions
and
32 deletions.
There are no files selected for viewing
7 changes: 3 additions & 4 deletions
7
Origins Datapack/data/origins/functions/choose_origin/changelog.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,11 +1,10 @@ | ||
execute at @s run playsound minecraft:entity.experience_orb.pickup master @s ~ ~ ~ 2 1 1 | ||
|
||
tellraw @a {"text":" origins-datapack v1.0.3","color":"yellow"} | ||
tellraw @a {"text":" origins-datapack v1.0.4","color":"yellow"} | ||
tellraw @a {"text":"--------------------------------------","color":"white"} | ||
tellraw @s {"text":"Balance Changes","color":"yellow"} | ||
tellraw @s {"text":" N/A"} | ||
tellraw @s {"text":" -Merling now has breathing similar to\n normal air"} | ||
tellraw @s {"text":"","color":"yellow"} | ||
tellraw @s {"text":"Bug Fixes/Improvements","color":"yellow"} | ||
tellraw @s {"text":" -Fixed Merling Bug where merlings could\nsuffocate in waterlogged blocks"} | ||
tellraw @s {"text":" -Optimized Avian code to remove need for\nscoreboards objectives"} | ||
tellraw @s {"text":" -Fixed Merling code to detect if head is in\n water, not feet"} | ||
tellraw @a {"text":"--------------------------------------","color":"white"} |
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
2 changes: 1 addition & 1 deletion
2
Origins Datapack/data/origins/functions/origins/blazeborn/blazeborn_damage.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,2 +1,2 @@ | ||
advancement grant @s only origins:origins/blazeborn_water | ||
damage @s 1 minecraft:drown | ||
damage @s 2 minecraft:drown |
3 changes: 1 addition & 2 deletions
3
Origins Datapack/data/origins/functions/origins/blazeborn/blazeborn_load.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,2 @@ | ||
scoreboard objectives add respawn_in_nether dummy | ||
scoreboard objectives add blazeborn_death deathCount | ||
scoreboard objectives add blazeborn_time_died minecraft.custom:minecraft.time_since_death | ||
scoreboard objectives add blazeborn_death deathCount |
4 changes: 2 additions & 2 deletions
4
Origins Datapack/data/origins/functions/origins/blazeborn/blazeborn_spawn_check.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 @@ | ||
execute if score @s blazeborn_time_died matches ..5 if score @s respawn_in_nether matches 1 run function origins:origins/blazeborn/blazeborn_nether_spawn | ||
execute if score @s time_died matches ..5 if score @s respawn_in_nether matches 1 run function origins:origins/blazeborn/blazeborn_nether_spawn | ||
|
||
execute if score @s blazeborn_time_died matches ..5 if score @s respawn_in_nether matches 0 run function origins:origins/blazeborn/blazeborn_reset | ||
execute if score @s time_died matches ..5 if score @s respawn_in_nether matches 0 run function origins:origins/blazeborn/blazeborn_reset |
4 changes: 2 additions & 2 deletions
4
Origins Datapack/data/origins/functions/origins/enderian/enderian.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,8 +1,8 @@ | ||
execute if entity @s[scores={use_ender_pearl=1..}] run function origins:origins/enderian/enderian_teleport | ||
|
||
execute at @s if block ~ ~2.5 ~ air run execute if block ~ ~3 ~ air if block ~ ~4 ~ air if block ~ ~5 ~ air if block ~ ~6 ~ air if block ~ ~7 ~ air if block ~ ~8 ~ air if block ~ ~9 ~ air if block ~ ~10 ~ air if predicate origins:enderian_rain if predicate origins:is_raining unless biome ~ ~ ~ desert unless biome ~ ~ ~ #c:mesa unless biome ~ ~ ~ #c:savanna run function origins:origins/enderian/enderian_damage | ||
execute at @s if blocks ~ ~1 ~ ~ 319 ~ ~ ~ ~ masked if predicate origins:enderian_rain if predicate origins:is_raining unless biome ~ ~ ~ desert unless biome ~ ~ ~ #c:mesa unless biome ~ ~ ~ #c:savanna run function origins:origins/enderian/enderian_damage | ||
|
||
execute at @s if block ~ ~ ~ water run function origins:origins/enderian/enderian_damage | ||
execute at @s if predicate origins:waterlogged_no_offset run function origins:origins/enderian/enderian_damage | ||
|
||
execute at @s if entity @e[distance=..10,nbt={Inventory:[{id:"minecraft:carved_pumpkin",Slot:103b}]}] run effect give @s blindness 3 1 true | ||
execute at @s if entity @e[distance=..10,nbt={ArmorItems:[{},{},{},{id:"minecraft:carved_pumpkin",Count:1b}]}] run effect give @s blindness 3 1 true |
2 changes: 1 addition & 1 deletion
2
Origins Datapack/data/origins/functions/origins/enderian/enderian_damage.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,2 +1,2 @@ | ||
damage @s 1 minecraft:drown | ||
damage @s 2 minecraft:drown | ||
advancement grant @s only origins:origins/enderian_water |
20 changes: 14 additions & 6 deletions
20
Origins Datapack/data/origins/functions/origins/merling/merling.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,17 +1,25 @@ | ||
effect give @s water_breathing infinite 0 true | ||
effect give @s dolphins_grace infinite 0 true | ||
|
||
execute at @s if predicate origins:waterlogged run effect give @s night_vision 15 0 true | ||
execute at @s if predicate origins:waterlogged run effect give @s haste 1 20 true | ||
execute as @s at @s if predicate origins:waterlogged if score @s out_of_water matches 1.. if score @s out_of_water matches ..1 at @s positioned ~ ~1.5 ~ run particle minecraft:bubble ^ ^ ^0.25 0 0.1 0 0.1 5 | ||
execute as @s at @s if predicate origins:waterlogged if score @s out_of_water matches 1.. if score @s out_of_water matches ..1 run playsound minecraft:entity.drowned.swim master @s | ||
execute as @s at @s unless predicate origins:waterlogged unless block ~ ~ ~ water_cauldron if score @s out_of_water matches 269.. if score @s out_of_water matches ..269 at @s run playsound minecraft:entity.drowned.swim master @s | ||
|
||
|
||
execute at @s if predicate origins:waterlogged unless block ~ ~ ~ #slabs unless block ~ ~ ~ #air run effect give @s night_vision 15 0 true | ||
execute at @s if predicate origins:waterlogged unless block ~ ~ ~ #slabs unless block ~ ~ ~ #air run effect give @s haste 1 20 true | ||
|
||
execute at @s if predicate origins:waterlogged run scoreboard players set @s out_of_water 0 | ||
|
||
execute at @s if predicate origins:is_raining unless biome ~ ~ ~ #c:desert unless biome ~ ~ ~ #c:mesa unless biome ~ ~ ~ #c:savanna unless dimension minecraft:the_nether run scoreboard players set @s out_of_water 0 | ||
execute at @s if block ~ ~ ~ minecraft:water_cauldron run scoreboard players set @s out_of_water 0 | ||
|
||
execute at @s if predicate origins:is_raining unless biome ~ ~ ~ #c:desert unless biome ~ ~ ~ #c:mesa unless biome ~ ~ ~ #c:savanna unless dimension minecraft:the_nether run scoreboard players remove @s out_of_water 1 | ||
|
||
execute at @s unless predicate origins:waterlogged run scoreboard players add @s out_of_water 1 | ||
|
||
|
||
execute if score @s out_of_water matches 30.. run function origins:origins/merling/merling_suffocate | ||
execute if score @s out_of_water matches 300.. run function origins:origins/merling/merling_suffocate | ||
|
||
execute at @s if predicate origins:waterlogged run scoreboard players remove @s out_of_water 1 | ||
execute at @s if block ~ ~ ~ minecraft:water_cauldron run scoreboard players remove @s out_of_water 2 | ||
execute as @s if score @s out_of_water matches ..0 run scoreboard players set @s out_of_water 0 | ||
|
||
execute as @s if score @s time_died matches ..5 run scoreboard players set @s out_of_water 0 |
4 changes: 2 additions & 2 deletions
4
Origins Datapack/data/origins/functions/origins/merling/merling_suffocate.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 @@ | ||
damage @s 2 minecraft:dry_out | ||
damage @s 2 minecraft:drown | ||
advancement grant @s only origins:origins/merling_suffocate | ||
scoreboard players set @s out_of_water 0 | ||
scoreboard players set @s out_of_water 270 |
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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
{ | ||
"condition": "minecraft:location_check", | ||
"predicate": { | ||
"fluid": { | ||
"tag": "minecraft:water" | ||
} | ||
"condition": "minecraft:location_check", | ||
"offsetY": 1, | ||
"predicate": { | ||
"fluid": { | ||
"tag": "minecraft:water" | ||
} | ||
} | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
Origins Datapack/data/origins/predicates/waterlogged_no_offset.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,8 @@ | ||
{ | ||
"condition": "minecraft:location_check", | ||
"predicate": { | ||
"fluid": { | ||
"tag": "minecraft: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,8 @@ | ||
{ | ||
"values": [ | ||
"minecraft:air", | ||
"minecraft:cave_air", | ||
"minecraft:void_air" | ||
] | ||
} | ||
|