• 0

    posted a message on Macro / Keybind Mod
    Question:

    Is there a way to tell, in script, if a chest is a single or double size? If I have a script to cycle through items in inventory and left-click on each to store it into a chest, the item slot numbers of inventory vary depending on if storing into a single or double chest.
    Posted in: Minecraft Mods
  • 0

    posted a message on Macro / Keybind Mod
    Quote from toma678

    There is a command named 'CRAFTANDWAIT' i believe, i havn't used it myself but i know it exists, test it out , or scroll back and there is some context of its usage :)


    Thank you for the reply, I had seen that, but I'm puzzled not by how to craft, but why looping isn't working in my second script.

    I'll perhaps try to work with the craftandwait later today, but was really hoping someone could explain why the looped script does nothing.
    Posted in: Minecraft Mods
  • 0

    posted a message on Macro / Keybind Mod
    I admit I am stumped. I am just getting started with this mod, so am not certain if I am stumbling around something that isn't working right in this pre-release, or if I am not writing the code correctly.

    Looking back a few pages, there were some examples for an auto-crafting type of script. I've been playing with that auto crafting script and can't get any of it to do anything on my setup, so I started over, looked at those examples and below are my results.

    If I code hard and explicitly write everything out, line by line, the script will work. If I try to do the same in a nice compact looping format, nothing happens. Well, the key(use) gets sent, but then nothing.

    These example assumes player inventory is full of supply needed, player aims at a workbench and presses the keybind to call the script.

    The working script, yields 4 stacks of product in my inventory screen:



    While lengthy, this script works as I desire.
    $${
    key(use);
      Wait(100ms)
      SlotClick(10);
      Wait(100ms)
      SlotClick(1);
      Wait(100ms)
      SlotClick(11);
      Wait(100ms)
      SlotClick(2);
      Wait(100ms)
      SlotClick(12);
      Wait(100ms)
      SlotClick(3);
      Wait(100ms)
      SlotClick(13);
      Wait(100ms)
      SlotClick(4);
      Wait(100ms)
      SlotClick(14);
      Wait(100ms)
      SlotClick(5);
      Wait(100ms)
      SlotClick(15);
      Wait(100ms)
      SlotClick(6);
      Wait(100ms)
      SlotClick(16);
      Wait(100ms)
      SlotClick(7);
      Wait(100ms)
      SlotClick(17);
      Wait(100ms)
      SlotClick(8);
      Wait(100ms)
      SlotClick(18);
      Wait(100ms)
      SlotClick(9);
      Wait(100ms)
     Slotclick(0,l,true); //picks up items
     Wait(100ms)
      SlotClick(19);
      Wait(100ms)
      SlotClick(1);
      Wait(100ms)
      SlotClick(20);
      Wait(100ms)
      SlotClick(2);
      Wait(100ms)
      SlotClick(21);
      Wait(100ms)
      SlotClick(3);
      Wait(100ms)
      SlotClick(22);
      Wait(100ms)
      SlotClick(4);
      Wait(100ms)
      SlotClick(23);
      Wait(100ms)
      SlotClick(5);
      Wait(100ms)
      SlotClick(24);
      Wait(100ms)
      SlotClick(6);
      Wait(100ms)
      SlotClick(25);
      Wait(100ms)
      SlotClick(7);
      Wait(100ms)
      SlotClick(26);
      Wait(100ms)
      SlotClick(8);
      Wait(100ms)
      SlotClick(27);
      Wait(100ms)
      SlotClick(9);
      Wait(100ms)
     Slotclick(0,l,true); //picks up items
      Wait(100ms)
      SlotClick(28);
      Wait(100ms)
      SlotClick(1);
      Wait(100ms)
      SlotClick(29);
      Wait(100ms)
      SlotClick(2);
      Wait(100ms)
      SlotClick(30);
      Wait(100ms)
      SlotClick(3);
      Wait(100ms)
      SlotClick(31);
      Wait(100ms)
      SlotClick(4);
      Wait(100ms)
      SlotClick(32);
      Wait(100ms)
      SlotClick(5);
      Wait(100ms)
      SlotClick(33);
      Wait(100ms)
      SlotClick(6);
      Wait(100ms)
      SlotClick(34);
      Wait(100ms)
      SlotClick(7);
      Wait(100ms)
      SlotClick(35);
      Wait(100ms)
      SlotClick(8);
      Wait(100ms)
      SlotClick(36);
      Wait(100ms)
      SlotClick(9);
      Wait(100ms)
     Slotclick(0,l,true); //picks up items
      Wait(100ms)
      SlotClick(37);
      Wait(100ms)
      SlotClick(1);
      Wait(100ms)
      SlotClick(38);
      Wait(100ms)
      SlotClick(2);
      Wait(100ms)
      SlotClick(39);
      Wait(100ms)
      SlotClick(3);
      Wait(100ms)
      SlotClick(40);
      Wait(100ms)
      SlotClick(4);
      Wait(100ms)
      SlotClick(41);
      Wait(100ms)
      SlotClick(5);
      Wait(100ms)
      SlotClick(42);
      Wait(100ms)
      SlotClick(6);
      Wait(100ms)
      SlotClick(43);
      Wait(100ms)
      SlotClick(7);
      Wait(100ms)
      SlotClick(44);
      Wait(100ms)
      SlotClick(8);
      Wait(100ms)
      SlotClick(45);
      Wait(100ms)
      SlotClick(9);
      Wait(100ms)
     Slotclick(0,l,true); //picks up items
    }$$



    The nicer, more compact looping versions does nothing:


    Nice and compact, easier to follow, this does nothing but the key(use)..
    $${
    key(use)
    Do(4)
     ForEach(%#slot%,1,9)
      GetSlot(331,%#var%,10)
      SlotClick(%#var%)
      Wait(100ms)
      SlotClick(%#slot%)
      Wait(100ms)
     Next;
     Slotclick(0,l,true)
    Loop;
    }$$


    Am I missing something or ???
    Posted in: Minecraft Mods
  • 0

    posted a message on Macro / Keybind mod scripts!
    Any news if this mod will get updated to work in 1.5.0? I get black screen when trying ..
    Posted in: Mods Discussion
  • To post a comment, please .