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.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
v5.0.0
I said I wouldn't be supporting lower versions... but I've decided that's a lie.
(Re)Added support for NF 1.20.6
Added support for NF 1.20.4
Added support for Forge 1.19.4 (To the one who asked me to make a backport of either 1.19.2 or 1.19.4 a year ago, your wish finally came true)
The "(NF Only)" text for the few procedures that have it will now show the minimum generator version that the procedure supports.
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;"
Hi! Nice plugin. Can you add something like "get item by string (string)", not by registry name, but by actual string, like minecraft:dirt{nbt} would return dirt with "nbt" components?