Update tick procedure trigger sometimes not working

Submitted by Wes on Wed, 11/28/2018 - 16:23
Issue description

As in title procedures does not recognize blocks with custom model so you cant use it in procedures

To reproduce this make 2 blocks one with custom model
for the one without custom model made procedure that will be checking for block with custom model for example if CModel block is at y+1 from block
set this procedure on tick update or anything

Attachment Size
Workspace381.11 KB 381.11 KB

Issue comments

Submitted by Klemen on Wed, 11/28/2018 - 18:12

I have made two blocks. One normal and one with custom JSON model. I have set that on right click of normal model, the lightning strucks only if the block above is a block with a custom model. I have tested this and it worked. Did I reproduce your case correctly?

Submitted by Wes on Wed, 11/28/2018 - 19:15

I did my one on tick update and didn't work so it might be case of tick update because it works with normal type blocks 

Submitted by Klemen on Wed, 11/28/2018 - 19:50

I have just tested this too and it worked. The same thing as before, I just moved it to tick update trigger. Are you sure there is not something else causing this?

Submitted by Wes on Wed, 11/28/2018 - 21:21

It was suppose to change item in my custom gui
anyway I will upload my workspace

Submitted by Wes on Wed, 11/28/2018 - 21:36

ok never mind I just have tested and now its working as intended 
have no idea why sometimes procedures does not work as they should 

Submitted by Klemen on Thu, 11/29/2018 - 15:46

If you add new dependencies to the procedure, you need to update the mod element that is calling it too. By update I mean to edit it and save it again. This will be improved in future updates. You can avoid this by editing the procedures inline. Check the console when the procedures don't work as warnings are printed in it if the procedure call was not updated yet.

Submitted by Wes on Fri, 11/30/2018 - 22:21

Ok so I still have this problem but with different outcomes
I think there is something wrong with Tick Update Event

Now I created 3 cauldrons 1 empty 2 with different water variations
empty one should after 50tick change to Cauldron with water when its raining or thunder "Does not changing"
another cauldron should change to different cauldron after 150 ticks when fire is under it "Still nothing"
also there is nothing in console about this two events :L

here is link to GIF https://i.imgur.com/C6xyS3o.gifv

Also I've noticed that is working on different world but not all of them :L

Submitted by Klemen on Sat, 12/01/2018 - 10:32

So the issue is that update tick is not always being called? Do you have any pattern so I would be able to reproduce this?

Submitted by Wes on Sat, 12/01/2018 - 15:59

I'm attaching my workspace
Just place cauldron anywhere in the world during the rain and it should fill up with water after sometime
 

Submitted by Klemen on Sun, 12/02/2018 - 10:29

Thanks, I will test it and see what could be causing this. If you are using random probability it could be that the condition just wasn't fulfilled yet. But this is just guessing, I will check it in MCreator when I get some time :)

Submitted by Wes on Wed, 12/05/2018 - 22:19

Ok I did another thing but with Custom GUI and same thing happens "or its not happening"
So I've made simply procedure to check
 

if item = bottle in slot 0
   Do Remove bottle, 
      if Item = item and/or Item = Item      
         do Remove item from slot 1 & 2
            add item to slot 3
            Print: Done

Still does not work even when opened threw Block Editor

Submitted by Klemen on Thu, 12/06/2018 - 14:59

Is this procedure triggered on tick update too?

Submitted by Wes on Thu, 12/06/2018 - 17:58

I've added also print to console to know where its stoping but after first IF it stops on second one :L
this should work because I have similar block but with 2 input slots that works fine on my other workspace

Submitted by Klemen on Thu, 12/06/2018 - 18:09

OK, thanks for the info, I will investigate the cause for this.