-
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Armadillo Support to Everstone * Make converted mobs ride the vehicle Converted mobs will now automatically mount the vehicle the original mob was riding * fix typo in comment * Simplify direct-sky predicates * Use Biome Tags - use tags to determine dry and frozen biomes - introduce `c` tags for compatibility with other mods and datapacks * Add Skeleton and Bogged Conversions Skeleton to Bogged: - Aging: in swamp and in water - Deaging: not in swamp - Average time: 1 hour Bogged to Skeleton: - Aging: sheared and not in swamp - Deaging: in swamp - Average time: 1 hour * make passengers dismount * move block checks higher fixes some mobs not aging in minecarts
- Loading branch information
Showing
28 changed files
with
225 additions
and
13,826 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
gm4_everstone/data/c/tags/worldgen/biome/is_cold/overworld.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,23 @@ | ||
{ | ||
"values": [ | ||
"minecraft:taiga", | ||
"minecraft:old_growth_pine_taiga", | ||
"minecraft:snowy_plains", | ||
"minecraft:ice_spikes", | ||
"minecraft:grove", | ||
"minecraft:snowy_slopes", | ||
"minecraft:jagged_peaks", | ||
"minecraft:frozen_peaks", | ||
"minecraft:snowy_beach", | ||
"minecraft:snowy_taiga", | ||
"minecraft:frozen_river", | ||
"minecraft:cold_ocean", | ||
"minecraft:frozen_ocean", | ||
"minecraft:deep_cold_ocean", | ||
"minecraft:deep_frozen_ocean", | ||
{ | ||
"id": "#c:climate_cold", | ||
"required": false | ||
} | ||
] | ||
} |
15 changes: 15 additions & 0 deletions
15
gm4_everstone/data/c/tags/worldgen/biome/is_dry/overworld.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,15 @@ | ||
{ | ||
"values": [ | ||
"minecraft:desert", | ||
"minecraft:badlands", | ||
"minecraft:wooded_badlands", | ||
"minecraft:eroded_badlands", | ||
"minecraft:savanna", | ||
"minecraft:savanna_plateau", | ||
"minecraft:windswept_savanna", | ||
{ | ||
"id": "#c:climate_dry", | ||
"required": false | ||
} | ||
] | ||
} |
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 @@ | ||
{ | ||
"values": [ | ||
"minecraft:mangrove_swamp", | ||
"minecraft:swamp" | ||
] | ||
} |
27 changes: 27 additions & 0 deletions
27
gm4_everstone/data/gm4_everstone/function/aging/convert/bogged.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,27 @@ | ||
# converts skeleton into bogged | ||
# @s = skeleton that reached the max age | ||
# located at @s | ||
# run from aging/update_age/skeleton | ||
|
||
# summon new mob | ||
summon minecraft:bogged ~ ~ ~ {Tags:[gm4_es_new_mob]} | ||
|
||
# move mob to exact location of old mob | ||
tp @e[type=bogged,tag=gm4_es_new_mob,limit=1,distance=..0.01] @s | ||
tag @s add gm4_es_old_mob | ||
execute on vehicle run ride @e[type=bogged,tag=gm4_es_new_mob,limit=1,distance=..0.01] mount @s | ||
execute on vehicle run ride @e[type=skeleton,tag=gm4_es_old_mob,limit=1,distance=..0.01] dismount | ||
execute on passengers run ride @s dismount | ||
|
||
# transfer old nbt to new mob | ||
effect give @s nausea 1 2 | ||
data merge entity @s {Tags:[]} | ||
data modify entity @e[type=bogged,tag=gm4_es_new_mob,limit=1] {} merge from entity @s | ||
|
||
# sound effects | ||
playsound minecraft:entity.bogged.ambient hostile @a[distance=..16] ~ ~ ~ 0.5 | ||
playsound block.redstone_torch.burnout hostile @a[distance=..16] ~ ~ ~ 0.5 .1 | ||
|
||
# clean up | ||
data merge entity @s {DeathTime:19s,Health:0,DeathLootTable:"minecraft:empty",HandDropChances:[-327.67F,-327.67F],ArmorDropChances:[-327.67F,-327.67F,-327.67F,-327.67F]} | ||
tp @s ~ ~-5000 ~ |
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
9 changes: 8 additions & 1 deletion
9
gm4_everstone/data/gm4_everstone/function/aging/convert/skeleton.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
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
13 changes: 13 additions & 0 deletions
13
gm4_everstone/data/gm4_everstone/function/aging/update_age/bogged.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,13 @@ | ||
# checks aging conditions of the mob | ||
# @s = aging bogged | ||
# located at @s | ||
# run from aging/update_age/check_mob | ||
|
||
# add age if sheared and not in swamp biome | ||
scoreboard players add @s[predicate=gm4_everstone:sheared_and_out_of_swamp] gm4_es_age 1 | ||
|
||
# deplete age if in swamp biome | ||
scoreboard players remove @s[predicate=gm4_everstone:in_swamp,scores={gm4_es_age=1..}] gm4_es_age 1 | ||
|
||
# will take on average 1 hour to convert | ||
execute if score @s gm4_es_age matches 12.. run function gm4_everstone:aging/convert/skeleton |
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
Oops, something went wrong.