Home
Kai Jiang edited this page Mar 20, 2016
·
26 revisions
woodlogs
block:<modid>:<blockName>[:<damageValue>]
position:<range>,<range>,<range>
material:<blockMaterialName>
mob:<mobSimpleClassName>
mobtype:<mobType>
dim:<dimensionID>
chance:<probalitiy>
<modid> := <string>
<blockName> := <string>
<damageValue> := <range>
<range> := "*" | <integer> | <integer> "-" <integer>
<blockMaterialName> := <string>
<mobSimpleClassName> := <string>
<mobType> := "monster" | "animal" | "ambient" | "water"
<dimensionID> := <integer>
<probalitiy> := <double>
not := "~" | "!"
and := "&" | "&&"
or := "|" | "||"
parentheses := "(" | ")"
If the first character of any rule is "-", the rule will be treated as whitelist.
For example, "-block:minecraft:log:0" allows mob spawning on oak logs.
The rules are applied one by one, if there is conflict between blacklist and whitelist, the latter rule will override the former rule.
woodlogs
block:minecraft:brown_mushroom_block || block:minecraft:red_mushroom_block
-block:minecraft:log:0
-
woodlogs & !mob:EntityCreeper
# Stop mob spawning on trees except for creepers. -
dim:1 & chance:0.95
# Greatly reduce the chance of spawning Enderman in "The End" dimension. -
material:wood & mobtype:monster
# Hostile mobs will not spawn in your house anymore! (If your house is made out of wooden blocks, e.g. planks, wooden slabs, bookcase, etc.)
-
<damageValue>
is the damage of ItemBlock, not the block metadata/state stored in chunks. So, you can not use "minecraft:log:4" to specify a horizontal oak log. -
<mobSimpleClassName>
is the SimpleClassName() in Java code. Though it also support some alias like just "creeper", but I suggest you to use the SimpleClassName.
- EntityBlaze
- EntityCaveSpider
- EntityCreeper
- EntityEnderman
- EntityGhast
- EntityGolem
- EntityIronGolem
- EntityMagmaCube
- EntityPigZombie
- EntitySilverfish
- EntitySkeleton
- EntitySlime
- EntitySnowman
- EntitySpider
- EntityWitch
- EntityZombie
- EntityBat
- EntityChicken
- EntityCow
- EntityHorse
- EntityMooshroom
- EntityOcelot
- EntityPig
- EntitySheep
- EntitySquid
- EntityVillager
- EntityWolf