RedWire's Plugin is a thing that I've been using mostly to help with my own mod-making experience. Hopefully, some of the additions from this plugin will be useful to other people :)
Supported plugin versions:
Forge 1.19.2, Forge 1.19.4, Forge 1.20.1, NeoForge 1.20.4, NeoForge 1.20.6, NeoForge 1.21.1, NeoForge 1.21.4, NeoForge 1.21.8
For info on most procedures and other stuff, check this file
Changelog
for the full list of changes, check this file
v6.3.5
Yknow what? Screw version constraint syntax. Procedures limited by versions will instead read (min x.xx.x) or (max x.xx.x)
v6.3.4
Version constraint syntax is confusing (Flipped greater/lesser than signs to appropriately tell what version certain procedures/events support)
v6.3.3
Slight code change to sending a successful command message for versions 1.20.1< (turns out I didn't need a final boolean)Added customBlockIndex to the code of the try-and-catch util procedure to prevent variable collisionsAdded a checkbox for both try-and-catch and try-only procedures to catch Throwable instead of Exception (which should only be enabled if you know what you're doing)
Comments
Dunno, works for me fine no problem. If you wanna attempt to keep entities from targeting you, you can set a "Entity sets its attack target" global trigger, use the "Set new target of source entity to [entity]" under the event procedures tab, and use the "No entity" block
I believe it checks for the first block that is closest to Entity1 thats in the way of it and Entity2, considering the raycasting starts from that.
Also, make sure you're using the "Can Entity1 find Entity2" check from my plugin aswell, as it'll just return 0,0,0 if there is no block in the way
Moved the display images for my plugins to my github page. You're welcome, anyone that lives in the UK