1

Delete Mobs at Daybreak?

Sizer25's Avatar Sizer253/31/20 6:41 am
3/31/2020 11:58 am
WitherKing1234561's Avatar WitherKing1234561
Hello,
i was wondering if there was some way to make it so that when the sun comes up that all evil mobs could just despawn.

Maybe with commands at certain periods of day the difficulty could be set to peaceful, then quickly back to normal?

I just don't like how the game looks when I have to place lights everywhere just to stop mobs from spawning.
Posted by Sizer25's Avatar
Sizer25
Level 1 : New Miner
0

Create an account or sign in to comment.

2

1
03/31/2020 11:58 am
Level 51 : Grandmaster Mage
WitherKing1234561
WitherKing1234561's Avatar
This is kind of hard to explain, but do this:
Get a daylight sensor, and have it activate a commandblock that says /difficulty peaceful
Then get a nightlight sensor and have it activate a commandblock that says /difficulty normal or hard
2
03/31/2020 8:31 am
Level 67 : High Grandmaster Senpai
Stubbs1
Stubbs1's Avatar
With commands you have the possibility of setting up a daylight-sensor and connecting it to a command block that has one of the following codes in it:

On a server with essentials:
A command block with " /killall hostile " should do the trick :)

Vanilla Minecraft:
You need to make a command block with the command: " /difficulty peaceful " followed by a redstone repeater (Set to max ticks) and then that should connect to another command block with the command " /difficulty normal " if you play on normal. You can also set it to " /difficulty easy " or " /difficulty hard "

Hope this helps you :)
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome