1
Delete Mobs at Daybreak?
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.
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.
Create an account or sign in to comment.
2
1
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
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
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 :)
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 :)