Skip to content

Commit

Permalink
api: add bool_issaddled
Browse files Browse the repository at this point in the history
  • Loading branch information
VoidLeech committed Jul 4, 2024
1 parent 5784685 commit c91f831
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ execute as @s[type=#paths_are_roads:needs_saddle/tag_exists_saddleitem] if data
execute as @s[type=#paths_are_roads:needs_saddle/bool_saddle, nbt={Saddle: 1b}] run function paths_are_roads:check_for_path
# Entities that have a bool called `Saddled` set
execute as @s[type=#paths_are_roads:needs_saddle/bool_saddled, nbt={Saddled: 1b}] run function paths_are_roads:check_for_path
# Entities that have a bool called `IsSaddled` set
execute as @s[type=#paths_are_roads:needs_saddle/bool_issaddled, nbt={IsSaddled: 1b}] run function paths_are_roads:check_for_path

## Path users with unique requirements
# Alex's Mobs Tusklin: Needs `Saddled` bool set, and should have been passified /w a brown mushroom: `PassiveTicks != 0`
# Alex's Mobs Tusklin: Needs `Saddle` bool set, and should have been pacified /w a brown mushroom: `PassiveTicks != 0`
execute as @s[type=#paths_are_roads:unique_requirement/tusklin, nbt={Saddle: 1b}] as @s[nbt=!{PassiveTicks: 0}] run function paths_are_roads:check_for_path
# Alex's Mobs Laviathan: two unique equippable items: Straddlite Saddle & Tack: bools `BodyGear` and `HeadGear` need to be set
execute as @s[type=#paths_are_roads:unique_requirement/laviathan, nbt={BodyGear: 1b, HeadGear: 1b}] run function paths_are_roads:check_for_path
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [

]
}
1 change: 1 addition & 0 deletions data/paths_are_roads/tags/entity_types/path_user.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"#paths_are_roads:unconditional_user",
"#paths_are_roads:needs_saddle/bool_saddle",
"#paths_are_roads:needs_saddle/bool_saddled",
"#paths_are_roads:needs_saddle/bool_issaddled",
"#paths_are_roads:needs_saddle/tag_exists_saddleitem",
"#paths_are_roads:needs_taming/bool_tame",
"#paths_are_roads:needs_taming/bool_tamed",
Expand Down

0 comments on commit c91f831

Please sign in to comment.