Started by
ChaosColin
on
Topic category: Help with Minecraft modding (Java Edition)
In short, I have created an oven with a slot for the oven racks and 4 slots for the stove burners. I wish to use the "inventory slot automation place condition" within my blocks entity data to force adjacent hoppers to only deposit items that can be smelted into food, into the top 4 slots. The only way I know how to do this is using the "get smelting result of (provided itemstack)" block, however this block adds the "world" dependency to the procedure rendering it unusable by the slot automation place condition.. Is there a way around this?
Here is a screenshot of the procedure in question (hopefully)...
can you lock the block's code?
I'm willing to, if need be..
okay then lock your block, open the blockentity and add,
I appreciate your response! However this caused the project to be unable to compile properly..
I was going to share the code here, but it seems its too long..
just send a screenshot of console
Apologies, it was actually an error on my part, this worked perfectly thank you! Though I have 0 understanding of HOW or WHY that worked... Do you mind explaining to me what this little snippet changed?
awesome! :3
oh yeah sure, I'd love to explain it. So basically the
FoodProcedure.execute()or whatever your procedure is called, is triggering your procedure,without changing the code this procedure cannot be called here, because it requires the
worlddependency which isn't supplied.So what changing the code does is simply just provide that dependency to the procedure.
the
thispart of the added code referrers to the blockentity itself andlevelis simple whatworldis in manual code. So it simply gets the world the blockentity is in.I hope that was understandable x3
So that edit really just allows the block to utilize the world dependency in this case even though its not necessarily supposed too.. Interesting, thank you for teaching me this!
I apologize for asking more of you, but you seem very knowledgeable when it comes to stuff like this. Could you maybe show me what it would look like to add the x, y, z dependencies ontop of the world one in the same manor? I have a two block double chest type thing and I want the top block to have small inventory that will transfer its own to the main block below it. But I don't want items being put into the top block from hopper unless the bottom one has room. I tried messing around with different things but I kept getting "cannot find symbol" errors, even for "itemstack" so I'm lost...
Here is a pic of the procedure I wish to work with this..

Idk why this image wont send like the last one but found another way...
umm I can't find the "Hopper place condition" are you referring to these?
Yes that is the one, sorry
then in the code add the dependencies using,
not sure where it expects the parameters to be so you might have to move them around. You can see where they are supposed to be by looking at the the generated code for the procedure,