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.
Now it doesn't work the way I wanted it to. XD
It triggers all items in the player's inventory. It doesn't trigger items in blocks (which is what I wanted, but with the ability to select the slot for the slot – a new procedure where I can choose the slot to load).
Also, I noticed that the global "container opened" trigger is gone.
XD
What do you think about my "Custom code snippets" that I wrote, is it possible to fix them somehow and write them correctly to make them work?
huh the open trigger isn't gone for me..?
And,
um so you want to just be able to get the item in a specific slot?
try redownloading it and make sure you only have one version enabled
https://files.catbox.moe/rcgczd.zip
one version of the plugin*
I reinstalled MCreator and installed a new plugin. It works just like yours. But getting back to the main topic of this forum, I still only want one thing. I'd like to use a procedure, referencing a selected slot (one slot!), to load "tag" and then download it to, for example, Local Variables.
https://files.catbox.moe/2r776q.zip
nvm that block doesn't actually work with variables??
ig just use custom code snippet..
((PlayerEntity)entity).openContainer.getSlot(2).getStack().getTag().toString()
if you don't wanna change the custom code snippet to change the slot you can do like,
((PlayerEntity)entity).openContainer.getSlot((int)slot_id).getStack().getTag().toString()
oh that is provided world remote block was supposed to just be a false block x3
it's late..
Thanks for your help and for spending so much time on it :)
Now it works the way I wanted. I just wish I knew how to write plugins that would work not only with this version of mCreator but also with 3-4 others. Tomorrow or someday...
np :3 the container open trigger might work versions after 2020.5 it's worth a shot to just try when you want to update.
the custom code snippet too
(if you haven't already)
I'll check later, thanks ;)