Figured it out :) And case-sensitivity bites!
If(HIT="ENTITY")
SLOT(1)
ENDIF
Also, $${Echo(%HITID%)}$$ will tell you the hitid of the item you are looking at.
Thread Tools
Thread Tools
Page 3 of 9
-
I will need to do a complete overhaul of the toolswitch macro soon...-
Like x 1 - List
-
-
@314
Code:$${ DO; IF(@pmctoolswitch) IF(HITID = "grass") SLOT(2) ENDIF IF(HITID = "dirt") SLOT(2) ENDIF IF(HITID = "sand") SLOT(2) ENDIF IF(HITID = "gravel") SLOT(2) ENDIF IF(HITID = "clay") SLOT(2) ENDIF IF(HITID = "stone") SLOT(1) ENDIF IF(HITID = "cobblestone") SLOT(1) ENDIF IF(HITID = "iron_ore") SLOT(1) ENDIF IF(HITID = "gold_ore") SLOT(1) ENDIF IF(HITID = "coal_ore") SLOT(9) ENDIF IF(HITID = "lapis_ore") SLOT(9) ENDIF IF(HITID = "diamond_ore") SLOT(9) ENDIF IF(HITID = "redstone_ore") SLOT(9) ENDIF IF(HITID = "lit_redstone_ore") SLOT(9) ENDIF IF(HITID = "emerald_ore") SLOT(9) ENDIF IF(HITID = "planks") SLOT(3) ENDIF IF(HITID = "log") SLOT(3) ENDIF IF(HITID = "fence") SLOT(3) ENDIF IF(HITID = "log2") SLOT(3) ENDIF IF(HIT = "ENTITY") SLOT(4) ENDIF ENDIF LOOP(); }$$
idk if this is what you wanted but here xD -
@zr2002, that's exactly what I was looking for, and finally figured it out last night. Planks wasn't working for me because case-sensitivity :(. Thanks for looking into this and posting, however, as it will aid others for sure.
Also, need to add a IF(HITID = "log2") in there. I forget which tree that is :). -
-
Friendly x 1 - List
-
-
What is your problem? I was attempting to figure it out until I sorta got my self kicked for spamming since I ended the "on chat" sentence with | so I did try to mess further yet.
The question is how do I do. Key bind so that I can do the /sell all /smelt all etc. commands or any other with a single key stroke
Thank you
Oh I'm on a Mac not sure if that makes a difference or if liteloder is similar across both Mac and pc
<Pre-made tag to alert @314 of the report> -
The solution to your problem is
Code:$${ ECHO("/sell all") WAIT(1000ms) ECHO("/smeltall") WAIT(1000ms) Other code you want to have executed. }$$
-
Before I continue working on my macros, I definitely need to clean up PMC_Commands.txt. Also, I am considering using Github for easy version control instead of the forum, but I don't know about that yet.
._.-
Like x 1 - List
-
-
Correction got to work but below is some suggestions thanks for the great macros
Edit #2" when i got to mine and come up to stone it does not change to slot it stays at slot 2 the shovel
another error i get is even if the .tool is disabled it always switches to slot 3 for logs
and 2nd to answer your question theres a few smaller items you could add
ITems in each slot incase someone cant tell
1) silk pic
2) silk/reg shovel
3) axe
4)Msword
9) fort pic
IF(HITID = "mycelium")
SLOT(2)
ENDIF
IF(HITID = "dirt:1")
SLOT(2)
ENDIF
IF(HITID = "pumpkin")
SLOT(3)
ENDIF
IF(HITID = "cocoa")
SLOT(3)
ENDIF
IF(HITID = "melon_block")
SLOT(4)
ENDIF
IF(HITID = "granite")
SLOT(1)
ENDIF
IF(HITID = "diorite")
SLOT(1)
ENDIF
IF(HITID = "andesite")
SLOT(1)
ENDIF
(dirt:1 is coarse dirt)
you could honestly name every block but these are a tad more practical then adding everything -
I plan to work on a major cleanup of PMC very soon... -
What happens when a 314 is unable to connect to ECC?
This.
https://github.com/ECC314/PMC/archive/master.zip
I cleaned up the main file and decreased it from ~250 to 41 lines. Many other files added. Some things fixed. Merged a few modules into one statistics module and expanded it by a lot. An awful lot.
Currently broken:
.stats <parameter> causes an "Unknown command" message, but it still works. I will be working on this.
WARNING: If you plan to update PMC because you already have an existing copy, you will need to remove event bindings and redo them. I will try to update the installation instructions as soon as possible.-
Like x 1 - List
-
-
@314 Is there a legal way to move item(x) from your inventory to one of your bar slots? For example, in a building project, moving a stack of stone from your inventory to your slot(9) would be nice (only if legal on the server).
-
Page 3 of 9