Started by
VegaOrionis
on
Topic category: Help with MCreator software
Hello, I'd like to obtain specific item data, specifically the tag. Using the "/data entity" command, I can also see information about items in my inventory and their data. I'd like to obtain this data in MCreator for a specific item, but I don't know how to extract it. I've tried various combinations, but I must be doing something wrong... I'm not getting any feedback when testing.
Actually, that's not fully true I also use IntelliJ IDEA to get the right code for the .java.ftl
In IntelliJ IDEA I use the Minecraft Development plugin.
The free version of IntelliJ IDEA is called IntelliJ IDEA Community Edition.
And for the plugin I made for you, since the Minecraft Development plugin only has forge version down to 1.16.1 I used this website instead https://mcstreetguy.github.io/ForgeJavaDocs/
Just to be clear I didn't pay for IntelliJ IDEA, I use IntelliJ IDEA Community Edition
OK, thanks, maybe I'll look into it sometime ;)
I wonder how to write this code :"((PlayerEntity)entity).openContainer.getSlot((int)slot_id).getStack().getTag().toString()"
so that I can enter my own coordinates and it works regardless of whether the block is open. I'd like to be able to call the procedure regardless of whether the block is open.
Enter the block coordinates and the slot number from which you want to retrieve the "tag".
without plugins
you'd have to write it as,
This is my favorite of all. Thanks :)
:3
Theoretically, everything would be fine if it weren't for the fact that my game crashes immediately when these commands are executed every 1 tick... ugh.. ;_;
https://imgur.com/a/Xti0719
I wanted it to constantly check the status and record the current state of affairs...
https://imgur.com/a/31JKE3W
Of course I disabled the "send to all player" command
I tried to perform the procedure only when changing the slot state but it still crashes the game.
https://imgur.com/a/MQ0Ukf4
ah... in fact, the procedure "custom code.." is still running because it checks all the time in "if"
yeah local variables don't like "carry over" so when the procedure is done/reaches the last block; all local variables are "cleared"
i'm not sure why it would crash though, can you send the full error, this part is generic
https://imgur.com/a/Xti0719