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.4.0
Added procedure "Clamp number [x] between min: [y] and max: [z]" in UtilsSlightly changed procedure text of "Get object from registry" procedure + added a "warning" comment with variables that can be used inside the statementAdded a warning line for both "Get (display name/version string) of mod from id" procedures to clarify that it only checks active modsRe-colored the "Modify/Remove default component of [item]" procedures to fit in with the other global trigger procedures + changed textsImproved code for getting spawn egg item from entity type (Forge 1.20.1 and lower uses ForgeSpawnEggItem.fromEntityType)Reverted code change for getting block that enderman is holding *just* to avoid the ever-so-slight overhead with creating Optional instances
v6.3.7
Improved all global trigger procedures to include a warning line at the bottom of the procedure UI (so I'm not limited to the procedure blocks UI size)Try-only, try-and-catch, and directly set itemstack variable procedures have some unique warnings of their own
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;"
This plugin deserves more than 1000 upvotes. i like how you said "sorry marwinekk256 ;("