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 :)
I'm not downgrading this plugin/supporting lower versions. Anyone is allowed to as long as I am credited but I won't be doing it myself.
Supported plugin versions: Forge 1.20.1, 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
v4.3.2
- DataComponent ITEM_MODEL takes an item as a value instead of a string for setting default components
v4.3.1
- Procedures "Remove default component [datacomp] of [item]" and "Set default component [datacomp] of [item] to [value]" no longer use the "provided itemstack" procedure output, instead using the item picker procedure.
- "Set default component [datacomp] of [item] to [value]" now allows the following to be edited more simply: DAMAGE, MAX_DAMAGE, MAX_STACK_SIZE, REPAIR_COST, ITEM_NAME, CUSTOM_NAME, USE_COOLDOWN, NOTE_BLOCK_SOUND, ITEM_MODEL, TOOLTIP_STYLE. (I currently do not have enough time to explain what value types these datacomponents allow specifically, but I will explain it later)
v4.3.0
- "Break out of/Continue with next iteration of timed loop" procedure no longer accepts procedures under it
- Added procedure "Does [itemstack] have [datacomponent] (NF Only)"
- Added event "Modify default components of item (NF Only)"
- Added procedure "Set default component [datacomponent] of [item] to [value] (NF Only)"
- Added procedure "Remove default component [datacomponent] of [item] (NF Only)"
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?