Item that stops time

Started by AlLeGameur on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Item that stops time

Hello everyone!

 

I've been trying to create an item that when right clicked freezes time around you (including mobs). How can I do it?

This has been asked before on this forum, but I tried using a procedure given in a post from last year ( https://imgur.com/a/vfKgwKo ) and it just crashes my game.

Could anyone help me?

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I still need help with this.
Fri, 06/16/2023 - 12:17

I still need help with this.

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Still need help with modding…
Thu, 06/22/2023 - 16:32

Still need help with modding this in...

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hello! You'll probably need…
Thu, 07/27/2023 - 10:41

Hello! You'll probably need to work quite a bit on this, but a good place to start is a procedure that runs "On loaded entity tick update".

You will also need a global logic variable. When you right click the time freezing item, the variable gets toggled between true and false.

Inside the procedure you just created, if the time stop variable is set to true and the entity isn't a player or server player, use "attempt to override motion vector 0 0 0" to freeze the entities in place, attempt to stop navigation, set the rotation to 0 0, set no-gravity to true.

You can also modify some gamerules, like setting random tick speed to 0, daylight/weather cycle to false, no fire spreading, no patrols etc.

You will of course need to reverse all of these once the variable is set back to false.

Hope this helps!

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
is help still needed, i made…
Sat, 04/13/2024 - 14:35

is help still needed, i made a mod that doing just this

Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'd be interested in what…
Fri, 06/07/2024 - 00:00

I'd be interested in what you did, Blue apple

Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The 1.20 update came with a…
Fri, 11/08/2024 - 00:30

The 1.20 update came with a nifty new command, /tick.

Use the Execute command block and set it to "tick freeze" when you want time to pause and the same block again with "tick unfreeze" when you want time to resume.

By default, every entity but players should be frozen

Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The only downside to this is…
Fri, 11/08/2024 - 00:35

The only downside to this is that tick based procedures wont work, and it freezes everything, including item entities and particles.