1

Prevent Mobs from Entering Certain Light Levels?

ReadableName's Avatar ReadableName10/13/15 7:57 pm
1 emeralds 490 3
11/5/2015 10:55 pm
DoYouEvenTriangle's Avatar DoYouEvenTriangle
I'm working on a survival modification that's similar to the game "Don't Starve" and I'm wondering if it's possible to make it so that mobs don't enter certain light levels at night. My question is, is this possible in 1.8?
Posted by ReadableName's Avatar
ReadableName
Level 1 : New Miner
1

Create an account or sign in to comment.

3

1
11/05/2015 10:55 pm
Level 19 : Journeyman Engineer
DoYouEvenTriangle
DoYouEvenTriangle's Avatar
Sorry this post is a few days old thought I'd throw in my help first, but anyways This could be possible with 2 command blocks and a armorstand. more help below..

I'd start by setting a custom armor stand at each light source (for example this code should do) /summon ArmorStand ~ ~ ~ {CustomName:light,Invisible:1,Marker:1,Invulnerable:1,NoGravity:1}

Now Using Repeating command block
/execute @e[name=light,type=ArmorStand] ~ ~ ~ /effect @e[type=!Player,r=8] slowness 1 255 true

Then Using a chain command block with conditional
/execute @e[name=light,type=ArmorStand] ~ ~ ~ /execute @a[rm=8,r=15] ~ ~ ~ /effect @e[type=!Player,r=9] slowness 0 0 true

With this it shouldn't fail in certain rooms but if you get at certain angles it might be able to enter a bit more into the light than other sides.
1
10/18/2015 5:03 pm
Level 42 : Master Pixel Painter
JozyP
JozyP's Avatar
PM me and I'll explain to you your options.
1
10/18/2015 3:32 pm
Level 33 : Artisan Zombie
SpoopyBlue
SpoopyBlue's Avatar
That's a cool idea
is it possible to detect certain light levels and but barrier blocks around it that the player can pass through but not mobs?
I dunno I don't make this sorta thing but maybe I helped?
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome