Skip to content

Instantly share code, notes, and snippets.

@jredfox
Last active August 26, 2018 23:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jredfox/6cedebaefce88aab2f1d80704b2d71ae to your computer and use it in GitHub Desktop.
Save jredfox/6cedebaefce88aab2f1d80704b2d71ae to your computer and use it in GitHub Desktop.
<!--this is a charged creeper monster spawner defintion-->
<spawner>
<id>minecraft:creeper</id>
<unlocalizedName>silkspawners.chargedcreeper.name</unlocalizedName>
<color>dark_aqua</color>
<nbt_logic_0>{powered:1}</nbt_logic_0>
<permisionLevel>0</permisionLevel><!--no plugins are needed this allows per entity permsion level this determines whether or not the block can break at all-->
<harvestLevel>1</harvestLevel><!--this is virtual harvest level which will determine if the spawner simply breaks as normal or is harvestable note the block harvest level has to be >= to the actual harvest level-->
<!--this is for enchantments for denial per entity-->
<enchantments>
<ench>
<id>silk_touch</id>
<lvl>1</lvl>
</ench>
<exactEnchantments>false</exactEnchantments>
<enchantments>
<!--this is for silkspawners addon is liquid spawner for liquid spawners-->
<isLiquidSpawner>false</isLiquidSpawner><!--api note: this is additional data like this that will determine the defintion for isSpawner() in the api based on silkspawners only events and defintions-->
<blastResistence>10000</blastResistence><!--actual block property for vanilla spawners-->
<dropsEggs>false</dropsEggs><!--does this entry contain drops-->
<dropsBars>false</dropsBars>
</spawner>
<!--populate tabs and fill in the actual nbt for the spawner-->
<CreativeTabs>
<tabEntry>
<!--allows you to override the block-->
<blockId>minecraft:mob_spawner</blockId>
<id>creeper</id>
<nbt>{}</nbt>
<!--if it supports multi index spawners this will be applied-->
<spawnpotentials>
<entry>
<id>wither_skeleton</id>
<weight>1</weight>
</entry>
</spawnpotentials>
</tabEntry>
</CreativeTabs>
<blacklist>
<enabled>true</enabled>
<entity>
<id>rabbit</id>
<nbt_logic_0>{rabbitType:99}<nbt_logic_0>
</entity>
</blacklist>
<whitelist>
<enabled>false</enabled>
<entity>
</entity>
</whitelist>
<blocks>
<block>
<id>minecraft:mob_spawner</id>
</block>
</blocks>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment