Ive been trying to make a villager that trades 3 specific items for gold. The items are
give @p 373 1 8227 {display:{Name:"&6Beor"},CustomPotionEffects:[1:{Id:9,Amplifier:0,Duration:600}]}
give @p 373 1 8201 {display:{Name:"&4Captain Tristan"},CustomPotionEffects:[1:{Id:9,Amplifier:0,Duration:1200},{Id:4,Amplifier:0,Duration:1800}]}
give @p 373 1 8268 {display:{Name:"0Labsynth"},CustomPotionEffects:[1:{Id:4,Amplifier:1,Duration:6000},{Id:4,Amplifier:0,Duration:3000},{Id:9,Amplifier:0,Duration:2400},{Id:15,Amplifier:0,Duration:1600},{Id:16,Amplifier:0,Duration:1600},{Id:19,Amplifier:0,Duration:600}]}
I need it so that it costs 2, 4 and 10 gold respectively for each potion. Thanks! (the &6,4 and 0 should be colored as so, I cant figure out how to color names myself.) Also if the villager was unable to move that would be great.
If anyone wants to give this a shot, I have this:
/summon Villager ~ ~ ~ {Invulnerable:1,PersistenceRequired:1,CustomName:Butch the Barkeep,CustomNameVisible:1,Profession:4,Offers:{Recipes:[{maxUses:1000000,buy:{id:266,Count:1},buyB:{id:,Count:1},sell:{id:373,Count:1{maxUses:1000000,buy:{id:266,Count:1},buyB:{id:,Count:1},sell:{id:373,Count:1{maxUses:,buy:{id:266,Count:1},buyB:{id:,Count:1},sell:{id:373,Count:1]}Attributes:[{Name:generic.movementSpeed,Base:0},],}
and i need the potions added to it, i cant figure out the brackets for my life
Ive been trying to make a villager that trades 3 specific items for gold. The items are
give @p 373 1 8227 {display:{Name:"&6Beor"},CustomPotionEffects:[1:{Id:9,Amplifier:0,Duration:600}]}
give @p 373 1 8201 {display:{Name:"&4Captain Tristan"},CustomPotionEffects:[1:{Id:9,Amplifier:0,Duration:1200},{Id:4,Amplifier:0,Duration:1800}]}
give @p 373 1 8268 {display:{Name:"&0Labsynth"},CustomPotionEffects:[1:{Id:4,Amplifier:1,Duration:6000},{Id:4,Amplifier:0,Duration:3000},{Id:9,Amplifier:0,Duration:2400},{Id:15,Amplifier:0,Duration:1600},{Id:16,Amplifier:0,Duration:1600},{Id:19,Amplifier:0,Duration:600}]}
I need it so that it costs 2, 4 and 10 gold respectively for each potion. Thanks! (the &6,4 and 0 should be colored as so, I cant figure out how to color names myself.)
You will have to apply the "Career" and "CareerLevel" tags. "Career" of 0 will force new trades, and you can only use a valid career for the different villager professions. They all have a career of at least 1, so you'll use that. The "CareerLevel" will also need to above some unknown value, but 100 seems to work just fine. Updated command:
/summon Villager ~ ~ ~ {Career:1,CareerLevel:100,Invulnerable:1,PersistenceRequired:1,CustomName:"Butch the Barkeep",CustomNameVisible:1,Profession:4,Attributes:[{Name:generic.movementSpeed,Base:0}],Offers:{Recipes:[{buy:{id:266,Count:2,Damage:0},sell:{id:373,Count:1,Damage:8827,tag:{display:{Name:"&6Beor"},CustomPotionEffects:[1:{Id:9,Amplifier:0,Duration:600}]}},maxUses:9999,uses:},{buy:{id:266,Count:4,Damage:0},sell:{id:373,Count:1,Damage:8201,tag:{display:{Name:"&4Captain Tristan"},CustomPotionEffects:[1:{Id:9,Amplifier:0,Duration:1200},{Id:4,Amplifier:0,Duration:1800}]}},maxUses:9999,uses:},{buy:{id:266,Count:10,Damage:0},sell:{id:373,Count:1,Damage:8268,tag:{display:{Name:"0Labsynth"},CustomPotionEffects:[1:{Id:4,Amplifier:1,Duration:6000},{Id:4,Amplifier:0,Duration:3000},{Id:9,Amplifier:0,Duration:2400},{Id:15,Amplifier:0,Duration:1600},{Id:16,Amplifier:0,Duration:1600},{Id:19,Amplifier:0,Duration:600}]}},maxUses:9999,uses:}]}}
Every villager will attract zombies, you can't spawn one that won't.
While you can't directly create one that won't attract zombies, you can add it and the zombies to the same scoreboard team to prevent hostility between each other after they've been summoned:
/scoreboard teams add NEUTRAL dummy
/scoreboard teams join NEUTRAL @e[type=Zombie]
/scoreboard teams join NEUTRAL @e[type=Villager]
Note that this does not cause hostility towards other entities, just suppresses typical hostility towards teammates (also including skeletons and wolves). Just for future reference: please make a new thread for separate questions.
You will have to apply the "Career" and "CareerLevel" tags. "Career" of 0 will force new trades, and you can only use a valid career for the different villager professions. They all have a career of at least 1, so you'll use that. The "CareerLevel" will also need to above some unknown value, but 100 seems to work just fine. Updated command:
/summon Villager ~ ~ ~ {Career:1,CareerLevel:100,Invulnerable:1,PersistenceRequired:1,CustomName:"Butch the Barkeep",CustomNameVisible:1,Profession:4,Attributes:[{Name:generic.movementSpeed,Base:0}],Offers:{Recipes:[{buy:{id:266,Count:2,Damage:0},sell:{id:373,Count:1,Damage:8827,tag:{display:{Name:"&6Beor"},CustomPotionEffects:[1:{Id:9,Amplifier:0,Duration:600}]}},maxUses:9999,uses:},{buy:{id:266,Count:4,Damage:0},sell:{id:373,Count:1,Damage:8201,tag:{display:{Name:"&4Captain Tristan"},CustomPotionEffects:[1:{Id:9,Amplifier:0,Duration:1200},{Id:4,Amplifier:0,Duration:1800}]}},maxUses:9999,uses:},{buy:{id:266,Count:10,Damage:0},sell:{id:373,Count:1,Damage:8268,tag:{display:{Name:"0Labsynth"},CustomPotionEffects:[1:{Id:4,Amplifier:1,Duration:6000},{Id:4,Amplifier:0,Duration:3000},{Id:9,Amplifier:0,Duration:2400},{Id:15,Amplifier:0,Duration:1600},{Id:16,Amplifier:0,Duration:1600},{Id:19,Amplifier:0,Duration:600}]}},maxUses:9999,uses:}]}}
Hey, returning to this thread in 1.8.3. I've been trying to make my own custom villager trades, but even setting the "CareerLevel" tag to a high number has no effect on the random trade generation. It's possible the system's been changed since 1.7, and if so does anyone know how to make a villager that won't generate more trades!?
EDIT: Nevermind, I figured it out. I had neglected to set the "Career" tag to a number greater than 0. Apparently if you don't specify the Career, the CareerLevel value will be ignored. Derp!
If anyone wants to give this a shot, I have this:
Quick question, are you in 1.7?
yes
Ahh. One more question, how many trades can you make with the villager? Infinite, or a single time per item?
Infinite, and if you could make him immobile that would be great.
I take it you gave up?
He did, I just started
First Trade:
EDIT: Second Trade:
EDIT 2: Third Trade:
If I helped you, click this magical green button ! Gives me power!
If I helped you, click this magical green button ! Gives me power!
When i summon the first one and trade it, it has no trades and crashes my game.
I can't seem to find the problem. Just make sure you're in the snapshots.
If I helped you, click this magical green button ! Gives me power!
Now how do i make it so he cant have more trades?
You will have to apply the "Career" and "CareerLevel" tags. "Career" of 0 will force new trades, and you can only use a valid career for the different villager professions. They all have a career of at least 1, so you'll use that. The "CareerLevel" will also need to above some unknown value, but 100 seems to work just fine. Updated command:
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
While you can't directly create one that won't attract zombies, you can add it and the zombies to the same scoreboard team to prevent hostility between each other after they've been summoned:
Note that this does not cause hostility towards other entities, just suppresses typical hostility towards teammates (also including skeletons and wolves). Just for future reference: please make a new thread for separate questions.
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
Hey, returning to this thread in 1.8.3. I've been trying to make my own custom villager trades, but even setting the "CareerLevel" tag to a high number has no effect on the random trade generation. It's possible the system's been changed since 1.7, and if so does anyone know how to make a villager that won't generate more trades!?
EDIT: Nevermind, I figured it out. I had neglected to set the "Career" tag to a number greater than 0. Apparently if you don't specify the Career, the CareerLevel value will be ignored. Derp!