Guest User

test

a guest
Sep 15th, 2019
102
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package de.cryptonicdev.cryptonic.commands.list;
  2.  
  3. import de.cryptonicdev.cryptonic.commands.Command;
  4. import de.cryptonicdev.cryptonic.main.Cryptonic;
  5. import net.minecraft.init.Blocks;
  6. import net.minecraft.item.ItemStack;
  7. import net.minecraft.nbt.JsonToNBT;
  8.  
  9. public class OPChestCmd extends Command {
  10.  
  11. private static String[] commandHelp = { "Gibt dir eine OP-Chest!", "by rickykinoki" };
  12.  
  13. public OPChestCmd() {
  14. super("OpChest", commandHelp);
  15. }
  16.  
  17. @Override
  18. public void onCommand(String input, String[] args) throws Exception {
  19. // setblock ~ ~1 ~ minecraft:chest 0 replace {Items:[{Slot:0,Count:1,id:276,tag:{ench:[{id:16,lvl:255},{id:17,lvl:255},{id:18,lvl:255},{id:20,lvl:255},{id:21,lvl:100},{id:34,lvl:255}],display:{Name:"Excaliber",Lore:["This brings us to number 278","of the 1,000 provisions you","must observe. I hate carrots.","Never even think about putting","them in my food, you get it?"]}}},{Slot:1,Count:1,id:278,tag:{ench:[{id:32,lvl:255},{id:34,lvl:255},{id:35,lvl:100}],display:{Name:"Unbreaking Diamond Pickaxe of Fortune",Lore:"Fortune favours the brave"}}},{Slot:2,Count:1,id:278,tag:{ench:[{id:32,lvl:255},{id:33,lvl:1},{id:34,lvl:255}],display:{Name:"Unbreaking Diamond Pickaxe of the Silk Touch"}}},{Slot:3,Count:1,id:277,tag:{ench:[{id:32,lvl:255},{id:34,lvl:255},{id:35,lvl:100}],display:{Name:"Unbreaking Diamond Shovel of Fortune"}}},{Slot:4,Count:1,id:277,tag:{ench:[{id:32,lvl:255},{id:33,lvl:1},{id:34,lvl:255}],display:{Name:"Unbreaking Diamond Shovel of the Silk Touch"}}},{Slot:5,Count:1,id:279,tag:{ench:[{id:32,lvl:255},{id:34,lvl:255}],display:{Name:"Unbreaking Diamond Axe"}}},{Slot:6,Count:1,id:293,tag:{ench:[{id:34,lvl:255}],display:{Name:"Unbreaking Diamond Hoe"}}},{Slot:7,Count:1,id:359,tag:{ench:[{id:32,lvl:255},{id:34,lvl:255}],display:{Name:"Unbreaking Shears"}}},{Slot:8,Count:1,id:310,tag:{ench:[{id:0,lvl:255},{id:5,lvl:255},{id:6,lvl:255},{id:7,lvl:255},{id:34,lvl:255}],display:{Name:"Spiked Diamond Helmet of the Water"}}},{Slot:9,Count:1,id:311,tag:{ench:[{id:0,lvl:255},{id:7,lvl:255},{id:34,lvl:255}],display:{Name:"Spiked Diamond Chestplate"}}},{Slot:10,Count:1,id:312,tag:{ench:[{id:0,lvl:255},{id:7,lvl:255},{id:34,lvl:255}],display:{Name:"Spiked Diamond Leggings"}}},{Slot:11,Count:1,id:313,tag:{ench:[{id:0,lvl:255},{id:2,lvl:255},{id:7,lvl:255},{id:34,lvl:255}],display:{Name:"Spiked Diamond Boots of Feather Falling"}}},{Slot:12,Count:1,id:261,tag:{ench:[{id:34,lvl:255},{id:48,lvl:255},{id:49,lvl:255},{id:50,lvl:255},{id:51,lvl:1}],display:{Name:"Infinite Bow of the Flame"}}},{Slot:12,Count:1,id:346,tag:{ench:[{id:34,lvl:255},{id:61,lvl:255},{id:62,lvl:255}],display:{Name:"Unbreaking Fishing Rod of Luring"}}}]}
  20.  
  21. if (isInCreativeMode()) {
  22.  
  23. ItemStack itm = new ItemStack(Blocks.chest);
  24. itm.setTagCompound(JsonToNBT
  25. .getTagFromJson("{BlockEntityTag:{Items:[{Slot:0,Count:1,id:276,tag:{ench:[{id:16,lvl:255},"
  26. + "{id:17,lvl:255},{id:18,lvl:255},{id:20,lvl:255},{id:21,lvl:100},{id:34,lvl:255}]"
  27. + ",display:{Name:\"Excaliber\",Lore:[\"This brings us to number 278\",\"of the 1,"
  28. + "000 provisions you\",\"must observe. I hate carrots.\",\"Never even think about put"
  29. + "ting\",\"them in my food, you get it?\"]}}},{Slot:1,Count:1,id:278,tag:{ench:[{id:"
  30. + "32,lvl:255},{id:34,lvl:255},{id:35,lvl:100}],display:{Name:\"Unbreaking Diamond P"
  31. + "ickaxe of Fortune\",Lore:\"Fortune favours the brave\"}}},{Slot:2,Count:1,id:278,ta"
  32. + "g:{ench:[{id:32,lvl:255},{id:33,lvl:1},{id:34,lvl:255}],display:{Name:\"Unbreaki"
  33. + "ng Diamond Pickaxe of the Silk Touch\"}}},{Slot:3,Count:1,id:277,tag:{ench:[{id:"
  34. + "32,lvl:255},{id:34,lvl:255},{id:35,lvl:100}],display:{Name:\"Unbreaking Diamon"
  35. + "d Shovel of Fortune\"}}},{Slot:4,Count:1,id:277,tag:{ench:[{id:32,lvl:255},{id:"
  36. + "33,lvl:1},{id:34,lvl:255}],display:{Name:\"Unbreaking Diamond Shovel of the Sil"
  37. + "k Touch\"}}},{Slot:5,Count:1,id:279,tag:{ench:[{id:32,lvl:255},{id:34,lvl:255}]"
  38. + ",display:{Name:\"Unbreaking Diamond Axe\"}}},{Slot:6,Count:1,id:293,tag:{ench:["
  39. + "{id:34,lvl:255}],display:{Name:\"Unbreaking Diamond Hoe\"}}},{Slot:7,Count:1,id:"
  40. + "359,tag:{ench:[{id:32,lvl:255},{id:34,lvl:255}],display:{Name:\"Unbreaking Shear"
  41. + "s\"}}},{Slot:8,Count:1,id:310,tag:{ench:[{id:0,lvl:255},{id:5,lvl:255},{id:6,lvl:"
  42. + "255},{id:7,lvl:255},{id:34,lvl:255}],display:{Name:\"Spiked Diamond Helmet of the"
  43. + " Water\"}}},{Slot:9,Count:1,id:311,tag:{ench:[{id:0,lvl:255},{id:7,lvl:255},{id:3"
  44. + "4,lvl:255}],display:{Name:\"Spiked Diamond Chestplate\"}}},{Slot:10,Count:1,id:312"
  45. + ",tag:{ench:[{id:0,lvl:255},{id:7,lvl:255},{id:34,lvl:255}],display:{Name:\"Spiked "
  46. + "Diamond Leggings\"}}},{Slot:11,Count:1,id:313,tag:{ench:[{id:0,lvl:255},{id:2,lvl:"
  47. + "255},{id:7,lvl:255},{id:34,lvl:255}],display:{Name:\"Spiked Diamond Boots of Feath"
  48. + "er Falling\"}}},{Slot:12,Count:1,id:261,tag:{ench:[{id:34,lvl:255},{id:48,lvl:255}"
  49. + ",{id:49,lvl:255},{id:50,lvl:255},{id:51,lvl:1}],display:{Name:\"Infinite Bow of the"
  50. + " Flame\"}}},{Slot:12,Count:1,id:346,tag:{ench:[{id:34,lvl:255},{id:61,lvl:255},{id:6"
  51. + "2,lvl:255}],display:{Name:\"Unbreaking Fishing Rod of Luring\"}}}]}}"));
  52.  
  53. Cryptonic.INSTANCE.giveItem(itm);
  54.  
  55. return;
  56. }
  57.  
  58. getChat().throwSyntax(this);
  59.  
  60. }
  61.  
  62. }
RAW Paste Data