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.5.3
Fixed a thing where I accidentally screwed up "Get entity from string uuid" in versions 1.20.6 or lower
v5.5.2
Changed code of "Get entity from literal uuid [uuid]" to be a simple one-liner instead of creating a method (or anonymous object, depending on the Minecraft version)Moved all UUID-related procedures (except for UUID comparison) to a new plugin tab labeled "UUID"Removed the "regclasses.yaml" datalistImproved the "forgeregs" datalist to include the data from regclasses.yamlThe "Get object from registry" procedure no longer uses a second field for defining class type
v5.5.1
Added server-side indicator for getting entity from string/literal UUID and executing command from entity/world with permission level (Note: getting entity from numeric ID works both sides, so that is intentionally left without an indicator)
v5.5.0
Added get, has and set UUID data tag procedures for both items and blocks
v5.4.2
Re-named the file of "Get literal UUID of [entity]" procedure so it doesn't clash with MCreators string uuid getterAdded some extra strings in text.properties for UUID-related var stuff, although currently uselessMoved "Is literal UUID [uuid] same as [uuid2] to the MCreator logic tab
v5.4.1
Added procedure "Is literal UUID [uuid] same as [uuid2]" (I forgot to include this before 😔)Changed text of the UUID-NBT-get procedure to line up with the other NBT procedures
Comments
get key that keybind don't work, and how u think is need work? is need if pressed- return true, and equals to questions, if get key that keybind "Attack/Destroy (u is write what is a not "a,b,c, lmb or something)" = true
then return procedure
ITS NEED
if get key that keybind "Attack/Destroy" is assigned to = true
true = execute command "say 1" in the name of Event/Target entity
false - ignore procedure
what u do - idk, but its not work, and is a very nice reason to fix plugin, or pls write TRUE instruction
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;"
I know this question doesn't really have anything to do with your plugin, but do you have any knowledge of mutator procedures? I'm racking my brains trying to make one.