#How do i do this or is it possible?

1 messages · Page 1 of 1 (latest)

olive wren
#

Trying to put a command to activate pvp when it arrives at a certain time. Example at night.

Like... execute timeOfDay=12001..23999 gamerule pvp true

hollow remnant
#

i don't think there is something that detects the time of day just with commands

sterile star
sterile star
earnest stratus
#

I don't normally recommend redstone for command stuff but daylight sensor would work just fine.

hollow arch
#

Redstone may or may not have enough of an accurate output strength to detect the exact specific time.

#

In this case "12001..23999", it would definitely work

velvet tundra
#

Youd have to incorporate a daylight sensor because of sleeping

hollow arch
#

Upon hitting a certain amount with the daylight sensor, set the score back to zero

sterile star
earnest stratus
#

I used this when I started learning commands for a daily msg system that told players the sun was setting or rising. Used a barrel with 4 nonstackable items to help with timing.

#

For a command system you'd need sleep detection, daycycle off, time commands to simulate day changing, and of course your scoreboard for enabling pvp

olive wren
#

Thank you a lot guys!

For their help and amazing suggestions. The tips were extremely helpful, especially the ideas of incorporating the daylight sensor and adjusting the controls to deal with players' weather and sleep axolbucket