Started by
myko
on
Topic category: Help with MCreator software
Is there any procedure block that allows you to spawn an item using it's registry name? Maybe an item block like "Item with Registry Name"?
If I have a variable set to Ex. (minecraft:item), I'd like to be able to spawn that item using the variable.
I was able to solve my issue manually using the code editor, but the block would still be a very useful feature.
No need for code
There is procedure block to obtain item by its registry name in procedures.
There is also procedure block to spawn item. Just swap fixed item with "item from registry name" procedure block
I'm on Mcreator version 2024.4 and I can't seem to find that block anywhere, is it only on the later versions?
Added in 2023.1.04717 according to https://mcreator.net/changelog
Have you tried procedure block search?
I've seen these "convert registry name to item" and "convert registry name to block" but I can't find any blocks similar to "Item from Registry Name" or "Block from Registry Name". The closest I found is "Random Item from Tag".
My old code (using procedure editor): (there was no "Item from Registry Tag" option)
What I changed (in text editor):
Block from Registry Name and convert registry name to block is a same thing