Home
Kai Jiang edited this page Feb 24, 2016
·
26 revisions
woodlogs
block:<modid>:<blockName>[:<damageValue>]
material:<materialName>
mob:<mobClassName>
mobtype:<mobType>
dim:<dimensionID>
chance:<probalitiy>
<modid> := <string>
<blockName> := <string>
<damageValue> := "*" | <integer> "-" <integer> | <integer>
<materialName> := <string>
<mobClassName> := <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 the floor is made out of wooden blocks, e.g. planks, wooden slabs, bookcase, etc.)
-
<damageValue>
is the damage of ItemBlock, not the block metadata stored in chunks. So, you can not use "minecraft:log:4" to specify a horizontal oak log. -
<mobClassName>
is the SimpleClassName of mobs in Java.
- 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