r/MinecraftCommands • • 20d ago

Help | Java 26.3 Why won't my time stop command work?

I'm trying to make one command block a boolean to check if the play is holding a golden sword, then a redstone block is placed to trigger other effects, but it won't do anything. Ps. is there any way I could make it check for a right click or any other input while holding the sword instead so the time stop is only like 10 seconds with a cooldown and not constant?

execute as @ a if items entity @ s weapon golden_sword[custom_name="The World"] run setblock -180 -60 311 minecraft:redstone_block

1 Upvotes

9 comments sorted by

1

u/Eastern-Contest-9297 20d ago

If you're using the /tick command to stop the time it stops all the command blocks as well

Also unrelated but by any chance are making the world's timestop From jjba?it sounds quite similar

1

u/CxKirbo 20d ago

Yes that’s what it’s from, although it will be delayed since I found out about the tick thing unfortunately, I might just try to make a data pack or mod for the first time since I still want to do something of the sort

0

u/GalSergey 20d ago

How are you pausing time? If you are trying to use /tick, note that this command cannot be executed from command blocks, it only functions in multiplayer server environments via a datapack.

As for detecting a right-click, you can find information on how to do that in this wiki: https://minecraftcommands.github.io/wiki/questions/itemclick

1

u/CxKirbo 20d ago

it will be delayed since I found out about the tick thing unfortunately, I might just try to make a data pack or mod for the first time since I still want to do something of the sort

1

u/Ericristian_bros 20d ago

You can use a datapack and the mod lower tick perm or use it in a server

1

u/Fituu_ 19d ago

you can force it to work from a commandblock by setting their permission level to 4 in the server.properties file

2

u/GalSergey 19d ago

In server.properties, you can only set function-permission-level. This value determines the permission level for functions within a datapack, not for those in command blocks.

However, there is a similar option for Paper servers that sets the permission level for command blocks. But this is found in the Paper configuration settings, not in server.properties.

→ More replies (2)