Guest User

Untitled

a guest
Feb 23rd, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. import crafttweaker.item.IItemStack;
  2.  
  3. val map1 = {
  4. <minecraft:gravel> : "hello world"
  5. } as string[IItemStack];
  6.  
  7. val map2 as string[IItemStack] = {};
  8.  
  9. /*
  10. for a, b in map1 {
  11. map2[a] = b;
  12. }
  13. */
  14.  
  15. for a, b in map1 {
  16. print("a: " ~ a);
  17. print("b: " ~ b);
  18. map2[a] = b;
  19. }
  20.  
  21. /*
  22. map2[<minecraft:gravel>] = "hello world";
  23. print(map2[<minecraft:gravel>]);
  24. */
Add Comment
Please, Sign In to add comment