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
For info on most procedures and other stuff, check this file
Changelog
for the full list of changes, check this file
v5.1.4
Added a null-check for the static cloned entity procedure
v5.1.3
Changed text of procedure "Get default name of [entity]" to "Get name type of [entity]"
Added UUID randomizing to prevent cloned entities from despawning on world reload
Added procedure "Static cloned entity of [entity] (no spawning)", functioning similarly to "Static entity instance of type [x] (no spawning), except it'll create a static entity with the same data as the entity input
v5.1.2
Slightly changed the text_split_foreach procedure code to use the default value operator instead of re-assigning a (potential) missing value
Added a procedure "Attempt to do [x] print error to console [y]", which is a copy of an already-existing procedure, just without the statement if it fails
Slightly changed the text.properties line for try_and_catch
v5.1.1
"Is provided world hardcore" is no longer a server-side only check
v5.1.0
Added support for Forge 1.19.2 for anyone that still uses that
Comments
if you know how to use basic code for code blocks, the thing to get invulnerablity time is "entity.invulnerableTime"
so if you wanna grab that value, you can use "Set number [variable name] to" and put "entity.invulnerableTime" with a code snippet
to change it, use the other custom code snippet. for example if I wanna change it to 0 to make an entity able to be hurt again, simply do "entity.invulnerableTime = 0;"
MCreator 2025.1*, oops