• 0

    posted a message on Command block doesn't recognize coordinates

    Thanks for responding! Turns out there needs to be a space between @a and the coordinates to look like this for it to recognize as a command:


    /gamemode 2 @a [x=1,y=50,z=1,m=0,r=4]

    /gamemode 0 @a [x=1,y=50,z=1,m=2,rm=5]


    At least it's reading and executing the command at all, but it still doesn't recognize the parameters, which is causing it to flicker between the two gamemodes. Settings were put to repeat, unconditional, always active.


    Is there any particular reason why m has to equal 0 for the first one? I've dug around a bit, and can't find any explanation of what m even represents...



    edit: It seems that sometimes after I've edited or looked at the command for a block it will sometimes become unrecognized as a command.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Command block doesn't recognize coordinates

    Basically, I'm trying to section off a portion of the map within a certain radius from being survival mode, like a town area specifically being adventure mode. These example commands didn't work:


    /gamemode 2 @a[m=0,r=4]

    /gamemode 0 @a[m=2,rm=5]


    and


    /gamemode 2 @a[x=1,y=50,z=1,m=2,r=4]

    /gamemode 0 @a[x=1,y=50,z=1,m=2,rm=5]



    I was able to use the simple commands that change modes using redstone, but I can't seem to get them to work without it.

    (This works with a button):


    /gamemode 2 @p

    /gamemode 0 @p


    What exactly am I missing here? I'm using 1.10.2, so is the information outdated?

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Custom NPCs
    Quote from daottoad»

    the only way you could stop the player from destroying blocks is in 1.10 have a scripted block run getnearestenitites and have it set a variable that would run in a player script to cancel the clicking event


    So I wouldn't be able to change the gamemode within a certain radius, and then have it change back outside of that area?
    (Thanks for replying!)
    Posted in: Minecraft Mods
  • 0

    posted a message on Custom NPCs

    Excuse me, I was wondering if anyone would know about how to use scripts to have activate within a certain distance of a player.

    Basically, whenever a player gets nearby the specified radius, a scripted block will run that prevents the player from destroying blocks within that radius (like a town), and a message runs saying "You have entered town."


    But there doesn't seem to be a hook that is applicable. Would I have to have this set up as a quest to use the location block and then have that set up to the scripted block, or is there an easier way?


    Admittedly, I have very little knowledge on this subject.

    Posted in: Minecraft Mods
  • 0

    posted a message on Adventure Mode Switch?

    Since y only accounts for the height of the block, doesn't it mean that the area covered is actually more like a disk, rather than a sphere? If I were to set a command block to cover a certain area on say y=64, but the terrain is a hill, wouldn't the command block become obsolete?

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Command Block is missing from inventory

    Oh. Thanks a lot! XD

    Posted in: Java Edition Support
  • 0

    posted a message on Command Block is missing from inventory

    When I search through the creative mode inventory, the command block doesn't show up at all. Not sure if I saw it before I installed about 20 mods, but now it's definitely missing. Defaulted back to vanilla Minecraft, and it's still gone. Uninstalled, reinstalled--still missing.

    Posted in: Java Edition Support
  • To post a comment, please .