Started by
SleepyTurtle
on
Topic category: Help with Minecraft modding (Java Edition)
Just as the tittle says i need help with a hopper like block it works fine when its one item at a time but as soon as i drop a full stack it deletes it and adds only one any help would be appreciated :)
in case the link doesn't work here's another one
I am always impressed by your format of procedure-telling using bullet lists hehe :D
Yeah, I've found it's a good way to visualize code in a way that's a bit easier for people to follow. I mean, the better way is just to make the procedure and take a picture of it, but I kinda try to encourage people to work it out for themselves. Teaching a guy to fish and all that. =)
procedure keeps repeating the if statement over and over idk what i did wrong it does add them up if they are not over the max stack tho
here's the picture of the code: https://imgur.com/a/uzJyIEV
While loops can pretty easily crash the game if they for some reason don't meet their end condition. In this case, I think it likely has something to do with 'saved size.' It might also be running into problems with multiple items? I would also check not if the target entity is an item, (I mean, obviously check that), but also if the entity iterator is still alive. (Even if the entity iterator is despawned, it is still an item, and the condition will still be true.) It may be worth trying to use a repeat function instead, set to repeat based on the number of items in the stack.
Hey I've just stumbled upon this thread, did you manage to solve your issue?