Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import crafttweaker.item.IItemStack;
- val map1 = {
- <minecraft:gravel> : "hello world"
- } as string[IItemStack];
- val map2 as string[IItemStack] = {};
- /*
- for a, b in map1 {
- map2[a] = b;
- }
- */
- for a, b in map1 {
- print("a: " ~ a);
- print("b: " ~ b);
- map2[a] = b;
- }
- /*
- map2[<minecraft:gravel>] = "hello world";
- print(map2[<minecraft:gravel>]);
- */
Add Comment
Please, Sign In to add comment