Command Blocks in 1.11?

Sometimes, we all need a little general help.

Post Permalink
by Pepijn » 4/20/2017

Just a warning, the latest snapshot doesn't allow spaces in unquoted strings anymore. It's still allowed in 1.11 but it may not work anymore in the upcoming 1.12 update. Looks like Bertiecrafter is a future teller.
Image
User avatar
Contest Judge
Level 52
Grandmaster Cyborg
Posts: 1185
Joined: 12/9/13
Location: The Netherlands
Minecraft: Pepijn

Post Permalink
by Bertiecrafter » 4/20/2017

Pepijn wrote:Just a warning, the latest snapshot doesn't allow spaces in unquoted strings anymore. It's still allowed in 1.11 but it may not work anymore in the upcoming 1.12 update. Looks like Bertiecrafter is a future teller.


Wow, that's amazing xD
I could have sworn that I got so many errors thrown at me for unbalanced brackets, due to spaces... weird...

I am glad I am not completely wrong though hahahaha :)
Image
Image
User avatar
Level 24
Expert Engineer
Posts: 422
Joined: 2/15/15
Says: gibi.minecraftr.us
Minecraft: Bertiecrafter
mc_server: GIBI - Gather It, Build It

Post Permalink
by Bertiecrafter » 4/20/2017

theillusivemoose wrote:
Pepijn wrote:The command is fine. If you use "~ ~1 ~" for the coordinates it successfully summons the villagers one block above the commandblock. So the coordinates you are putting in the commandblock are wrong.

I suggest you just place the commandblock exactly where you want the villager, and use "~ ~ ~" for the coordinates.

Just tried it. The villager fails to appear, but at least it's not telling me "unable to summon object out of the world." I guess that's a step in the right direction... xD;


What error message DOES it give you then?
Image
Image
User avatar
Level 24
Expert Engineer
Posts: 422
Joined: 2/15/15
Says: gibi.minecraftr.us
Minecraft: Bertiecrafter
mc_server: GIBI - Gather It, Build It

Post Permalink
by theillusivemoose » 4/20/2017

Bertiecrafter wrote:
theillusivemoose wrote:
Pepijn wrote:The command is fine. If you use "~ ~1 ~" for the coordinates it successfully summons the villagers one block above the commandblock. So the coordinates you are putting in the commandblock are wrong.

I suggest you just place the commandblock exactly where you want the villager, and use "~ ~ ~" for the coordinates.

Just tried it. The villager fails to appear, but at least it's not telling me "unable to summon object out of the world." I guess that's a step in the right direction... xD;


What error message DOES it give you then?

No message at all, actually. It simply does nothing. The command pops up in the bottom bar as the last command executed, but in the end nothing actually happens.
User avatar
Level 1
New Explorer
Posts: 8
Joined: 4/18/17

Post Permalink
by Bertiecrafter » 4/20/2017

eeehhhh... resource pack?
spawn-npcs=false in server properties?
Another command block contraption killing/tping them?
Plugins / Mods?

I have no clue what else could cause this.
Image
Image
User avatar
Level 24
Expert Engineer
Posts: 422
Joined: 2/15/15
Says: gibi.minecraftr.us
Minecraft: Bertiecrafter
mc_server: GIBI - Gather It, Build It

Post Permalink
by D1a1v1e1 » 4/20/2017

I think I fixed it... it works for me now
Spoiler
/summon villager ~ ~1 ~ {Invulnerable:1,PersistenceRequired:1,CustomName:Trader Joe,Offers:{Recipes:[{buy:{id:beetroot,Count:64},sell:{id:emerald,Count:8},maxUses:9999999},{buy:{id:carrot,Count:64},sell:{id:emerald,Count:8},maxUses:9999999},{buy:{id:chorus_fruit,Count:64},sell:{id:emerald,Count:8},maxUses:9999999},{buy:{id:dye,Damage:3,Count:64},sell:{id:emerald,Count:8},maxUses:9999999},{buy:{id:fish,Damage:2,Count:1},sell:{id:gold_ingot,Count:1},maxUses:9999999},{buy:{id:egg,Count:16},sell:{id:gold_nugget,Count:16},maxUses:9999999},{buy:{id:apple,Count:1},sell:{id:diamond,Count:1},maxUses:9999999},{buy:{id:melon,Count:64},sell:{id:emerald,Count:8},maxUses:9999999},{buy:{id:poisonous_potato,Count:1},sell:{id:diamond,Count:1},maxUses:9999999},{buy:{id:potato,Count:64},sell:{id:emerald,Count:8},maxUses:9999999},{buy:{id:fish,Damage:3,Count:1},sell:{id:gold_ingot,Count:1},maxUses:9999999},{buy:{id:beef,Count:64},sell:{id:gold_ingot,Count:8},maxUses:9999999},{buy:{id:chicken,Count:64},sell:{id:gold_ingot,Count:8},maxUses:9999999},{buy:{id:fish,Count:1},sell:{id:dye,Damage:4,Count:8},maxUses:9999999},{buy:{id:mutton,Count:64},sell:{id:gold_ingot,Count:8},maxUses:9999999},{buy:{id:porkchop,Count:64},sell:{id:gold_ingot,Count:8},maxUses:9999999},{buy:{id:rabbit,Count:64},sell:{id:gold_ingot,Count:8},maxUses:9999999},{buy:{id:fish,Damage:1,Count:1},sell:{id:dye,Damage:4,Count:8},maxUses:9999999},{buy:{id:rotten_flesh,Count:64},sell:{id:gold_ingot,Count:8},maxUses:9999999},{buy:{id:beef,Count:64},sell:{id:gold_ingot,Count:8},maxUses:9999999},{buy:{id:reeds,Count:64},sell:{id:emerald,Count:8},maxUses:9999999},{buy:{id:wheat,Count:64},sell:{id:emerald,Count:8},maxUses:9999999},{buy:{id:golden_sword,Count:1},sell:{id:gold_ingot,Count:5},maxUses:9999999},{buy:{id:coal,Count:64},sell:{id:iron_ingot,Count:8},maxUses:9999999},{buy:{id:wool,Count:64},sell:{id:gold_ingot,Count:8},maxUses:9999999},{buy:{id:record_cat,Count:1},sell:{id:diamond,Count:9},maxUses:9999999},{buy:{id:bone,Count:64},sell:{id:gold_ingot,Count:8},maxUses:9999999},{buy:{id:blaze_rod,Count:8},sell:{id:gold_ingot,Count:1},maxUses:9999999},{buy:{id:ender_pearl,Count:16},sell:{id:gold_nugget,Count:16},maxUses:9999999},{buy:{id:feather,Count:64},sell:{id:iron_nugget,Count:9},maxUses:9999999},{buy:{id:flint,Count:64},sell:{id:iron_nugget,Count:9},maxUses:9999999},{buy:{id:ghast_tear,Count:1},sell:{id:diamond,Count:1},maxUses:9999999},{buy:{id:gunpowder,Count:64},sell:{id:experience_bottle,Count:1},maxUses:9999999},{buy:{id:leather,Count:64},sell:{id:gold_ingot,Count:8},maxUses:9999999},{buy:{id:quartz,Count:8},sell:{id:dye,Damage:4,Count:8},maxUses:9999999},{buy:{id:nether_wart,Count:64},sell:{id:experience_bottle,Count:1},maxUses:9999999},{buy:{id:rabbit_hide,Count:8},sell:{id:gold_ingot,Count:1},maxUses:9999999},{buy:{id:rabbit_foot,Count:1},sell:{id:diamond,Count:1},maxUses:9999999},{buy:{id:redstone,Count:64},sell:{id:gold_nugget,Count:64},maxUses:9999999},{buy:{id:spider_eye,Count:64},sell:{id:experience_bottle,Count:8},maxUses:9999999},{buy:{id:string,Count:64},sell:{id:experience_bottle,Count:8},maxUses:9999999},{buy:{id:saddle,Count:1},sell:{id:leather,Count:5},maxUses:9999999},{buy:{id:minecart,Count:1},sell:{id:iron_ingot,Count:5},maxUses:9999999},{buy:{id:diamond_horse_armor,Count:1},sell:{id:diamond,Count:7},maxUses:9999999},{buy:{id:iron_horse_armor,Count:1},sell:{id:iron_ingot,Count:7},maxUses:9999999},{buy:{id:golden_horse_armor,Count:1},sell:{id:gold_ingot,Count:7},maxUses:9999999},{buy:{id:totem_of_undying,Count:1},sell:{id:diamond_block,Count:64},maxUses:9999999},{buy:{id:magma_cream,Count:8},sell:{id:diamond,Count:1},maxUses:9999999}]},Profession:5,Career:1,CareerLevel:0}
Chek out my profile for a free zombified skin plus PM me if you have any animation or graphic art related project you need an animator for or help with! (example: intro, avatar, etc.) :D
User avatar
Level 3
Apprentice Artist
Posts: 44
Joined: 2/21/17
Minecraft: D1a1v1e1

Post Permalink
by Cookiesz » 4/20/2017

Bertiecrafter wrote:spawn-npcs=false in server properties?


It might be this, actually. It works fine for me on singleplayer 1.11.2. Are you playing on a server?
User avatar
Level 40
Master Creeper Hugger
Posts: 496
Joined: 9/27/13
Location: Netherlands
Says: i like to sit around and do nothing all day
Minecraft: 15TimesCookie

Post Permalink
by theillusivemoose » 4/21/2017

No server. I'm using Optifine, but even disabling that didn't help, so I tried on a different computer, and lo and behold, I got something different. Now at the end of the "previous output" string, it says "(blah blah blah) is not a valid number"

I am so confused. What in the hell. I've done this before! And it works for everyone else, so why not me? :cry: (By the by, thank you for all your help, everyone. I dunno why it's not working for me, but you've all been very helpful.)
User avatar
Level 1
New Explorer
Posts: 8
Joined: 4/18/17

Post Permalink
by Bertiecrafter » 4/21/2017

When you get that error, it means that you probably forgot a space between the coords or a coord and the DataTag. This way, the entire DataTag is seens as a coordinate and that's why it throws the error.
Image
Image
User avatar
Level 24
Expert Engineer
Posts: 422
Joined: 2/15/15
Says: gibi.minecraftr.us
Minecraft: Bertiecrafter
mc_server: GIBI - Gather It, Build It

Post Permalink
by theillusivemoose » 4/21/2017

Bertiecrafter wrote:When you get that error, it means that you probably forgot a space between the coords or a coord and the DataTag. This way, the entire DataTag is seens as a coordinate and that's why it throws the error.

I fixed the coords as soon as someone told me to use tildes like ~ ~ ~. There haven't been any changes since then. T__T
User avatar
Level 1
New Explorer
Posts: 8
Joined: 4/18/17

Post Permalink
by Bertiecrafter » 4/21/2017

Maybe it helps if you just copy paste the entire command here, straight from the command block. (CTRL+A, CTRL+C inside the command block to copy all).
Image
Image
User avatar
Level 24
Expert Engineer
Posts: 422
Joined: 2/15/15
Says: gibi.minecraftr.us
Minecraft: Bertiecrafter
mc_server: GIBI - Gather It, Build It

Previous

Return to General Help