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.3.4
Version constraint syntax is confusing (Flipped greater/lesser than signs to appropriately tell what version certain procedures/events support)
v6.3.3
Slight code change to sending a successful command message for versions 1.20.1< (turns out I didn't need a final boolean)Added customBlockIndex to the code of the try-and-catch util procedure to prevent variable collisionsAdded a checkbox for both try-and-catch and try-only procedures to catch Throwable instead of Exception (which should only be enabled if you know what you're doing)
v6.3.2
- Attempting to set a global variable with "Directly set *LOCAL* itemstack [var dropdown] to [item]" will now error on purpose because I'm EVIL!!!!!!!!! (the real reason being to prevent confusion regarding unintentionally writing to a *local* variable of the same name and type)
v6.3.1
Moved "Remove all instances of .copy() from [statement]" to the Utils categoryChanged the text in "Directly set itemstack" procedure to specify that it only works with *local* variables. For global variables, use the regular variable-set block + the new statement procedure.
Comments
your plugin have game crashing bug, I made block that self replaces itself after 80 ticks and every 10 ticks it spawn particles to indicate that its going to spawn. its very rare but sometimes your block "repeat x times with wait time" crashes game with error Accessing LegacyRandomSource from multiple threads
Hi, I am using your plugin since yesterday and I REALLY LOVE IT!
There is a small error though, I think... The "Un-tame" is not working for me. My procedure is just
[Trigger: Entity hurt by Source Entity]
[if Entity tamed by Source Entity do
Un-tame Entity]
It does nothing. I also tried /execute as ... data remove entity @s Owner ingame and it doesn't work either. Can you tell where the problem is? (MCreator 2024.1; Java 1.20.1; Forge)
It's server-sided so if you're trying to run it client-side it won't work, aside from that uhhh idk help me out