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.1
Moved "Remove all instances of .copy() from [statement]" to the Utils categoryChanged the text in "Directly set itemstack" procedure to specify that it only works with *local* variables. For global variables, use the regular variable-set block + the new statement procedure.
v6.3.0
Minor improvements to RedwiresTimedLoop util classAdded procedure "Get spawn egg from [entity] or AIR if no item existsAdded procedure "Remove all instances of ".copy()" from [statement]"
v6.2.3
Revamped functionality of the timed loop procedure for 1.21.4+. For versions older than that, the variable names have been changed to prevent possible compile errors.
v6.2.2
Added (value = Dist.CLIENT) to the @EventBusSubscriber of "Client tick update" to prevent dedicated server crashes (teehee woopsies)
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
Is it possible to make it so that timed loops also support decimal values and not just integers?