Retina

Retina

Mod and data pack

Minecraft raycasting library that can detect precisely what block a player is looking at, including special block shapes like slabs & stairs.

Server LibraryUtility

400 downloads
9 followers
Created10 months ago
Updated6 months ago

Follow Save
Host your Minecraft server on BisectHosting - get 25% off your first month with code MODRINTH.
Filter loader...
Filter versions...

What's Changed

  • Allow raycasting from any eye Y-level
    • (basically means you can now raycast as any entity)
  • Overlays for compatibility with more future MC versions
  • Fix redstone_wire block tag (erroneously included comparators)
  • Reset ContactCoordinates if raycast hits nothing

Full Changelog: https://github.com/Nico314159/Retina_v2/compare/v2.3.6...v2.3.7

What's Changed

  • Fixed lectern & bell hitboxes
  • Implement redstone dust (at last!)
  • 1.20.3/4 support

Full Changelog: https://github.com/Nico314159/Retina_v2/compare/v2.3.5...v2.3.6

What's Changed

  • Fixed lily pad hitboxes
  • Made light blocks treated as intangible

Full Changelog: https://github.com/Nico314159/Retina_v2/compare/v2.3.4...v2.3.5

What's Changed

  • Fixed a small but fatal bug that prevented Retina from working at all when freshly installs

Full Changelog: https://github.com/Nico314159/Retina_v2/compare/v2.3.3...v2.3.4

What's Changed

  • Updated pack to Minecraft 1.20.2 (will not work on older Minecraft versions!)
  • Improved efficiency of gimbal/matrix conversion and random number generation

Full Changelog: https://github.com/Nico314159/Retina_v2/compare/v2.3.2...v2.3.3

What's Changed

  • Now avoids checking for head collisions on the lower block of an entity
  • Uses the defined SCALE value in .jmc files, instead of writing 480 directly
  • More efficiently initialized $cuboid_id using execute store
  • Fixed "off-by-one" range error

Full Changelog: https://github.com/Nico314159/Retina_v2/compare/v2.3.1...v2.3.2

What's Changed

  • Now treats display entities (all three kinds) as intangible entities.
  • Fixed an issue where headshot boolean would not be reset after each shot.

Full Changelog: https://github.com/Nico314159/Retina_v2/compare/v2.3.0...v2.3.1

What's Changed

  • Implemented head hitbox detection
    • Supports players, blazes, villagers, wandering traders, and all variants of piglins, zombies, and illager
  • Added simple togglable ignore flags for block/entity types:
    • e.g.scoreboard players set $ignore_slab retina.__variable__ 1 will make Retina treat slabs as if they were just air.
  • Fixed errors in guard conditions
  • Further split up .jmc files
  • Removed unnecessary variables
  • Implemented new JMC chained assignments

Full Changelog: https://github.com/Nico314159/Retina_v2/compare/v2.2.0...v2.3.0

What's Changed

  • Added ability to randomize the raycasts generated by retina:traverse/multicast function
  • Added option to summon a marker entity at the endpoint of raycasts using data merge storage retina:input {EndpointEntity: 1b}
  • New #retina:on_hit function tag for interfacing with other datapacks
  • Minor function call optimizations
  • Resets PlacingPosition if raycast hits nothing
  • Sets Distance to MaxRecursionDepth if raycast hits nothing

Full Changelog: https://github.com/Nico314159/Retina_v2/compare/v2.1.3...v2.2.0

What's Changed

  • Implemented two block hitboxes that were previously missing:
    • End portal frame w/ eye
    • Nether wart crops

Full Changelog: https://github.com/Nico314159/Retina_v2/compare/v2.1.2...v2.1.3

What's Changed

  • Fixed dependency checking system.
  • Fixed an error where curved rail hitboxes were taller than intended.
  • Fixed Distance output value sometimes being negative.

Full Changelog: https://github.com/Nico314159/Retina_v2/compare/v2.1.1...v2.1.2

What's Changed

  • Fixed boolean value issue with $single_call variable
  • Updated pack.mcmeta for Minecraft 1.20

Full Changelog: https://github.com/Nico314159/Retina_v2/compare/v2.1.0...v2.1.1

What's Changed

  • Implemented ability to do multiple different-angled raycasts using retina:traverse/multicast function.
  • Added consideration for entities being hit by multiple raycasts.
  • Updated documentation.

Full Changelog: https://github.com/Nico314159/Retina_v2/compare/v2.0.0...v2.1.0

Initial release


Project members

Nico314159

Owner


Technical information

License
Unlicense
Project ID