Home
Kai Jiang edited this page May 21, 2016
·
26 revisions
woodlogs
block: <modID> ":" <blockName> [ ":" <damageValue> ]
position: <range> "," <range> "," <range>
material: <blockMaterialName>
mob: <mobName> | <mobFullName> | <mobClassName>
mobtype: ("monster" | "animal" | "ambient" | "water")
dim: (<dimensionID> | <dimensionName>)
chance: <probability>
biome: (<biomeID> | <biomeName>)
biometype: <biometypeName>
-
<modID> := <string>
# Case sensitive -
<blockName> := <string>
# Case sensitive -
<damageValue> := <range>
# The damage of ItemBlock, not the block metadata/state. That means you can use "minecraft:log:1" to specify spruce logs, but you can not use "minecraft:log:5" to specify horizontal spruce logs <range> := "*" | <integerNumber> | <integerNumber> "-" <integerNumber>
-
<blockMaterialName> := <string>
# Case sensitive -
<mobName> := <string>
# Case insensitive & remove space character -
<mobFullName> := <modID> "." <mobName>
# The full name of vanilla's mobs are simply their names, no prefix. -
<mobClassName> := <string>
# The name of Java class file. Example: EntityCreeper -
<mobType> := "monster" | "animal" | "ambient" | "water"
# Case insensitive <dimensionID> := <integerNumber>
-
<dimensionName> := <string>
# Case insensitive & remove space character. Example: To match "The End" dimension, you can use "TheEnd", "theend" or "tHeENd" <probability> := <floatNumber>
<biomeID> := <integerNumber>
-
<biomeName> := <string>
# Case insensitive & remove space character -
<biometypeName> : = <string>
# Case insensitive
not := "~" | "!"
and := "&" | "&&"
or := "|" | "||"
parentheses := "(" | ")"
If the first character of any rule is "-", the rule will be treated as a whitelist.
For example, if you put "-block:minecraft:log:0" after "woodlogs", then mobs can spawn on oak logs.
The rules are applied line by line, if there is conflict between blacklist and whitelist, the latter rule will override the former rule.
If the first character of any rule is "@", the rule will be treated as a spawning entry.
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.)