Extra Types

Supported MCreator versions
2024.1
2024.2
2024.3
2024.4
Tags / plugin type
Procedures
Variables
MCreator plugin
Downloads:
170
Upvotes: 1
About the plugin

Whats it add?

This plugin adds two new variable types, and the procedures needed for them. It adds BlockPos's and Vec3's.

 

What are these?

Well, BlockPos's are how Minecraft stores block positions. Anything that needs a block position, uses a BlockPos. But you can do stuff with blocks in MCreator, no BlockPos's needed. This is because mcreator will automatically convert your x y and z into a blockpos for this code. However, if you know what you are doing, why not just skip the middle step? Use a BlockPos directly. 

NOTE: This plugins compat for all MCreator block-based procedures and BlockPos's is still in progress. Many block procedures still need an x y and z seperately.

 

What about a Vec3? What is that?

Well, while BlockPos's are for storing block positions, Vec3s (also known as "Vector 3s") are for storing any x y and z together. (BlockPos's are limited to full block distances). These are very useful for compactly sending an x y and z all together around procedures. Instead of storing multiple 'x y z x2 y2 z2', why not use two Vec3s instead?

 

Other misc additions:

Depend on world block:

This procedure block simply forces your procedure to rely on world, allowing for the use of world in custom code blocks.

Comment block:

This procedure block allows you to add comments to your procedure code, which are also put in the Java code compiled (unlike normal MCreator comments)

 

Note that MCreator was specifically designed without these variable types, which was a conscious choice. However, I made this plugin since I (as a more advanced modder) felt restricted by MCreators choice of variable types. It also serves as a dependency for my more complex plugin, which I will be releasing shortly.

If you have a suggestion for another variable type I should add, please do suggest it below. 

 

This plugin is ONLY for Minecraft forge 1.20.1 at the moment. In the future I may update to support other generators. This also means that for now, MCreator 2025 isn't supported (since forge 1.20.1 is no longer a generator available)

License
MIT License

Plugin downloads
Version 1.0 for MCreator 2024.x - extra_types.zip Uploaded on: 03/25/2025 - 19:36   File size: 29.02 KB
Version 1.5 for MCreator 2024.x - extra_types_1.5.zip Uploaded on: 03/29/2025 - 19:59   File size: 31.03 KB

Comments

Version 1.5 changelog:
- Added some editor defaults to blocks, and some minor changes

Hell yeah, we need more direct access. I mostly use MCreator for it's ease in only having to write code one for each version but it can be a bit limiting when most things are designed in a way for people to more easily understand it.