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
world
dependency which isn't supplied.So what changing the code does is simply just provide that dependency to the procedure.
the
this
part of the added code referrers to the blockentity itself andlevel
is simple whatworld
is 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!