1
Prevent Mobs from Entering Certain Light Levels?
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?
Create an account or sign in to comment.
3
1
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)
Now Using Repeating command block
Then Using a chain command block with conditional
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.
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
PM me and I'll explain to you your options.
1
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?
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?