-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' into stable
- Loading branch information
Showing
26 changed files
with
83 additions
and
47 deletions.
There are no files selected for viewing
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 @@ | ||
build/__pycache__ | ||
|
||
data/iris/function/get_hitbox/block.mcfunction | ||
data/iris/**/tree | ||
data/iris/**/shape_groups |
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
4 changes: 4 additions & 0 deletions
4
data/iris/function/get_hitbox/entity/shape_groups/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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
scoreboard players set $entity_width iris 600000 | ||
scoreboard players set $entity_height iris 1800000 | ||
execute if predicate iris:swimming run return run scoreboard players set $entity_height iris 600000 | ||
execute if predicate iris:sneaking run return run scoreboard players set $entity_height iris 1500000 |
2 changes: 1 addition & 1 deletion
2
data/iris/function/get_hitbox/entity/shape_groups/pufferfish.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,6 +1,6 @@ | ||
execute store result score $pufferfish_puffstate iris run data get entity @s PuffState | ||
execute if score $pufferfish_puffstate iris matches 0 run scoreboard players set $entity_width iris 350000 | ||
execute if score $pufferfish_puffstate iris matches 1 run scoreboard players set $entity_width iris 500000 | ||
execute if score $pufferfish_puffstate iris matches 1 run scoreboard players set $entity_width iris 490000 | ||
execute if score $pufferfish_puffstate iris matches 2 run scoreboard players set $entity_width iris 700000 | ||
scoreboard players operation $entity_height iris = $entity_width iris | ||
|
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 |
---|---|---|
|
@@ -29,3 +29,4 @@ | |
|
||
function iris:get_position/get_coordinates | ||
function iris:get_position/get_rotation | ||
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 |
---|---|---|
@@ -1 +1,10 @@ | ||
#> iris:get_position/teleport | ||
# | ||
# Teleports the executing entity to the current position plus a vector | ||
# | ||
# @context any entity | ||
# @within iris:get_position/get_coordinates | ||
# @input | ||
# x, y, z: Target position relative to the current position | ||
|
||
$teleport @s ~$(x) ~$(y) ~$(z) |
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
4 changes: 2 additions & 2 deletions
4
data/iris/function/raycast/macro_functions/block_id_test.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,9 +1,9 @@ | ||
#> iris:raycast/macro_functions/block_id_test | ||
# | ||
# @within iris:raycast/test_for_block | ||
# @input | ||
# id: A block ID or block tag ID | ||
# @output | ||
# Success/Result: 1 if the current block is the provided ID, 0 otherwise | ||
# @within iris:raycast/test_for_block | ||
|
||
$return run execute if block ~ ~ ~ $(id) | ||
$return run execute if block ~ ~ ~ $(id) |
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
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,2 +1,12 @@ | ||
#> iris:get_position/teleport | ||
# | ||
# Teleports the executing entity to a position given by integer and fractional coordinates | ||
# | ||
# @context any entity | ||
# @within iris:get_position/get_coordinates | ||
# @input | ||
# x, y, z: The integer part (rounding near -inf) of the target coordinates | ||
# dx, dy, dz: The fractional part of the target coordinates, in millionths of a block (must include leading zeros, e.g. 027319 or 463205 or 000000) | ||
|
||
$teleport @s $(x).0 $(y).0 $(z).0 | ||
$execute at @s run teleport @s ~0.$(dx) ~0.$(dy) ~0.$(dz) |
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,6 @@ | ||
{ | ||
"pack": { | ||
"pack_format": 48, | ||
"pack_format": 56, | ||
"description": "A utility data pack to determine what block or entity a player is looking at" | ||
} | ||
} |