#mod-dev-talk Friday 6 January 2023
36 messages4 people
- C
- C
- C
- C
- C
- C03:52if you try to print each pos it iterates through to the console, does it properly print all the positions you want?
- C
- C
- C
- C
- CHmmm, in that case, I could try to override neighborUpdate and put the logic for removing snow in there.04:23Ah, just to make sure, does the code for neighborUpdate update the blocks specified by world.createAndScheduleBlockTick in getStateForNeighborUpdate?
- CneighborUpdate is the method called when a block tick happens iirc. getStateForNeighborUpdate should return the state that the block turns to when updated04:25I think*
- C
- C04:43it's what sand blocks do to not cause them all to fall at once
- J
Replying tocymbidialHere's the beef! I'm not sure if what I'm doing with these iterators are entirely safe.
Sponge does a similar thing with water. I'd recommend taking a look at how they do it - D
Replying tocymbidialAh, for sure. It's just that the fab discord's pretty busy, and I feel bad for talking…
Nobody helps in fabricord anyways05:47U gotta wait like 1 hour to find an answer05:48U end up having to search the web or figuring it out urself - C
Replying toJack PapelSponge does a similar thing with water. I'd recommend taking a look at how they do it
hoho, I just banged my head against the source code for a good two hours. Is there a way to define the area where neighborUpdate is called?07:10If I can find a way to execute a command when a block updates in a defined area, I'll be golden - C
Replying toDeleted UserU end up having to search the web or figuring it out urself
Yeah, I definitely know the feel. The fabricord's really tough for answers sadly. - C
- C

