Kind of complex wait time question

Started by WikeOfBE on

Topic category: Help with MCreator software

Last seen on 14:42, 19. Dec 2019
Joined Apr 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Kind of complex wait time question
Wed, 11/13/2019 - 15:19 (edited)

here's the situation:

i got items x and y

item x is a regular item, item y is food

there are unobtainable blocks for both items, when right clicking with item x the item gets removed from inventory and places a block, that when broken will pick the item back up

(so it basically works like placing redstone)

the idea is that i place item x, let it 'dry out' (checks if it's day time, can the placed item x see sky) for a minute and then the unobtainable block of the item y is spawned instead of the block of item x, that when broken will drop the item/food y gem

 

none of the stuff i found helps me delay it, i tried all sorts of stuff and it doesnt work in any trigger calls, only way i get some delay is adding the checking and changing procedure of the placed item x to the random tick trigger call, and it's one second delay

 

the other problem is, even if the delay wasn't a problem, is there a way to make it start 'drying' as soon as placed? the 'placed by' trigger call doesn't work, since im not directly placing a block, im removing an item and spawning a block?!

any help would be gladly appreciated, thanks in advance

 

EDIT: After literally 13 hours of messing with procedures and variables, making it work with global ones and trying every single thing, I tried just setting it to update tick without no variables and change the tick rate in block properties, and it does work the way I wanted, I must say I feel foolish for not trying the simplest thing on the list

 

Edited by WikeOfBE on Wed, 11/13/2019 - 15:19
I see you solved, this but…
Wed, 11/13/2019 - 15:20

I see you solved, this but still, I suggest you check our tutorials collection playlist on our YouTube channel which contains many examples and tutorials that can help you get started with MCreator: https://www.youtube.com/playlist?list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei

There are a few tutorials related to this too.

Last seen on 15:56, 8. Nov 2020
Joined Jan 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This could be useful to do…
Fri, 11/22/2019 - 08:03

This could be useful to do saplings, thanks