1

Need Help with Custom Villager Shops.

1 emerald 2 replies 104 views | started 08/19/2017 4:41 am by Jnaejnae
I am making a map dependent on a Custom Villager shop. I have figured out the basics, but I can't get potions or spawn eggs to work because when I put them in the potions have no effect and the spawn eggs are white and do not spawn anything. I know how to get those working items through give commands, but villager shop items are formated very differently in villager trade commands. I can't also get enchantments, custom names, or canplaceon working on a buyable item.

Command I have so far.
/summon Villager ~ ~1 ~ {Profession:0,CustomName:"Shop",CustomNameVisible:1,Career:1,CareerLevel:42,CanPickUpLoot:0,PersistenceRequired:1,Silent:1,Invulnerable:1,Offers:{Recipes:[{buy:{id:"gold_ingot",Count:5},maxUses:9999999,sell:{id:"potion",Count:1},rewardExp:false},{buy:{id:"gold_ingot",Count:5},maxUses:9999999,sell:{id:"spawn_egg",Count:1,Damage:60},rewardExp:false},{buy:{id:"gold_ingot",Count:10},maxUses:9999999,sell:{id:"golden_pickaxe",Count:1},rewardExp:false}]}}

What I want to fix about the command.
Firstly I want the potion to apply invisibility 2. Secondly I want the spawn egg to spawn a bat, and I also want that egg to only be able to be placed on iron blocks in adventure mode. Lastly I want the golden pickaxe to have efficiency 4, be custom named "The Dragons Tooth", and can only break netherrack.

I've tried command generators but I havent found one complex enough to make functioning potions nor spawn eggs. I tried McEdit but unfortunately it hasnt been updated for Minecraft 1.12 so the CreateShop Filter doesnt work. This is why I need some guidance on making my shop. Any help would be highly appreciated.
Posted by avatar
Jnaejnae
Level 77 : Legendary Boss
248

2 replies

1
08/19/2017 10:51 am
Level 53 Grandmaster Cyborg
Pepijn
avatar
Spoiler - click to reveal
summon villager ~ ~1 ~ {CustomName:"Shop",CustomNameVisible:1,Profession:0,Career:1,CareerLevel:42,Offers:{Recipes:[{rewardExp:0b,maxUses:9999999,uses:0,buy:{id:"minecraft:gold_ingot",Count:5b},sell:{id:"minecraft:potion",Count:1b,tag:{Potion:"minecraft:long_invisibility"}}},{rewardExp:0b,maxUses:9999999,uses:0,buy:{id:"minecraft:gold_ingot",Count:5b},sell:{id:"minecraft:spawn_egg",Damage:65,Count:1b,tag:{EntityTag:{id:"minecraft:bat"}}}},{rewardExp:0b,maxUses:9999999,uses:0,buy:{id:"minecraft:gold_ingot",Count:10b},sell:{id:"minecraft:golden_pickaxe",Count:1b}}]},PersistenceRequired:1,CanPickUpLoot:0b}
2
08/20/2017 1:23 am
Level 77 Legendary Boss
Jnaejnae
avatar
Thanks that helped alot.

Search

Browse

Site

© planetminecraft.com

Welcome