forum Forumskeyboard_arrow_right Help keyboard_arrow_right computerJava Edition

Create Forum Thread
1

Delete Mobs at Daybreak?

1 emeralds2 replies38 views
Sizer25 started 03/31/2020 6:41 am
WitherKing1234561 replied 03/31/2020 11:58 am
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 avatar
Sizer25
Level 1 : New Miner
0

comment Login or register to post a reply.

2 replies

1
03/31/2020 11:58 am
Level 40 : Master Mage
WitherKing1234561
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 48 : Master Pixel Puncher
TomConn
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 Logo

Website

© 2010 - 2020
www.planetminecraft.com

Welcome