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, Vec3
s (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 Vec3
s 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)
can we get more variable types?
something like projectiles and other stuff