Kind of a noob but for the player-join macro, how would I add a on-join sound? Just curious if I could make it the "Experience level up" sound. Thanks
Thanks everybody for your replies and suggestions, and sorry I haven't been on for almost a month D: School started and I've just been swamped with work To play that sound, this should work: Code: $${ PLAYSOUND(entity.player.levelup) }$$ And just replace the current PLAYSOUND line in the macro with that line. Also, if you're using built-in Minecraft sounds, there's no need to add any .ogg files to the folder I'll work on this To be completely honest, I'm not sure if it's possible, but I'll give it a try and let you know how it goes!
is it possible for you to make another chat macro that determines whether or not you are i party chat and displays it on your screen?
Finished! I just edited the macro I already had to detect whether party chat was on or off and display a macro accordingly... This is the edited code: Spoiler: Party chat code Code: $${ IFMATCHES(%CHATCLEAN%, "Now chatting in (.+)"); SET(chat); MATCH(%CHATCLEAN%, "Now chatting in (.+)\.",{@&channel}); ENDIF; IFMATCHES(%CHATCLEAN%, "You are already in (.+)"); SET(chat); MATCH(%CHATCLEAN%, "You are already in (.+)\.",{@&channel}); ENDIF; IFMATCHES(%CHATCLEAN%, "Party Chat only (On|Off)"); SET(chat); MATCH(%CHATCLEAN%, "Party Chat only (.+)",{&partychat}); IFMATCHES(%&partychat%, "On"); SET(&party, "On"); ENDIF; IFMATCHES(%&partychat%, "Off"); SET(&party, "Off"); ENDIF; ENDIF; //Sets the color for global. IFMATCHES(%@&channel%, "Global"); &color = "&f"; ENDIF; //Sets the color for local. IFMATCHES(%@&channel%, "Local"); &color = "&e"; ENDIF; //Sets the color for trade. IFMATCHES(%@&channel%, "Trade"); &color = "&7"; ENDIF; //Sets the color for auction. IFMATCHES(%@&channel%, "Auction"); &color = "&b"; ENDIF; //Sets the color for VIP. IFMATCHES(%@&channel%, "VIP"); &color = "&a"; ENDIF; //Sets the color for mining. IFMATCHES(%@&channel%, "Mining"); &color = "&e"; ENDIF; //Sets the color for nether. IFMATCHES(%&channel%, "Nether"); &color = "&d"; ENDIF; //Sets the color for end. IFMATCHES(%@&channel%, "End"); &color = "&d"; ENDIF; //Sets the color for sg. IFMATCHES(%@&channel%, "SG"); &color = "&5"; ENDIF; //Sets the color for party chat (depending on whether it is on or off.) IFMATCHES(%&party%, "On"); &partycolor = "&a"; ELSE; &partycolor = "&c"; ENDIF; IF(chat); SETLABEL(Party, "Party chat is currently %&partycolor%%&party%"); SETLABEL(Channel, "Currently chatting in %&color%%@&channel%"); ENDIF; }$$ And then you just have to make another label with this info: Control Name: Party Label Text: Leave it blank Binding: Leave it blank Foreground color: Whatever you want Background color: Whatever you want Text Align: Whatever you want Let me know if you have any questions, comments, concerns, etc.
Sorry it took forever, but here we are: Spoiler: Bank bal code You bind this code to the "onChat" event: Code: $${ IFMATCHES(%CHATCLEAN%, "\[Bank Balance\] (.+)"); MATCH(%CHATCLEAN%, "\[Bank Balance\] (.+)",{@&bankbal}); SETLABEL(Bank Balance, "Bank Balance: %@&bankbal%"); ENDIF; IFMATCHES(%CHATCLEAN%, "^(Deposit successful|Withdrawal completed)(.+)"); ECHO("/bank bal"); ENDIF; }$$ And you also have to create a label with the following info: Control Name: Bank Balance Label Text: Leave it blank Binding: Leave it blank Foreground color: Whatever you want Background color: Whatever you want Text align: Whatever you want At the moment, this is a fairly primitive macro... when I have some more time on my hands I'd like to try to add some logic to it so that instead of just doing the /bank bal command to update the label whenever you do a transaction, it can figure out the new balance through code. Anyway, yeah, this version is functional All you have to do is bind that code and then do /bank bal once to initialize the label, and then you should be all set! Let me know if you have any questions/comments/etc.
I can indeed! You'll have to use either /fly, /fly on, or /fly off to initialize the label, but after that, you should be all set. The code: Spoiler: fly display code This script needs to be bound to the "onSendChatMessage" event: Code: $${ IFMATCHES(%CHAT%, "^/fly on$"); SET(&fly, "On"); ENDIF; IFMATCHES(%CHAT%, "^/fly off$"); SET(&fly, "Off"); ENDIF; IFMATCHES(%CHAT%, "^/fly$"); IFMATCHES(%&fly%, "On); SET(&fly, "Off"); ELSE; IFMATCHES(%&fly%, "Off"); SET(&fly, "On"); ENDIF; ENDIF; ENDIF; IFMATCHES(%&fly%, "On"); SET(&flycolor, "&a"); ELSE SET(&flycolor, "&c"); ENDIF; SETLABEL(Fly, "Fly mode is current %&flycolor%%&fly%"); }$$ And you'll need to make a label with this info: Control name: Fly Label text: Leave it blank Binding: Leave it blank Foreground color: Whatever you want Background color: Whatever you want Text Align: Whatever you want As always, let me know if you have any questions/comments/suggestions
It looks like there may not be enough space for the label to display all of the text? You could try moving the label over a little and seeing if that helps. Also, until you do either /fly, /fly on, or /fly off, the label won't work properly, so make sure you do one of those commands and see if the label works correctly then. Let me know how it goes!
Very helpful for someone starting out with macros to get a good understanding of how they work and how to use them. +1
@maroiogog just curious, I think I've asked before but never got a solid answer, can you use a macromod script to do /kit water every 1 hour while you're afk or would this not be legit with ecocity?
Bump! I've been offline a very very long time (eight months I think?) but I'm back now! School is starting to wind down, as are most of the other things I do, so I have some more free time to play with. Over the next week or so I'll be working on going through all the mods I have on here and improving/updating them, as well as making sure no code is broken or tutorials are obsolete. Since I'll be more active, I'll be happy to make macros for people again, so if you want one I don't already have, feel free to let me know via post here or pm!