ProcedureCode

Published by Addoner312 on
Supported MCreator versions
2024.1
2024.2
Tags / plugin type
Procedures
Variables
Me)
Downloads:
684
Upvotes: 3
About the plugin

ProcedureCode is a plugin that adds procedural blocks to Minecraft. 

It adds a new variable called "data", which can be converted any variable type and back.  Classic programming blocks and other stuff.

 

Made in PluginBuilder


Plugin

  • Blocks:

  1. "try" - If in this block is detected error, then code doesn`t stop working from "Easy Code/do"
  2. "new data" - Create new data from "Minecraft Components"
  3. "for" - It`s upgraded version of standart for from "Easy Code/do"
  4. "call method" - Calls a method from "Easy Code/do"
  5. "call returnable method" - Calls a method and return value as data from "Easy Code/do"
  6.  "is instance of" - Check is object instance of written class from "Easy Code/Get"
  7. "do from data" - Do actions saved in data from "Easy Code/do"
  8. "do from data and return" - Do actions saved in data and returns value as data from "Easy Code/do"
  9. "convert data to" - Converts data to another type from "Easy Code/Get"
  10.  "convert to data" - Converts to data from "Easy Code/Get"
  11. "convert to data from actions" - Converts actions to data from "Easy Code/Get"
  12. "At client side do" - does actions from client side(Not all methods are will support) from "Sync"
  13. "At server side do" - does actions from server side(Not all methods are will support) from "Sync"
  14. "get local player" - return local player(YOU as player) from "Sync/Client"
  15. "get entity hitbox size" - returns the size of hitbox  from "Entity data"
  16. "create new hitbox" - creates new hitbox from "Minecraft Components"
  17. "set hitbox" - sets hitbox size for entity(Minecraft not fully support this) from "Entity management"
  18. "get pose" - returns entity pose from "Entity data"
  19. "set pose" - sets pose for entity from "Entity management"
  20. "Generate seed" - return random seed as Long from "Easy Code/Get"
  21. "Block to registery/Item to registery" - return registred block/item from "(Item/Block)data"
  22. "crash" - crashe game from "Easy Code/do"
  • Variables:

  1. Data - can get any value
  2. Long - Number but can be longer
  3. Hitbox - hitbox
  4. Pose- entity pose
  • Supported  versions:

       0.0.2) Mcreator 2024.1 Forge 1.20.1

       0.0.3) MCreator 2024.1/2024.2 Forge 1.20.1


Newest version

0.0.3:

Fixes:

  • Fixed "set hitbox" block
  • Fixed "set pose" block

Reworks:

  • Fully changed "to data" and "from data"

Blocks:

  • "Generate seed" - return random seed as Long
  • "Block to registery/Item to registery" - return registred block/item

Order:

  1. Deleted "Easy Code/Get/Instances", "Easy Code/Get/from data" and "Easy Code/Get/to data"
  2. "new data" moved to "Minecraft Components"

Variables:

  • Long - Number but can be longer
License
Public Domain

Plugin downloads
EasyCode 0.0.3 on Mcreator 2024.1/2024.2 Forge 1.20.1 - EasyCode_1.zip Uploaded on: 07/17/2024 - 05:48   File size: 24.66 KB
EasyCode 0.0.2 on Mcreator 2024.1 Forge 1.20.1 - EasyCode_0.zip Uploaded on: 07/10/2024 - 11:31   File size: 34.89 KB

Comments

I have one suggestion: Would it be possible for you to add a setting to the "try" procedure block that adds a "catch" statement?
The reason this would be useful is if you want to only execute code if the statement fails. Let's say you're putting something into a try block that could cause a crash in some cases if run normally. The whole thing is placed in a loop, and there's some code under the try block.
The code underneath is always executed, and the code inside the try statement is only executed if it doesn't fail. But let's say we want to break out of the loop in case execution fails. Here, a catch statement could be useful. It would basically skip the rest of the code in the loop in case it fails. The catch statement would only be called if there's an error, not if the try statement does nothing.

Just checked through the procedure blocks. Dude this is insane! Classes inside procedures with parameters and everything? You're crazy!

Hey, I think I found a new bug; changing to data and then to string doesn't work:

Note: SpongePowered MIXIN Annotation Processor Version=0.8.5 (MixinGradle Version=0.7.38)
Note: Supported obfuscation types: ObfuscationServiceMCP supports [notch] ObfuscationServiceFG3 supports [searge]
...\mcreator\creepersburg\procedures\ReturnVariableProcedure.java:15: error: incompatible types: boolean cannot be converted to String
_player.displayClientMessage(Component.literal(((String) CreepersburgModVariables.MapVariables.get(world).CreeperlyInProgress)), false);
^
...\mcreator\creepersburg\procedures\ReturnVariableProcedure.java:17: error: incompatible types: double cannot be converted to String
_player.displayClientMessage(Component.literal(((String) CreepersburgModVariables.MapVariables.get(world).CreeperlyTimer)), false);

Hi, @Addoner312! Love your Plugin, I especially needed that "try" block. But now I am getting the Error: exception IOException is never thrown in body of corresponding try statement
} catch (IOException e) {
^
Can you tell me what that means? (Sorry if it's a stupid question.)

Bro no, im saying this cuz the thing was uploaded in a different timezone and they were confused, also people sometimes upload things in the morning of someone elses timezone and their like "why are you on at 3am??!!", im just saying people dont think about timeoznes

Guys, why don't you stop fighting? This comment section should be about the plugin. The plugin deserves nicer comments than a fight about how stupid or smart humanity can be.