Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package de.TNT_Block_Unkown.modules;
- import net.minecraft.init.Blocks;
- import net.minecraft.item.ItemStack;
- import net.minecraft.nbt.NBTTagCompound;
- import net.minecraft.nbt.NBTTagList;
- public class Flyadminevil {
- public static ItemStack generateAdminEvilSpawner(Integer radius) {
- ItemStack itm = new ItemStack(Blocks.mob_spawner,1,0);
- NBTTagCompound base = new NBTTagCompound();
- base.setInteger("HideFlags", 63);
- NBTTagCompound blockEntityTag = new NBTTagCompound();
- blockEntityTag.setInteger("SpawnCount", radius);
- blockEntityTag.setInteger("SpawnRange", radius);
- blockEntityTag.setInteger("RequiredPlayerRange", 5000);
- blockEntityTag.setInteger("MaxNearbyEntities", 5000);
- blockEntityTag.setInteger("Delay", 20);
- blockEntityTag.setInteger("MinSpawnDelay", 6);
- blockEntityTag.setInteger("MaxSpawnDelay", 6);
- blockEntityTag.setString("EntityId", "ArmorStand");
- NBTTagCompound spawnData = new NBTTagCompound();
- spawnData.setInteger("Invulnerable", 1);
- spawnData.setInteger("NoBasePlate", 1);
- spawnData.setInteger("ShowArms", 1);
- NBTTagList equipment = new NBTTagList();
- NBTTagCompound handItem = new NBTTagCompound();
- handItem.setString("id", "command_block");
- handItem.setInteger("Count", 1);
- NBTTagCompound colordisplaytag = new NBTTagCompound();
- colordisplaytag.setInteger("color", 0);
- NBTTagCompound colorTag = new NBTTagCompound();
- colorTag.setTag("display", colordisplaytag);
- NBTTagCompound feet = new NBTTagCompound();
- feet.setString("id", "leather_boots");
- feet.setInteger("Count", 1);
- feet.setTag("tag", colorTag);
- NBTTagCompound legg = new NBTTagCompound();
- legg.setString("id", "leather_leggings");
- legg.setInteger("Count", 1);
- legg.setTag("tag", colorTag);
- NBTTagCompound chest = new NBTTagCompound();
- chest.setString("id", "leather_chestplate");
- chest.setInteger("Count", 1);
- chest.setTag("tag", colorTag);
- NBTTagCompound skull = new NBTTagCompound();
- skull.setString("SkullOwner", "AdminEvil");
- NBTTagCompound head = new NBTTagCompound();
- head.setString("id", "skull");
- head.setInteger("Count", 1);
- head.setInteger("Damage", 3);
- head.setTag("tag", skull);
- spawnData.setString("CustomName", "§4[Owner] §eAdminEvil");
- spawnData.setInteger("CustomNameVisible", 1);
- NBTTagCompound flying = new NBTTagCompound();
- flying.setInteger("Id", 14);
- flying.setInteger("Amplifier", 0);
- flying.setInteger("Duration", 2147483647);
- flying.setByte("ShowParticles", (byte) 0);
- NBTTagList activeEffects = new NBTTagList();
- activeEffects.appendTag(flying);
- NBTTagCompound riding = new NBTTagCompound();
- riding.setString("id", "Bat");
- riding.setInteger("Silent", 1);
- riding.setTag("ActiveEffects", activeEffects);
- equipment.appendTag(handItem);
- equipment.appendTag(feet);
- equipment.appendTag(legg);
- equipment.appendTag(chest);
- equipment.appendTag(head);
- spawnData.setTag("Equipment", equipment);
- spawnData.setTag("Riding", riding);
- blockEntityTag.setTag("SpawnData", spawnData);
- base.setTag("BlockEntityTag", blockEntityTag);
- itm.setTagCompound(base);
- return itm;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement