On the server I play on, there is a command called /fix. Obviously, this fixes the item in your hand. How would I set this up to automatically fix an item after it is damaged to a certain point?
Go to the events tab and assign onItemDurabilityChange to the following:
This would execute the /fix command when your iron hoe falls to 3 or below durability. You can change the item id to whatever you like such as diamond_pickaxe or fishing_rod to use other tools, or remove the item check entirely if you want it to work for any item.
The Meaning of Life, the Universe, and Everything.
Join Date:
9/14/2014
Posts:
43
Member Details
Hi
is the question
appointed in the script data acquisition $$?
When running the script button - all good
but when I switch off my script is re-query the variable
how to remove it?
Using a 1.11.2 client with macro mod version 0.14.2, the event onItemDurabilityChange doesn't seem to be triggered. I use very few macros, but I really rely on the following macro to work (set to the onItemDurabilityChange event)
$${IF(DURABILITY < 10);KEY(inventory);ENDIF}$$
It have worked like a charm in previous clients/macro mod
What could be wrong?
it's broken, there's a pending update which addresses this amongst other things.
I've found a bug too. The LOOKS command (maybe LOOK as well) sets the player's YAW 180 degrees off. For example, if you do LOOKS(90,0) your YAW is set to 270, not 90, and if you do LOOKS(%YAW%,0) your character turns around instead of doing nothing.
Also, I'm not sure if this is a bug, but HITDATA cannot tell the age of crops. It is zero no matter which stage of growth you are looking at.
EDIT: I figured these out. If you're from the future and wanna know, you can use the CARDINALYAW and HIT_AGE variables.
I've always been using %CHATCLEAN% for IFMATCHES, but have had 0 success trying to use %CHAT%, could anyone explain please? Not sure if it's because the text I'm testing for it colored or something.
Does anyone knows a way to check a player's permissions or if he/she is an op or not ?
I would like to display or not buttons (by setting their "visible" property in my "onJoin" script) depending on if the player can use those buttons or not..
Thanks.
The client doesn't know this information but if you know the server then you could maybe send a command which requires op without the correct parameters, then if you get a help message you know the player is op and if you get a "must be op" message you know they're not?
I've always been using %CHATCLEAN% for IFMATCHES, but have had 0 success trying to use %CHAT%, could anyone explain please? Not sure if it's because the text I'm testing for it colored or something.
CHAT includes the colour codes, so if you use it with IFMATCHES you have to include the colour codes in your regex as well.
Hey Mumfrey, I've been searching the forums and googling this for hours now, and I finally came here to ask out of exhaustion. I'm trying to create a label on the minecraft ingame screen, and have that label display several lines of text. For example, if I want to create a label which display a list of online players, it would look something like this:
Steve
Alex
Joan
Kate
In this example, I would prefer the label to dynamically change whenever players leave or join. So if Alex left the game, the list would become:
Steve
Joan
Kate
Much appreciated if you could help me out, or point me in the right direction.
Hey Mumfrey, I've been searching the forums and googling this for hours now, and I finally came here to ask out of exhaustion. I'm trying to create a label on the minecraft ingame screen, and have that label display several lines of text. For example, if I want to create a label which display a list of online players, it would look something like this:
Steve
Alex
Joan
Kate
In this example, I would prefer the label to dynamically change whenever players leave or join. So if Alex left the game, the list would become:
Steve
Joan
Kate
Much appreciated if you could help me out, or point me in the right direction.
I see. I assume it uses those weird S shaped symbols instead of '&'.
Is it possible to save phrases in chat with the colour it came with?
The s-shaped symbols are the "section symbol" (§) which has hex code 0xA7. This means you can use it in your regex by specifying it as a raw hex character (\xa7) or alternatively just use a literal. You can actually use ampersand (&) also if you want, macros will automatically convert ampersands followed by a valid colour code char into § internally. Pro-tip: If you're editing a script in the built-in text editor, you can press Ctrl+K to insert a § symbol.
To "export" the chat including the colour codes the simplest way is to log it to a file. You can then open the file and look at the raw text:
LOGTO("chatlog.txt","%CHAT%");
Alternatively, if you just want to view it ingame you can simply use REPLACE to switch out § for something else:
Did you include the two dollar signs and bracket at the beginning and end of the code?
Go to the events tab and assign onItemDurabilityChange to the following:
$${IF((ITEM = "iron_hoe") && (DURABILITY <= 3));ECHO("/fix");ENDIF;}$$
This would execute the /fix command when your iron hoe falls to 3 or below durability. You can change the item id to whatever you like such as diamond_pickaxe or fishing_rod to use other tools, or remove the item check entirely if you want it to work for any item.
Yup. In the first tab (should I use the second tab) I put $${KEYDOWN(UP)} (not sure if it was {, (, or [)
I gave myself an internet...NOT ASHAMED!
You missed the $$ off the end. Macros looks for scripts between $${ and }$$
Hi
is the question
appointed in the script data acquisition $$?
When running the script button - all good
but when I switch off my script is re-query the variable
how to remove it?
it's broken, there's a pending update which addresses this amongst other things.
I've found a bug too. The LOOKS command (maybe LOOK as well) sets the player's YAW 180 degrees off. For example, if you do LOOKS(90,0) your YAW is set to 270, not 90, and if you do LOOKS(%YAW%,0) your character turns around instead of doing nothing.
Also, I'm not sure if this is a bug, but HITDATA cannot tell the age of crops. It is zero no matter which stage of growth you are looking at.
EDIT: I figured these out. If you're from the future and wanna know, you can use the CARDINALYAW and HIT_AGE variables.
I've always been using %CHATCLEAN% for IFMATCHES, but have had 0 success trying to use %CHAT%, could anyone explain please? Not sure if it's because the text I'm testing for it colored or something.
Some CloudClient dude. Also some CloudPack dude.
The client doesn't know this information but if you know the server then you could maybe send a command which requires op without the correct parameters, then if you get a help message you know the player is op and if you get a "must be op" message you know they're not?
CHAT includes the colour codes, so if you use it with IFMATCHES you have to include the colour codes in your regex as well.
Ok so I added a $$ to the end and it no longer prints to chat, instead it just does nothing.
I gave myself an internet...NOT ASHAMED!
"UP" is not a stateful action.., it's not really an action at all
...do you mean "forward"?
'Cause tomorrow spring is here
Download links are broken...
How so? The servers are up and the links work for me.
so $${KEYDOWN(forward)}$$?
I gave myself an internet...NOT ASHAMED!
Hey Mumfrey, I've been searching the forums and googling this for hours now, and I finally came here to ask out of exhaustion. I'm trying to create a label on the minecraft ingame screen, and have that label display several lines of text. For example, if I want to create a label which display a list of online players, it would look something like this:
Steve
Alex
Joan
Kate
In this example, I would prefer the label to dynamically change whenever players leave or join. So if Alex left the game, the list would become:
Steve
Joan
Kate
Much appreciated if you could help me out, or point me in the right direction.
Kind regards, Fudrocket
Hey.
How do I create a label on the screen with a script?
You can't. You can only alter properties of existing ones.
I see. I assume it uses those weird S shaped symbols instead of '&'.
Is it possible to save phrases in chat with the colour it came with?
Some CloudClient dude. Also some CloudPack dude.
The s-shaped symbols are the "section symbol" (§) which has hex code 0xA7. This means you can use it in your regex by specifying it as a raw hex character (\xa7) or alternatively just use a literal. You can actually use ampersand (&) also if you want, macros will automatically convert ampersands followed by a valid colour code char into § internally. Pro-tip: If you're editing a script in the built-in text editor, you can press Ctrl+K to insert a § symbol.
To "export" the chat including the colour codes the simplest way is to log it to a file. You can then open the file and look at the raw text:
LOGTO("chatlog.txt","%CHAT%");
Alternatively, if you just want to view it ingame you can simply use REPLACE to switch out § for something else:
&chat = %CHAT%;
REPLACE(&chat,"§","$");
LOG("%&chat%");