All users will need to merge their Minecraft Forum account with a new or existing Twitch account starting October 23rd. You can merge your accounts by clicking here. Have questions? Learn more here.
Dismiss
  • 0

    posted a message on Function from a command block question

    Thanks for the suggestions.


    I played around with your ideas and couldn't hash out the code to get it to work in a mcfunction. I don't think it's possible yet, because the commands currently don't seem to be tailored around external function files.


    But it looks like 1.13 will make that possible, here's the projected command copied from Dinnerbone's github:


    execute store result <name: entity> <objective: string> -> execute


    Yep, store the result of the 'execute' into a scoreboard variable. Boom shakalaka baybee, problem solved. That previous sentence is poorly worded and probably shouldn't be spoken by anyone. Anyway, I'm gonna wait until 1.13 before I try this. Thanks for the suggestions!

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Function from a command block question

    Sort of a broad topic for a thread, sorry about that but I didn't know how to word the title. Anyway, I'm trying to figure out how to turn this situation into a function:


    Type this into the command block:

    execute @a ~ ~ ~ clone ~-1 ~-5 ~2 ~1 ~5 ~6 ~-1 ~-5 ~2 filtered force minecraft:diamond_ore


    Then, stand on top of that same command block and enter this into chat:

    /stats block ~ ~-1 ~ set AffectedBlocks @a dDiaNum


    So, when the command within the command block is executed, its numeric result is put into the score 'dDiaNum'.


    Here's my question... How do I word that to get it to work in a .mcfunction file?


    Thanks in advance for the help!

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Teleport Specific Entities question

    Cool, thanks for the info!

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Teleport Specific Entities question

    Sorry if this isn't the correct forum, I couldn't find any forum that best matched my question. Anyway, here's my command in question...


    /execute @e[type=llama,r=256] {Tame:1b} ~ ~ ~ tp @e[type=llama,r=1] -1916 72 -1059


    What I'm trying to do is teleport my tamed llamas to the coords -1916 72 -1059. The above code gives me an error when I use it; however, if I take out the {Tame:1b} then I'll teleport all llamas within that 256-block radius. I only want to teleport my tamed llamas. Can someone help me to tweak the above command to get it to work? Thanks in advance for the help!

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on New 1.11 Cartographer Question?

    Farmers, fletchers and shepherds all have the same cloak (brown with no apron), so I imagine cartographers will share librarian traits and also have a white tunic. But I don't think they're just going to drop into the towns of your Realms world that you've already explored, they'll only appear in new villages in unexplored areas (or they may appear when you breed villagers). Same for the Woodland Mansions, they'll most likely appear in wooded areas that you haven't yet explored.


    I guess the 20-dollar question is this: Will cartographer maps point to areas in pre-1.11 worlds where a Woodland Mansion would have spawned if that area hadn't already been explored? It would be a rip-off to get a treasure map that points to your old cow barn, lol.

    Posted in: Recent Updates and Snapshots
  • 0

    posted a message on Can't play MineCraft 1.10+

    Does Minecraft 1.10 crash when playing multiplayer AND singleplayer games, or does Minecraft 1.10 work fine in singleplayer but crashes in multiplayer?

    Posted in: Unmodified Minecraft Client Support
  • 0

    posted a message on Command Block Multiplayer help

    Heeey, that's pretty slick. Thanks for the info nigathan! I went the route of the 'tags' since I've never used those before, and they did just the trick. Thanks again for the help, and sorry about the late reply.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Command Block Multiplayer help

    Hello! I'm having multiplayer problems with this command block contraption. Here's the command block thing I'm trying to do...

    First, I made a scoreboard objective:

    /scoreboard objectives add dDiaMap


    Second, I made a command block with this command in it:

    testfor @a {Inventory:[{Slot:-106b,id:"minecraft:paper",tag:{display:{Name:"Diamond Map"}}}]}


    Third, I set the SuccessCount stat on the command block by standing on top of it and executing this:

    /stats block ~ ~-1 ~ set SuccessCount @a dDiaMap


    Finally, I put a button on the command block. That's the contraption; what it's supposed to do is set a player's 'dDiaMap' to something besides '0' if that player is holding the Diamond Map in his or her offhand.


    Here's what it does in singleplayer...


    I pressed the button while I'm holding the Diamond Map in my offhand, and 'dDiaMap' will equal '1'. I found this out by executing the following command, and the result was '1':

    /scoreboard players add <playername> dDiaMap 0


    If I took the Diamond Map out of my offhand and pressed the button, 'dDiaMap' was '0'. So it worked fine in singleplayer.


    Now, when I opened my world to LAN and let my wife join it, here's what the command block contraption does in multiplayer...


    Press the button while I'm holding the Diamond Map in my offhand, and 'dDiaMap' will equal '0'. If my wife held the Diamond Map in her offhand, 'dDiaMap' was '0' for her too. When my wife left the game, my command block contraption went back to working fine as if I was playing in 'singleplayer' again.


    Is there something that needs to be done differently to make this work in multiplayer? Thanks in advance for the help!


    EDIT: Here's the diamond map item I'm referring to, sorry I forgot to add that to my post:


    /give @p minecraft:paper 1 0 {display:{Name:"Diamond Map"}}

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Made a Railgun, want it to function

    The explosion and hugeExplosion effects are sort of tricky, because if you're too far away from the effect then you won't see it at all... If you cannot see the explosion effect unless you're close to the tip of the gun, then you might need to try something different or skip the explosion effect.

    Fireworks can be seen from really far away though, so that might be an option with your gun:

    summon FireworksRocketEntity x y z {Life:0,LifeTime:0,FireworksItem:{id:fireworks,tag:{Fireworks:{Flight:2,Explosions:[{Flicker:1,Type:1,Colors:[16711680,255]}]}}}}

    Like all my other examples, x y z is the location of the tip of your gun. You can tweak the above code to work with your gun (change the color and size of the explosion, change the effects, etc). I don't know much about fireworks entities, so you're on your own as far as customization goes (I found this code on the 'net and tweaked it to blow up instantly instead of firing a rocket into the air first).

    Posted in: Redstone Discussion and Mechanisms
  • 0

    posted a message on Made a Railgun, want it to function

    I put a bunch of torches where the 'FallingSand' entites landed, and the torches broke the falling sand entities into items (sort of like when you put a torch down before digging straight up, so the torch breaks the falling sand or gravel before it suffocates you)... There's probably a fancier way to do that though.

    Posted in: Redstone Discussion and Mechanisms
  • 0

    posted a message on Made a Railgun, want it to function

    That's easy with command blocks, if you're playing Minecraft 1.9 or better. If you can use command blocks on that server, you can shoot out a rod as long as you like with chained command blocks.


    First, if you want it to look like a cannon, spawn an explosion effect with an impulse command block at the tip of the barrel of your gun. Or, omit the explosion effect if you want it to look like a real rail gun.

    particle hugeexplosion x y z 0 0 0 0

    (where x y z is the coords for the tip of your gun barrel)



    Next, chain a command block to the impulse block that summons a FallingSand entity that looks like some other block. My example uses stone, but you can use whatever block you like.

    summon FallingSand x y z {Block:"minecraft:stone",Time:1,Motion:[0.0,2.0,2.0]}

    (where x y z is the coords for the tip of your gun, and Motion: is the dX,dY,dZ travel vector out of the barrel)


    Finally, chain several more command blocks that each summon a FallingSand entity, with the coordinates set where you're spawning another 'FallingSand' entity in front of or behind the one you already spawned.


    When you activate the first command block, the explosion effect will be spawned at the tip of the gun, and the chained command blocks will spawn a row of blocks (rail gun bullet) that fly out of the barrel of your gun.

    Posted in: Redstone Discussion and Mechanisms
  • 0

    posted a message on Adventure mode players can hurt mobs

    Or, make the mobs invincible... Here's what I do when I find a village in survival (I hate babysitting villagers):


    /entitydata @e[type=Villager] {Invulnerable:1b}


    I think you can tweak that command and use it on whatever mob you want to make invincible, but I haven't tried it on anything but villagers.

    Posted in: Discussion
  • 1

    posted a message on Looting and Fire Aspect, a Bad Thing?

    I think some of the people who don't like a sword with both looting and fire aspect are those who like to harvest meat to sell to a butcher villager... They don't buy cooked meat. But if you're harvesting meat to keep for yourself, then looting and fire aspect are great.


    And, it took me almost ten minutes to write this reply because of the stupid ads and banners that this site chooses to display... I ended up having to write my reply in Notepad and then copy/paste it to the forum. Freakin' annoying.

    Posted in: Survival Mode
  • 0

    posted a message on VoxelMap [1.12.1/1.11.2/1.10/1.9.4/1.8.9/1.7.10/1.6.4] - a minimap and worldmap

    Ah OK. So I needed to change the extension of the mod from .zip to .litemod... Clear as mud. Maybe need to change the download's file extension .litemod? Anyway it works now, pretty cool stuff!

    Posted in: Minecraft Mods
  • 0

    posted a message on VoxelMap [1.12.1/1.11.2/1.10/1.9.4/1.8.9/1.7.10/1.6.4] - a minimap and worldmap

    This doesn't work for me on 1.10.2...


    I downloaded "LiteLoader 1.10.2" and "VoxelMap for 1.10.2". I installed LiteLoader and ran Minecraft, and LiteLoader appeared to be running normally. I exited Minecraft, then put "mod_voxelMap_1.6.15_for_1.10.2.zip" into my 'mods' folder in .minecraft. I then ran Minecraft, but there's no mods listed in the LiteLoader list, and no minimap in Minecraft... Is there something else I need to do to get the VoxelMap to load?


    Thanks in advance for the info!

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