How can I implement this into my mod?

Started by joveaaron on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I implement this into my mod?

I've tried so many things but there is no delay block so it is very hard to make. Can somebody tell me how can this be done? Please, and thank you! https://youtube.com/watch?v=aQfka7FG2Sk

Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
search for wait procedure…
Tue, 02/22/2022 - 16:38

search for wait procedure block or use a number variable for a wait/delay block

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What? I don't think there's…
Tue, 02/22/2022 - 18:04

What? I don't think there's a "Wait" procedure block. Can you show me how it's made? I'm somewhat of a beginner.

Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sure if you use the latest…
Tue, 02/22/2022 - 18:43

Sure if you use the latest version just search for wait block I mean this block:

MCreator Wait Block

This is exactly like a delay block. You need to loop the procedure to make it work like in the video.

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
OK thank you, but what if I…
Tue, 02/22/2022 - 22:04

OK thank you, but what if I want it to do nothing? Does it work if I leave it empty? Or do I have to add a special condition?

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I've got this. Does it work?
Wed, 02/23/2022 - 15:45

I've got this. Does it work?

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The code isn't finished. I…
Wed, 02/23/2022 - 16:50

does it work?

The code isn't finished. I've still got to add the delay and the loop for the ringing. The issue is that instead of waiting 20 ticks, then ringing, and then waiting the other 80 ticks, it just plays the sound 300 times and never loops. Is anything wrong with my code?

Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
try to use the loop break…
Wed, 02/23/2022 - 17:01

try to use the loop break block inside of wait 80 ticks block

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It won't compile. * sad face…
Wed, 02/23/2022 - 19:15

It won't compile. * sad face *

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Will a custom code snippet…
Wed, 02/23/2022 - 19:20

Will a custom code snippet work with some sort of coding? Is there a delay function in Java?

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Does the "Schedule tick of…
Wed, 02/23/2022 - 19:23

Does the "Schedule tick of block at X Y Z in x ticks work as a delay block?

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
HEY, I GOT IT WORKING USING…
Wed, 02/23/2022 - 19:35

HEY, I GOT IT WORKING USING THIS CODE SNIPPET!!!

try {     Thread.sleep(#); } catch(InterruptedException ex) {     Thread.currentThread().interrupt(); }

where # milliseconds!

Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
oh nice you found a delay…
Fri, 02/25/2022 - 17:58

oh nice you found a delay code snippet to use ^^

good luck to work with your mod!