This macro sends you a message when you reach 1 bar of hunger! (set this macro to the event onHungerChange as opposed to a key so it will run properly!) Link
Anyone know how to use Log() in onPlayerJoined to print the joined players IP? I currently just have it echoing /seen (since i'm on a bukkit server with essentials) but i would really like to get a running log of players and their IPs while i'm on. This would help me a lot since i'm a moderator on the server and sometimes have to log dive for an IP.
Anyone know how to use Log() in onPlayerJoined to print the joined players IP? I currently just have it echoing /seen (since i'm on a bukkit server with essentials) but i would really like to get a running log of players and their IPs while i'm on. This would help me a lot since i'm a moderator on the server and sometimes have to log dive for an IP.
I don't believe the Macro/Keybind mod can read player ips, however, if there is an ip plugin on the server, your can also assign the ip grabbing command (most likely /ip) to onPlayerJoined and log that.
Hi, i have recently started playing with more advanced macros. as an admin on a server im finding things id like to do but simply dont know how. i love your Log chat script and i have my onChat event as
so if the word 'word' shows in chat it pops up a log. i can change that to echo and change swearing to a command (/kick 'player) but can i get it to detect who said the word and kick them?
What you'll want is some sort of chat reader, which ignores part of the chat and returns only the username. The more advanced the chat is, such as titles, this may not work as well, how does the chat on your server work? If it is Bukkit I would probably recommend getting a plugin for that instead
I've made a few simple, but very helpful (for me at least) scripts.
This one I use for strip mining. As I'm mining, I just press 'R' and it turns my camera to the right, places a torch, and goes back to my pick, and returns my camera where it was. I only use Diamond Picks, so that's what I have it set to switch to, but you can change the item ID to any other type. This is such a fast torch placement though, that I don't even have to take my finger off the left mouse button.
Just look at an empty tilled farmland, with the seed, carrot or potato, and bonemeal in your inventory, and type in however many bonemeal you have. It uses a little less bonemeal than what you enter due to lag, but it uses most of it, and goes about as fast as the game will allow.
This one I use on my Enderman xp farm, but it can be used for any sort of xp farm. Just type in the level you want to be, and it will auto attack until you reach that level.
Auto Train:
do;
key(attack);
wait(100ms);
until(LEVEL>=$$?);
-------------------
I hope someone is able to benefit from these, or even help make them more efficient if possible.
This is a little thing I whipped up this afternoon to go with your automining/autotraining/autowhatever macros. It stops your auto script when the tool in use reaches the specified durability. I use it to stop the autotraining script I pinched off of Defining_Kr33d so I can go and repair my sword on the anvil before continuing. I have it set to 50 but you can change it. I put all the editable bits in bold.
Quote from code »
$${
if(%DURABILITY% = 50); log(&3This sword's a bit rusty.);
endif;
if(%DURABILITY% = 50); STOP(Button ID);
endif;
}$$
Couple of notes:
-For some reason, this code doesn't work with just one if statement, probably a bug.
-You can find out the button ID by going into said buttons customisation window. It should have it's name just above the text entry field. For example for the up key it'd have <UP>. Enter the ID without the < >
-If you're using the new onscreen buttons, the buttons will be given the ID <BUTTON ###>. Enter just the 3 digit number not the 'button' bit.
-I recommend you hold this in a text file so it's easier to maintain.
Hi there.
Any possibilities of making a complete auto X by X mining/clearing script for use on servers?
Like if I want to create a big 100x100 underground room all I have to do is run the script -> afk -> and win.
Of course with a chance of burning up alive in lava. (But I have fly on the server I'm gonna use such a script for)
It's possible, but it'd be very lengthy. Off the top of my head it'd have to contain at least a couple of for loops and query checks.
Hey, great help and all, only one issue.
I have the chat logger set up perfectly, but all of a sudden it dosent work, here is what happens.
I have the chat logger script in a text file in the correct location and everything.
I have the file activated in the onChat event.
This is the script:
Hey, great help and all, only one issue.
I have the chat logger set up perfectly, but all of a sudden it dosent work, here is what happens.
I have the chat logger script in a text file in the correct location and everything.
I have the file activated in the onChat event.
This is the script:
Scripts for the Macro/Keybind Mod
How to install a script
Stuff I Made:
Information Dump
Link
Link to script without delays
Link
Check out what crazy things you can achieve!
Things by other people:
Spam Script
Texture Pack Switcher
Chat Logger, Sign Placer, Timer
Quick Torch, Auto Plant-Harvester, Auto Train
I will be posting other scripts and update this page with user made scripts as well!
TEXTUREPACK($$[TexturePack]);
log(&eChanging texturepack to %TEXTUREPACK% ...);
}$$
It allows you to change your texturepack. Just type the name of the Zip without .zip
Both scripts added! Nice work!
Chat Logger (Only 9.0 and up!)
It allows you to log the chat.
The Log will be saved at .minecraft/mods/macros/logs/log.txt
Only works with the "onChat Event"
Sign
It allows you to place a sign!
Timer
An easy Timer script!
Made by Mart3323/Theiago
Added. I had some trouble adding the timer script though.
FOV does not zoom, use Optifine or a similar mod for that. blargh
This one I use for strip mining. As I'm mining, I just press 'R' and it turns my camera to the right, places a torch, and goes back to my pick, and returns my camera where it was. I only use Diamond Picks, so that's what I have it set to switch to, but you can change the item ID to any other type. This is such a fast torch placement though, that I don't even have to take my finger off the left mouse button.
Quick Torch:
look(+45,2);
pick(50);
wait(0.1ms);
key(use);
wait(1ms);
pick(278);
look(-45,2);
-------------------
Just look at an empty tilled farmland, with the seed, carrot or potato, and bonemeal in your inventory, and type in however many bonemeal you have. It uses a little less bonemeal than what you enter due to lag, but it uses most of it, and goes about as fast as the game will allow.
Auto Plant-Bonemeal-Harvest:
do($$?);
key(attack);
pick(295);
pick(391);
pick(392);
wait(75ms);
key(use);
wait(10ms);
pick(351:15);
wait(10ms);
key(use);
wait(75ms);
loop;
-------------------
This one I use on my Enderman xp farm, but it can be used for any sort of xp farm. Just type in the level you want to be, and it will auto attack until you reach that level.
Auto Train:
do;
key(attack);
wait(100ms);
until(LEVEL>=$$?);
-------------------
I hope someone is able to benefit from these, or even help make them more efficient if possible.
Couple of notes:
-For some reason, this code doesn't work with just one if statement, probably a bug.
-You can find out the button ID by going into said buttons customisation window. It should have it's name just above the text entry field. For example for the up key it'd have <UP>. Enter the ID without the < >
-If you're using the new onscreen buttons, the buttons will be given the ID <BUTTON ###>. Enter just the 3 digit number not the 'button' bit.
-I recommend you hold this in a text file so it's easier to maintain.
It's possible, but it'd be very lengthy. Off the top of my head it'd have to contain at least a couple of for loops and query checks.
I have the chat logger set up perfectly, but all of a sudden it dosent work, here is what happens.
I have the chat logger script in a text file in the correct location and everything.
I have the file activated in the onChat event.
This is the script:
When i open the file it shows the date and the time but the chat is just shown as CHAT
here is an example of what is shown
If anyone can help that would be amazing thanks
/\Jamie
EcoCityCraft Lead Developer
Contact: [email protected]
Change the code to this: