• 1

    posted a message on MoreCommands v6.0 (Adds 100+ Commands to the Chat Console, Multiplayer and Singleplayer compatible)

    thank you so much :) i mean it wasn't hard for me to just type it out when the game started .. but i usually forgot and i hate spiders they were the only thing i couldn't keep out of my well lit yard due to their climbing !


    I'm aware that lots of people might have trouble with the new syntax but if you know how it works it's actually very simple (just google for "json format" or so) but it's incredibly advantageous over a simple line-by-line syntax because it allows to structure information way better.
    The reason why I did this was because in the past people aksed me whether it was possible to e.g. execute different startup commands in different worlds or use different settings in different worlds. At the time this was not possible because all settings were global and exactly the same for every world, server, dimension, etc. altough it doesn't make sense sometimes (e.g. for waypoints). This is why I added the possibility to customize which settings should be used in which environment. This however requires a better structuring of how settings are saved (you can't put all of this in one line) and this is why I decided to use the json format which is actually very simple if you understand it once (Minecraft uses it all over the place). Now I had the issue that I had to manage macros, normal settings, startup commands in three different ways which is not optimal. So I made them part of the normal settings system and I can treat them exactly like normal settings and use all of the advantages which the new system provides. This means there aren't (potentially) dozens of macro files and two different startup files scattered around. It's all contained in a single file and a logical structure (and it's a text file which means it can easily be modified in contrast to the old way where settings were stored in nbt files).

    Posted in: Minecraft Mods
  • 1

    posted a message on MoreCommands v6.0 (Adds 100+ Commands to the Chat Console, Multiplayer and Singleplayer compatible)
    Quote from SnoopFrog007»

    This mod seems to break command blocks for me. I can't give myself an unbreakable item with crazy enchantments simply because the mod will not allow blocks to execute commands to the player. I've tried @p and minecraft:leather_chestplate, but it says invalid item (because of where @p is supposed to be), I've looked everywhere on the PDF, and I cannot find anything that would allow command blocks to function like this. I can't do this in chat either because it will say "The specified NBT data must be a compound tag." I also tried adding "/execute @p" in the beginning of it. The command block outputs the same compound tag message in the previous output box. I don't know if this is an error with the coding or the mod itself. Note that I got this from an online NBT generator, so I don't know if there might just be a problem with that.


    Here is the command (299 is a leather tunic):

    /give 299 1 0 {Unbreakable:1,display:{Name:"Elysian Jacket",Lore:["This jacket was crafted from the finest leather of the Elysian cattle"]},ench:[{id:0,lvl:32767},{id:7,lvl:2}]}


    I was always annoyed to specify a target selector for the "give" command so I altered it so that it always gives the item to the command sender. In the case of a command block, this is the command block itself which can't execute the "give" command. Also you can't add @p to the give command because as I said, I altered the syntax. Of course I didn't remove all of the functionality to give items to the player via command block, so what I did was simply to use the "execute" command which I found is a lot more logical if you want to execute commands for other command senders, e.g. the player. So what you actually have to use is:

    /execute @p /give 299 1 0 {Unbreakable:1,display:{Name:"Elysian Jacket",Lore:["This jacket was crafted from the finest leather of the Elysian cattle"]},ench:[{id:0,lvl:32767},{id:7,lvl:2}]}

    Basically you simply have to prefix the command with "/execute @p ".
    Also you could disable the alitered version of the "give" command via the disable.cfg file. If you do this, the vanilla versions will be used.
    Posted in: Minecraft Mods
  • 0

    posted a message on MoreCommands v6.0 (Adds 100+ Commands to the Chat Console, Multiplayer and Singleplayer compatible)
    Quote from Beater_rc»

    Hello, can you explain more on disabling commands? Do I just wrote whichever command I do not want in the disable.cfg file? It does not work (or maybe it does not disable commands available in vanilla MC?) I am trying to disable most commands except the teleport command.


    Well it's pretty straightforward. Just put all the commands you want to disable in the "disable.cfg" file, but only one command per line and without a "/". And yes, if you want to disable vanilla commands, this doesn't work using the "disable.cfg" file, it is only for MoreCommands commands (this is because the "disable.cfg" file doesn't actually disable commands but instead tells MoreCommands to not even load them, this does only work for my own commands but not for vanilla ones. This makes it possible to prevent vanilla commands to be replaced).

    There is however a way to do this: There's a command named "command" (yes, the name of the command is "command"). You can use it to disable and enable any commands while the game is running. Just use "/command disable <COMMAND>" to disable a command and "/command enable <COMMAND>" to re-enable it. You can do all of this automatically using startup commands or macros. See here and here for more on this.

    You can read more here and here.

    Posted in: Minecraft Mods
  • 0

    posted a message on MoreCommands v6.0 (Adds 100+ Commands to the Chat Console, Multiplayer and Singleplayer compatible)
    Quote from LoRaM100»

    You have two options:

    1. When you create a new world, allow cheats.

    2. On an already active world (without allowed cheats) once open, hit ESC, select "Open to LAN", change "Allow Cheats:OFF to :ON. Start LAN World (you may need to /cheats on) .

    HTH

    Lou


    Or just use the /cheats command. This does always work (wouldn't make sense if it did not ^^).
    Posted in: Minecraft Mods
  • 0

    posted a message on MoreCommands v6.0 (Adds 100+ Commands to the Chat Console, Multiplayer and Singleplayer compatible)
    Quote from Carl1nn»

    Hey man!


    Im using 1.10.2 in a forge Beyond server. But when I add morcommands on the server the chat gets disabled. When I run a command it says "<command complete>" but when I type a normal chat it just doesn't appear


    Do you know why that would be?


    cheers


    Can you post a screenshot? Also, do you have any other mods installed? If so, does it make a change to use only MoreCommands? If yes, try to figure out which mods cause a conflict and post it here. Also, post your log files, maybe there's someting interesting in them.
    Posted in: Minecraft Mods
  • 0

    posted a message on MoreCommands v6.0 (Adds 100+ Commands to the Chat Console, Multiplayer and Singleplayer compatible)
    Quote from SaturnCaine»

    I'm not actually running any Firefox-based browsers, I'm running Opera ('Cause even I don't take me seriously, although partly because my Firefox seems to be permanently corrupted by a trojan I accidentally picked up a few years ago but have since removed), so I don't have NoScript.
    However, somehow, I tried using Mediafire to download the exact same file again today, and it worked as it should, despite me not making any modifications. My guess is, Mediafire got hijacked or something. Again. I personally prefer to use ShareX as my primary file sharing program as its free, there's no ads, and I can upload stuff from my desktop, without needing to go to some website, but, as I'm constantly saying, 'to each his own'.

    Review, I personally like the mod, although I wish there were a way to disable that pesky /help problem. I just want to see all available commands condensed in one list, regardless of whether they're vanilla, modded, or plugins. I wish there were more 'fun' commands, as well, something like a '/goodies' command or something that lets you automatically spawn something like a Starter, Dungeon, Mineshaft, etc. chest. For example, a '/goodies starter' would spawn a chest where ever you look containing randomized materials you would get from the spawn chest feature, but any time you want. I realize this can be done already, with vanilla commands, no less, but I feel like a fun little command like that would simplify things a ton. Another interesting idea I like is a command that scrambles the contents of a chest, so they don't look so uniform when you open it. So like, something like '/scramble' while looking at a specific chest would scramble the contents inside, making it look instead like more of a naturally spawning chest rather than player-created. These are just ideas, though, and I know they're not the best. But I digress. My personal favorite command is the alias command, especially for servers, so I can do something like /alias gm gamemode, for example.



    Well, I already had the MediaFire account for other purposes and MediaFire is the most established file hoster here so I thought I'll go with that and now I'll stick to it because as I already said, I don't want to have the mod files scattered around on multiple file servers. Since it's working for you now, this issue should be solved.

    You're always free to suggest new commands, actually I'm glad that somebody makes suggestions because after ~100 commands I'm running out of ideas for new ones. Feel free to post a list of "goodies" for a /goodies command and I'll see what I can do. However, I'm not sure what you mean with "looking more naturally" for a /scramble command. This is the problem with computer programs: They need an exact definition and exact instructions what something means, in this case what "naturally" means (This "exact definition" problem is also a problem e.g. for pattern recognition but that's not the topic here).

    To the "help" problem:
    Unfortunately, as it is stated in the first post, it is simply not possible to have both client and server side commands in a single list because minecraft has two "command manager"s, one on the client and one on the server. When a command is about to be executed, first the client command manager looks whether this command exists client side and if it does, it is executed. If it doesn't exist on the client, then the command is sent to the server to execute it there. Now, the "help" command is a server side command. When you execute it, it can only list the command registered to the server side command manager, it doesn't have access to the client side commands. This is exactly the same if you use a client side help command, it has only access to the list of client side commands. There are three workarounds for this but each of them will have the effect that you won't get a list or help for client side commands:


    1. You can simply use an alias like "/alias h shelp" and then use "/h" instead of "/shelp".
    2. Disable /chelp, /shelp and /help (You can't simply disable /chelp and /shelp because /help tells you to use them) via the "disable.cfg" file. However this solution would then result in the vanilla "help" command being used so there's no description, example and video link for a command.
    3. The last way would be to disable all client side commands using "/clientcommands disable" but I don't recommend that since this would also disable the client side versions of "alias", "macro", etc. so the server side version would be used. This might not be what you want since then all settings created by such a command wouldn't be stored in the settings_client.json file but in a nbt file in the settinger_server directory. Basically all client side settings would then be turned into server side settings (I won't explain it in detail here, this is part of MoreCommands' settings system, more details can be found in the first post). Also, no client side only command would be usable anymore (e.g. the /bind command).

    Personally I would recommend you to use the first solution if you really want to have a single help command.

    Posted in: Minecraft Mods
  • 0

    posted a message on MoreCommands v6.0 (Adds 100+ Commands to the Chat Console, Multiplayer and Singleplayer compatible)
    Quote from SaturnCaine»

    I'm not actually running any Firefox-based browsers, I'm running Opera ('Cause even I don't take me seriously, although partly because my Firefox seems to be permanently corrupted by a trojan I accidentally picked up a few years ago but have since removed), so I don't have NoScript.
    However, somehow, I tried using Mediafire to download the exact same file again today, and it worked as it should, despite me not making any modifications. My guess is, Mediafire got hijacked or something. Again. I personally prefer to use ShareX as my primary file sharing program as its free, there's no ads, and I can upload stuff from my desktop, without needing to go to some website, but, as I'm constantly saying, 'to each his own'.

    Review, I personally like the mod, although I wish there were a way to disable that pesky /help problem. I just want to see all available commands condensed in one list, regardless of whether they're vanilla, modded, or plugins. I wish there were more 'fun' commands, as well, something like a '/goodies' command or something that lets you automatically spawn something like a Starter, Dungeon, Mineshaft, etc. chest. For example, a '/goodies starter' would spawn a chest where ever you look containing randomized materials you would get from the spawn chest feature, but any time you want. I realize this can be done already, with vanilla commands, no less, but I feel like a fun little command like that would simplify things a ton. Another interesting idea I like is a command that scrambles the contents of a chest, so they don't look so uniform when you open it. So like, something like '/scramble' while looking at a specific chest would scramble the contents inside, making it look instead like more of a naturally spawning chest rather than player-created. These are just ideas, though, and I know they're not the best. But I digress. My personal favorite command is the alias command, especially for servers, so I can do something like /alias gm gamemode, for example.


    Well, I already had the MediaFire account for other purposes and MediaFire is the most established file hoster here so I thought I'll go with that and now I'll stick to it because as I already said, I don't want to have the mod files scattered around on multiple file servers. Since it's working for you now, this issue should be solved.

    You're always free to suggest new commands, actually I'm glad that somebody makes suggestions because after ~100 commands I'm running out of ideas for new ones. Feel free to post a list of "goodies" for a /goodies command and I'll see what I can do. However, I'm not sure what you mean with "looking more naturally" for a /scramble command. This is the problem with computer programs: They need an exact definition and exact instructions what something means, in this case what "naturally" means (This "exact definition" problem is also a problem e.g. for pattern recognition but that's not the topic here).

    To the "help" problem:
    Unfortunately, as it is stated in the first post, it is simply not possible to have both client and server side commands in a single list because minecraft has two "command manager"s, one on the client and one on the server. When a command is about to be executed, first the client command manager looks whether this command exists client side and if it does, it is executed. If it doesn't exist on the client, then the command is sent to the server to execute it there. Now, the "help" command is a server side command. When you execute it, it can only list the command registered to the server side command manager, it doesn't have access to the client side commands. This is exactly the same if you use a client side help command, it has only access to the list of client side commands. There are three workarounds for this but each of them will have the effect that you won't get a list or help for client side commands:

    1. You can simply use an alias like "/alias h shelp" and then use "/h" instead of "/shelp".
    2. Disable /chelp, /shelp and /help (You can't simply disable /chelp and /shelp because /help tells you to use them) via the "disable.cfg" file. However this solution would then result in the vanilla "help" command being used so there's no description, example and video link for a command.
    3. The last way would be to disable all client side commands using "/clientcommands disable" but I don't recommend that since this would also disable the client side versions of "alias", "macro", etc. so the server side version would be used. This might not be what you want since then all settings created by such a command wouldn't be stored in the settings_client.json file but in a nbt file in the settinger_server directory. Basically all client side settings would then be turned into server side settings (I won't explain it in detail here, this is part of MoreCommands' settings system, more details can be found in the first post). Also, no client side only command would be usable anymore (e.g. the /bind command).
    Personally I would recommend you to use the first solution if you really want to have a single help command.
    Posted in: Minecraft Mods
  • 0

    posted a message on MoreCommands v6.0 (Adds 100+ Commands to the Chat Console, Multiplayer and Singleplayer compatible)
    Quote from soccerguy3»
    If you feel the need to keep older mods in their respective folders , a trick server owners do , is rename the extension .

    Example ; rename , MoreCommands-1.11.2-5.0.jar to MoreCommands-1.11.2-5.0.jar1 , I do this to test plugin.jars I compile . It allows for server testing , without deleting and uploading the old version again . Hope this helps

    This is probably the best way to do it and should work absolutely fine.

    Posted in: Minecraft Mods
  • 0

    posted a message on MoreCommands v6.0 (Adds 100+ Commands to the Chat Console, Multiplayer and Singleplayer compatible)
    Quote from SaturnCaine»

    Please add a second download link, because Mediafire has a bad habit of sometimes not downloading your file. To iterate, when I click the green download button, it opens a new tab which takes me to the same download page, turns my current one into an ad, and I'm never actually able to download the file.


    Sorry but I won't do that. I want to have a single place where all files are stored, I don't want to have them scattered around on multiple file hosters and I don't want to create new accounts all the time. Since nobody ever reported this issue to me it must have to do something with your browser configuration. Check that out, maybe it's NoScript or another plugin. Or, if nothing helps, you can use JDownloader.
    Posted in: Minecraft Mods
  • 0

    posted a message on MoreCommands v6.0 (Adds 100+ Commands to the Chat Console, Multiplayer and Singleplayer compatible)
    Quote from LoRaM100»

    Odd thing...
    I renamed your last mod MoreCommands-1.11.2-5.0old.jar and added the new MoreCommands to my ~/mods/version folder. How do you spell crash (no log).
    I renamed the new one MoreCommands-1.11.2-5.0new.jar and removed the old from my last download,,, again crash without a log...
    I drug the original to my desktop, removed the "new" from your last update and it works.
    Nothing to worry about I just found it odd.
    Lou

    You can't have the same mod (the version doesn't matter) twice in the mods folder. This is simply due to name conflicts (same mod id's, same class names, etc.). Also it's very likely to cause crashes or at least bugs (in the case of MoreCommands it causes a crash in a very early stage of mineraft's loading phase).

    Posted in: Minecraft Mods
  • 0

    posted a message on MoreCommands v6.0 (Adds 100+ Commands to the Chat Console, Multiplayer and Singleplayer compatible)
    Quote from Tron0001»

    Update: after monkeying with the macro, now it works but oddly. Execute once to set the variable; but it takes a SECOND execution to give the items.



    This is actually not a bug. You see, if MoreCommands is installed client side then a client side version of the /var command will be used. However, the command of which the result should be grabbed may be a server side command. The only way to achieve this is to send the server a message "Hey, please execute the command for me and send the result back to me". Now, networking is always a bit hard to deal with in terms of time. It may well be the case that the result from the server (singleplayer is just an internal server) is not received at the point when the second command (in your case /give) is executed. This is why the variable hasn't been set and you get an error (because it doesn't contain the expected number).

    Since the client-server communication is quick enough for allmost all cases I didn't think about macros which execute multiple commands without any delays. I see that the behaviour you described is obviously not the desired behaviour so I modified the macro command a little bit to expilcitly deal with "/var grab" in the way that it waits for the execution result to be received from the server. However this can lead to some delays between command executions in multiplayer (singleplayer shouldn't be noticable) depending on the network connection (You can specify a timeout in the "config.cfg" file with the "remoteCommandsTimeout" property).

    I uploaded updated versions which fix your issues, links are the same.

    Posted in: Minecraft Mods
  • 1

    posted a message on MoreCommands v6.0 (Adds 100+ Commands to the Chat Console, Multiplayer and Singleplayer compatible)
    Quote from rudolf323»

    "source of this error is vanilla code"

    I thought to use this mod I need to open single player as LAN (Open to LAN) ?


    Some other mods were not working if I didn't open single player to LAN, so I thought I should always open to LAN if I want forge mods to work.


    I'm not familiar with this new MC system, last time I played minecraft was from 2011 to 2013. I knew everything back then, but now everything is different, back in the day there was Single Player Commands mod which worked without LAN.


    "source of this error is vanilla code". This is not exactly what I intended to say. The error causing the crash occurred while code of a vanilla function was executed. However, this does not mean there's a bug in this particular piece of code. In fact there's not a single line of code in this function which is able to produce this particular type of error. That's why I said that there's something strange happening.

    And no, you don't need to open your singleplayer world to LAN, the only thing you have to do is turning on cheats in the world options or you can use the /cheats command which turns on cheats (However in this case, something like "You don't have the permission to use this command" should have been printed in the chat, but your screenshots say "Command not found" so this is only half the truth to solve your problems).

    Again, please try a completely new installation of minecraft and forge and try it with that.

    Posted in: Minecraft Mods
  • 0

    posted a message on MoreCommands v6.0 (Adds 100+ Commands to the Chat Console, Multiplayer and Singleplayer compatible)
    Quote from Tron0001»

    I downloaded and installed MoreCommands v.1.8 for MC 1.7.10; and now existing macros are unseen and I can't find the macros created by new version. Indeed a 'macros' folder isn't set up any more (formerly in the 'config' folder). HELLLP!

    Turns out I was using version 1.6 (for MC 1.7.10); macros were visible. Macros made by version 1.8 execute but can't be located on my system.


    Yeah, since 1.7 the way how macros (and other settings) are stored has changed. They are now stored in a file called settings_client.json, but in a different format, the json format. In case you don't know what that is, here's a brief description (A very detailed explanation about how settings are stored can be found here):

    The json format basically defines three different types of elements:
    Json Lists, Json Objects and Json Primitves.

    A Json Primitve is either a number, a string (enclosed by quotation marks) or true/false, e.g.
    - true/false
    - "I'm a string", "I'm another string", ...
    - 4, 3.7, ...

    A Json List (or Json Array) is a list of other json elements and is enclosed by "[" and "]", single elements are
    separated by a comma, e.g.:
    ["I'm a string", 4.5, ["A list in a list"], {"Key" : "Value"}, true]

    A Json Object is a mapping from a key (must be a string) to another Json Element (mapped with a colon ":") and is enclosed by "{" and "}",
    different mappings are separated by a comma, e.g.:
    {"Key": "Value", "Key2" : {"Nested Key" : ["A list"]}, "Key3" : ["Bla"], "Key4" : 4.5}

    Now the settings file must be a Json Object which contains mappings from the settings name (e.g. "macros")
    to either a single json object or a list of json objects (I will only show a single json object, for more details see the link):
    This object must contain a key named "value" which holds the actual value of the setting, in your case it looks like this:

    {
    ... some other settings ....,

    "macros" : {

    "server" : "singleplayer, //This line is optional and makes these macros only available in singleplayer,
    //other servers are possible too,
    //you can do this with "world" and "dimension" too
    "value" : {
    "macro1" : ["command 1", "command 2", ..., "last command"],
    "macro2" : ["bla", "bla", ..., "bla"],
    "macro3" : ["say hi", "fly", ..., "noclip"]
    }

    }

    ,... some other settings ...
    }

    The value of the macros must be a json object wich maps a macro name to a list of commands which are the actual macros.

    Hope this helps, if you want, you can post your macros and your settings_client.json file and I will convert the macros into the new file for you.

    Posted in: Minecraft Mods
  • 0

    posted a message on MoreCommands v6.0 (Adds 100+ Commands to the Chat Console, Multiplayer and Singleplayer compatible)
    Quote from Tron0001»

    Specifically I wanted to implement an "insta-mine" macro; I would probably use a command to count blocks of a certain ID over a specified x-y-z range. Result of that would then be employed to give player appropriate number of resources.

    And on side, I would replace "mined" blocks with blocks of stone etc. (but I already know how to do THIS)...


    Ok I made a little modification to MoreCommands and uploaded the updated version (same links). This modification makes the "nbt_test_block" command produce a result. This command is exactly what you are looking for, it counts the occurrences of a specific block and checks if it exceeds or falls below a specific amount (you can use zero as minimum amount). The syntax is the following:

    /nbt_test_block <TARGET> {BOUNDS}

    This doesn't say much. <TARGET> means a block target selector, which is a type of target selector specifically added by MoreCommands (works for MoreCommands commands only). It has the following syntax:

    @b[ARGS]

    where ARGS means some arguments to specify block properties. These arguments are:

    - The normal position arguments which are used for other target selectors as well (dx, dy, dz, r, x, y, z) (at least one required)
    - "id", this specifies the block id (required)
    - "meta", specifies the meta value of a block (optional)
    - "nbt", allows to specify nbt data for some blocks (e.g. for chests, this allows to check the inventory of a chest), must be in json format (optional)

    The {BOUNDS} parameter allows you to specify a lower and (optionally) an upper bound required for the test to succeed (otherwise "Test failed" will be printed into the chat). It has the following syntax:

    - use "=" directly followed by the number to match an exact value, e.g. "=0" to check for no occurrences
    - use ">" or ">=" directly followed by the number to specify a lower bound, e.g. ">=0"
    - use "<" or "<=" directly followed by the number to specify an upper bound, e.g. "<=100"

    This example shows you how to count the number of command blocks in a radius of 50 blocks:

    /nbt_test_block @b[id=command_block,r=50] >=0

    Note: This example only uses the lower bound ">=0" so the accepted number of block is not restricted.

    Now, for your purpose you can combine this command with the /var command. E.g. you can use the following example to count the number of command blocks in a radius of 50 blocks and store the result in a variable called "cmdBlockCount":

    /var grab cmdBlockCount nbt_test_block @b[id=command_block] >=0

    And then you could, e.g. use

    /give command_block %cmdBlockCount%

    to give yourself the corresponding amount of command blocks (well, command blocks don't make sense, but this is only an example)

    Be aware that you have to redownload MoreCommands to get the updated version which makes the "nbt_test_block" command returning a result (the old build doesn't do this so the chat message would be stored in the variable which is not what you want).

    Posted in: Minecraft Mods
  • 0

    posted a message on MoreCommands v6.0 (Adds 100+ Commands to the Chat Console, Multiplayer and Singleplayer compatible)
    Quote from rudolf323»

    I removed all mods one by one, the same problems still occur... But now some commands are working.



    Could you create a fresh minecraft forge installation in a new launcher profile (or a complete reinstallation of minecraft, of course you can backup your old stuff) and try that out? Because the errors reported in the crash logs are really strange (e.g. one crash log reports a "ConcurrentModificationException" which is really odd because the source of this error is vanilla code and actually the code itself does absolutely nothing which could cause this error. So I guess something might be wrong with your minecraft configuration or a specific world or something else, I can't really tell. The best way to test that is a complete reinstall (I would copy the .minecraft folder to another location, redownload minecraft and reinstall forge and test if it works with a clean installation. If it works, you know it can't be the mods, at least they are not solely responsible for your issues.))

    Posted in: Minecraft Mods
  • To post a comment, please or register a new account.