Advertisement
TNT_Block

Better flyadminevil

Apr 15th, 2019
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.18 KB | None | 0 0
  1. package de.TNT_Block_Unkown.modules;
  2.  
  3. import net.minecraft.init.Blocks;
  4. import net.minecraft.item.ItemStack;
  5. import net.minecraft.nbt.NBTTagCompound;
  6. import net.minecraft.nbt.NBTTagList;
  7.  
  8. public class Flyadminevil {
  9. public static ItemStack generateAdminEvilSpawner(Integer radius) {
  10. ItemStack itm = new ItemStack(Blocks.mob_spawner,1,0);
  11.  
  12. NBTTagCompound base = new NBTTagCompound();
  13. base.setInteger("HideFlags", 63);
  14.  
  15. NBTTagCompound blockEntityTag = new NBTTagCompound();
  16. blockEntityTag.setInteger("SpawnCount", radius);
  17. blockEntityTag.setInteger("SpawnRange", radius);
  18. blockEntityTag.setInteger("RequiredPlayerRange", 5000);
  19. blockEntityTag.setInteger("MaxNearbyEntities", 5000);
  20. blockEntityTag.setInteger("Delay", 20);
  21. blockEntityTag.setInteger("MinSpawnDelay", 6);
  22. blockEntityTag.setInteger("MaxSpawnDelay", 6);
  23. blockEntityTag.setString("EntityId", "ArmorStand");
  24.  
  25. NBTTagCompound spawnData = new NBTTagCompound();
  26. spawnData.setInteger("Invulnerable", 1);
  27. spawnData.setInteger("NoBasePlate", 1);
  28. spawnData.setInteger("ShowArms", 1);
  29.  
  30. NBTTagList equipment = new NBTTagList();
  31.  
  32. NBTTagCompound handItem = new NBTTagCompound();
  33. handItem.setString("id", "command_block");
  34. handItem.setInteger("Count", 1);
  35.  
  36. NBTTagCompound colordisplaytag = new NBTTagCompound();
  37. colordisplaytag.setInteger("color", 0);
  38.  
  39. NBTTagCompound colorTag = new NBTTagCompound();
  40. colorTag.setTag("display", colordisplaytag);
  41.  
  42. NBTTagCompound feet = new NBTTagCompound();
  43. feet.setString("id", "leather_boots");
  44. feet.setInteger("Count", 1);
  45. feet.setTag("tag", colorTag);
  46.  
  47. NBTTagCompound legg = new NBTTagCompound();
  48. legg.setString("id", "leather_leggings");
  49. legg.setInteger("Count", 1);
  50. legg.setTag("tag", colorTag);
  51.  
  52. NBTTagCompound chest = new NBTTagCompound();
  53. chest.setString("id", "leather_chestplate");
  54. chest.setInteger("Count", 1);
  55. chest.setTag("tag", colorTag);
  56.  
  57. NBTTagCompound skull = new NBTTagCompound();
  58. skull.setString("SkullOwner", "AdminEvil");
  59.  
  60. NBTTagCompound head = new NBTTagCompound();
  61. head.setString("id", "skull");
  62. head.setInteger("Count", 1);
  63. head.setInteger("Damage", 3);
  64. head.setTag("tag", skull);
  65.  
  66. spawnData.setString("CustomName", "§4[Owner] §eAdminEvil");
  67. spawnData.setInteger("CustomNameVisible", 1);
  68.  
  69. NBTTagCompound flying = new NBTTagCompound();
  70. flying.setInteger("Id", 14);
  71. flying.setInteger("Amplifier", 0);
  72. flying.setInteger("Duration", 2147483647);
  73. flying.setByte("ShowParticles", (byte) 0);
  74.  
  75. NBTTagList activeEffects = new NBTTagList();
  76. activeEffects.appendTag(flying);
  77.  
  78. NBTTagCompound riding = new NBTTagCompound();
  79. riding.setString("id", "Bat");
  80. riding.setInteger("Silent", 1);
  81. riding.setTag("ActiveEffects", activeEffects);
  82.  
  83. equipment.appendTag(handItem);
  84. equipment.appendTag(feet);
  85. equipment.appendTag(legg);
  86. equipment.appendTag(chest);
  87. equipment.appendTag(head);
  88.  
  89. spawnData.setTag("Equipment", equipment);
  90. spawnData.setTag("Riding", riding);
  91. blockEntityTag.setTag("SpawnData", spawnData);
  92. base.setTag("BlockEntityTag", blockEntityTag);
  93.  
  94. itm.setTagCompound(base);
  95. return itm;
  96. }
  97. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement