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.0.6
Changed most PlaceholderEvent private final fields to public final (and removed the getter methods)Added a public extras Map field to pass any optional arguments not listed
v6.0.5
Removed x, y, and z fields from PlaceholderEvent in replacement for Vec3 posAdded damagesource, direction, and dimension dependencies to the Placeholder event
v6.0.4
Moved all UUID-related procedures (except for get entity from string UUID) over tomy new pluginAdded data procedure "Remove ".copy()" from itemstack code [itemstack]"Slightly changed text of "Directly set itemstack [var] to [itemstack]" to clarify that it removes ".copy()" from its codeAdded "event" Placeholder Event. This does not exist in normal means, and is only really there if you wish to use the blockly UI in procedures whilst executing said procedure somewhere else (or modify the cancel behavior) in custom code.
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
Updated zip file to include the java class file for PlaceholderEvent