Skip to content

Commit

Permalink
Reset PlacingPosition each raycast
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico314159 committed Aug 18, 2023
1 parent c21156d commit 749ed9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions data/retina/functions/traverse/setup.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ data modify storage retina:output Target set value "NONE"
data remove storage retina:output Distance
data remove storage retina:output TargetedBlock
data remove storage retina:output TargetedEntity
data remove storage retina:output PlacingPosition
data remove storage retina:output ContactSurface
data remove storage retina:output HitFace
execute store result score $block_distance retina.__variable__ run scoreboard players set $entity_distance retina.__variable__ 2147483647
Expand Down
1 change: 1 addition & 0 deletions retina.jmc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class traverse {
data remove storage retina:output Distance;
data remove storage retina:output TargetedBlock;
data remove storage retina:output TargetedEntity;
data remove storage retina:output PlacingPosition;
data remove storage retina:output ContactSurface;
data remove storage retina:output HitFace;
$block_distance = execute run $entity_distance = 2147483647;
Expand Down

0 comments on commit 749ed9c

Please sign in to comment.