Minecraft Keybind/Macro Mod Scripts

Discussion in 'Off Topic' started by FevenKitsune, Aug 9, 2014.

Thread Status:
Not open for further replies.
  1. FevenKitsune

    FevenKitsune Active Member

    Since I've never really actually posted anything on the forums yet, I've decided to make a thread where you can show what macro scripts you have made using the Minecraft Keybind/Macro Mod [link]

    A macro is a script that runs when you press a certain key. An example being that you could have a gamemode toggle that changes your gamemode every time you press a button, this makes things easier as you don't need to type in chat /gamemode.

    My Scripts:
    Since I had just installed this mod not long before posting this, I haven’t had time to really set up many proper scripts. I have managed to get a rudimentary magic system though that works off of hunger. I use these spells on a private server, where I am op. I've managed to make 4 spells,

    Fireball (NUMPAD1):
    Code:
    <Dissiliunt Igni!>|/fireball|/effect ilovepats2000 HUNGER 3 1
    This is the least punishing spell, shoots a low damaging fireball and causes minimal energy loss.

    Lightning (NUMPAD2):
    Code:
    <Fulgur Virga!>|/smite|/effect ilovepats2000 HUNGER 3 2
    This spell is not much more punishing than Fireball. This sends a medium damaging lightning strike with little energy loss.

    Shield (NUMPAD3):
    Code:
    <Scutum!>|//hsphere glass 3|/effect ilovepats2000 HUNGER 3 5|$${wait(3)}$$|//undo
    This spell is quite punishing on energy use. This creates a small shield encompassing anything within 3 meters. The spell lasts for 3 seconds.

    Heal (NUMPAD0):
    Code:
    $${&player = $$u}$$|<Sana!>|$${echo(/effect %&player% REGENERATION 5 2)}$$|/effect ilovepats2000 HUNGER 3 20
    This spell is incredibly punishing on energy use. Brings up a dialogue with a list of all the online players. I can select one and heal them for a fair amount of health. This also takes up half of the energy, making this spell only usable after resting and eating.

    EDIT:
    Extinguish (NUMPAD4):
    Code:
    <Extinguere!>|/extinguish 5|/effect ilovepats2000 HUNGER 3 2
    As punishing as the Lightning spell, this spell puts out any fire within 5 blocks.

    EDIT2:
    Decoy (NUMPAD5):
    Code:
    <Redintegrentur!>|/npc create ilovepats2000|/npc vulnerable|/effect ilovepats2000 HUNGER 3 10|$${wait(5)}$$|/npc remove
    A very punishing spell, however, not as punishing as Heal. Creates a fake clone of me, of which can attract hostile mobs and allow me to kill them while distracted. The only problem with this spell is that if a mob is already chasing me, the NPC created will not distract them. Will probably be more useful against players.

    EDIT3:
    Extended Shield (NUMPAD6):
    Code:
    $${#count = $$?}$$|<Scutum diu!>|$${echo(//hsphere glass 3)}$$|$${echo(/effect ilovepats2000 HUNGER %#count% 5)}$$|$${wait(%#count%)}$$|//undo
    Does the same thing as Shield but prompts for the time to maintain the spell. This is good for if mobs are starting to swarm as the Shield spell can be maintained for about 40 seconds on a full hunger bar, allowing for whoever else may be protected to prepare themselves, or write their wills.

    Post the scripts you make bellow, and try to give a brief description of what it does.
     
    Last edited: Aug 9, 2014
    Quicksteve and JeremyC lick this.
  2. JeremyC

    JeremyC Well-Known Member Retired Staff

    english please

    sorry, i just dont understand this, im a dumb person when it comes to this stuff
     
    Last edited by a moderator: Aug 9, 2014
  3. FevenKitsune

    FevenKitsune Active Member

    Macro - a single instruction that expands automatically into a set of instructions to perform a particular task.
    Mod - make modifications to; modify.
    Script - an automated series of instructions carried out in a specific order.

    So a Macro Script is a single instruction, which in this case, is a single keypress, and makes it do a set of instructions. Lets take an example script I made.
    Extended Shield (NUMPAD6):
    Code:
    $${#count = $$?}$$|<Scutum diu!>|$${echo(//hsphere glass 3)}$$|$${echo(/effect ilovepats2000 HUNGER %#count% 5)}$$|$${wait(%#count%)}$$|//undo
    This code is connected to NUMPAD6, which is the number 6 on the number pad to the right of the keyboard, some laptops don't have this however.

    First, it prompts for user input,
    Code:
    $${#count = $$?}$$
    This means that number (#) "count" (name of variable) is equal to the input from the user, ($$?).

    ---------------------

    Next, it says the spell, this bit is not needed, but since it's vocal magic, I added it for realism.
    Code:
    <Scutum diu!>
    ---------------------

    Next, it creates a sphere of glass, with the radius of 3. To do this, it makes my character say the command.
    Code:
    $${echo(//hsphere glass 3)}$$
    Echo makes you say things, so "echo(Hello)" would make me say hello.

    ---------------------

    Next, it applys a hunger effect to me, to simulate the draining of energy.
    Code:
    $${echo(/effect ilovepats2000 HUNGER %#count% 5)}$$
    Here's the echo command once again, making me use /effect. The %#count% is taking the value of the input I entered at the start, and using that as how long the effect should be.

    ---------------------

    Next, the script waits the amount of time I specified in the first input.
    Code:
    $${wait(%#count%)}$$
    The "wait()" command is a function that tells the code to not continue on until the amount of seconds in the parenthesis has passed.

    ---------------------

    Finally, after waiting for the "wait()" function to finish, the final command executes.
    Code:
    //undo
    This makes my character say //undo, taking away the "shield" my "spell" created.
     
  4. Kenreao

    Kenreao Member Retired Staff

    I've said this before yet it still happens. Fortunately for myself, the following event will never occur. Beware of infinite loops. I'm looking at everyone's attempt to create a chat bot and these loops aren't pleasant. Good luck with the rest of your macros. In the end however, we are the Borg. Resistance is futile. You will be assimilated. Your technology is primordial.
     
    JeremyC, MacMeBenny and Quicksteve lick this.
  5. Quicksteve

    Quicksteve Supreme Overlord Penguin Staff Member Administrator Owner Moderator Event Winner Penguin

    That is an intresting way of using that mod :p
     
  6. FevenKitsune

    FevenKitsune Active Member

    Updated scripts:
    Decoy Spell:
    Code:
    $${
    IF(%TOTALXP% > 5)
    ECHO("/npc create ilovepats2000")
    ECHO("/npc vulnerable")
    ECHO("/xp -5")
    wait(10)
    ECHO("/npc remove")
    ELSE
    LOG("NOT ENOUGH ENERGY!")
    ENDIF
    }$$
    
    Extinguish Spell:
    Code:
    $${
    IF(%TOTALXP% > 5)
    ECHO("/extinguish 10")
    ECHO("/ext")
    ECHO("/xp -5")
    ELSE
    LOG("NOT ENOUGH ENERGY!")
    ENDIF
    }$$
    
    Fireball Spell:
    Code:
    $${
    IF(%TOTALXP% > 2)
    ECHO("/fireball)
    ECHO("/xp -2")
    ELSE
    LOG("NOT ENOUGH ENERGY!")
    ENDIF
    }$$
    
    Short Range Teleportation Spell:
    Code:
    $${
    IF(%TOTALXP% > 5)
    ECHO("/jump)
    ECHO("/xp -5")
    ELSE
    LOG("NOT ENOUGH ENERGY!")
    ENDIF
    }$$
    
    Healing Spell:
    Code:
    $${
    IF(%TOTALXP% > 50)
    ECHO("/effect $$u REGENERATION 5 2")
    ECHO("/xp -50")
    ELSE
    LOG("NOT ENOUGH ENERGY!")
    ENDIF
    }$$
    
    Short Shield Spell:
    Code:
    $${
    IF(%TOTALXP% > 5)
    ECHO("//hsphere 95:10 3)
    ECHO("/xp -5")
    wait(3)
    ECHO("//undo")
    ELSE
    LOG("NOT ENOUGH ENERGY!")
    ENDIF
    }$$
    
    This new system implements XP as an alternative energy form. The effect commands would spam other ops. Also removed the Latin, as it spammed chat in large battles.
     
    Last edited: Aug 11, 2014
  7. FevenKitsune

    FevenKitsune Active Member

    Heh, implementing a toggle shield resulted in an unfortunate infinite loop that drained all of my xp. I just went with a 3 second sustained shield instead, as I couldn't get a toggle shield working that drained energy the longer you sustained it.
     
    Last edited: Aug 11, 2014
  8. Dry

    Dry Well-Known Member Retired Staff

    ......
    [​IMG] Thats Mama Luigi to you mari0
     
  9. Quicksteve

    Quicksteve Supreme Overlord Penguin Staff Member Administrator Owner Moderator Event Winner Penguin

    how is this related o_O
     
  10. RazerH

    RazerH Moderator Penguin Retired Staff

    Very, very, carefully.
     
  11. FevenKitsune

    FevenKitsune Active Member

    Litterally biggest necropost yet.
     
    NapkinDabber, Dry and Miner lick this.
  12. RazerH

    RazerH Moderator Penguin Retired Staff

    Nobody has seemed to answer Leo's question, so why not answer it very rhetorically.
     
    NapkinDabber licks this.
  13. Miner

    Miner Bye y'all Penguin Retired Staff

    It's not a rhetorical question? Very very closely doesn't even properly answer the question.
     
    NapkinDabber licks this.
  14. Quicksteve

    Quicksteve Supreme Overlord Penguin Staff Member Administrator Owner Moderator Event Winner Penguin

    That's true, also locking thread to prevent further spam.
     
    NapkinDabber licks this.
Thread Status:
Not open for further replies.

Share This Page