1

Command Debugging

Larry the Hamster's Avatar Larry the Hamster1/16/23 11:16 pm
1 emeralds 132
3/22/2023 3:27 am
DarrenHayes's Avatar DarrenHayes
I have a very long command that has a lot of issues. If you are not extremely good at commands, click off of this forum.
Current Command

/summon villager ~ ~ ~ {VillagerData:{profession:librarian,level:99,type:savanna},Invulnerable:1,PersistenceRequired:1,Silent:1,CustomName:"\"Special Village 2\"",Offers:{Recipes:[{buy:{id:diamond,Count:7},sell:{id: warped_sign}}]}} ,{BlockEntityTag:{Text1:'{"text":"click this","clickEvent":{"action":"run_command","value":"setblock -7 -60 18 minecraft:redstone_block"}}',Text2:'{"text":"sign to enable:","clickEvent":{"action":"run_command","value":"setblock -7 -60 18 minecraft:redstone_block"}}',Text3:'{"text":"Heal Pool ability","clickEvent":{"action":"run_command","value":"setblock -7 -60 18 minecraft:redstone_block"},"bold":true}',Text4:'[{"text":"","clickEvent":{"action":"run_command","value":"setblock -7 -60 18 minecraft:redstone_block"}},{"text":"for "},{"text":"BLUE","color":"dark_blue"},{"text":" team"}]'},display:{Name:'{"text":"Blue Team Heal Pool Upgrade"}'}}"",Lore:["\"place and click to use\""]}}},rewardExp:0b,maxUses:9999999},{buy:{id:diamond,Count:7},sell:{id: warped_sign{BlockEntityTag:{Text1:'{"text":"click this","clickEvent":{"action":"run_command","value":"setblock 0 -60 23 minecraft:redstone_block"}}',Text2:'{"text":"sign to enable:","clickEvent":{"action":"run_command","value":"setblock 0 -60 23 minecraft:redstone_block"}}',Text3:'{"text":"TRAP ability","clickEvent":{"action":"run_command","value":"setblock 0 -60 23 minecraft:redstone_block"},"bold":true}',Text4:'[{"text":"","clickEvent":{"action":"run_command","value":"setblock 0 -60 23 minecraft:redstone_block"}},{"text":"against "},{"text":"RED","color":"red"},{"text":" team"}]'},display:{Name:'{"text":"Blue Team Trap Upgrade"}'}}"",Lore:["\"place and click to use\""]}}},rewardExp:0b,maxUses:9999999},{buy:{id:emerald,Count:3},sell:{id: potion{CustomPotionEffects:[{Id:1,Duration:1200,ShowParticles:0b},{Id:5,Duration:200,ShowParticles:0b},{Id:8,Amplifier:1,Duration:1200,ShowParticles:0b},{Id:13,Duration:1200,ShowParticles:0b},{Id:21,Amplifier:1,Duration:200,ShowParticles:0b}],CustomPotionColor:10478890,display:{Name:"\"Athletic Potion\""}}rewardExp:0b,maxUses:9999999},{buy:{id:emerald,Count:3},sell:{id: potion{CustomPotionEffects:[{Id:3,Duration:1200,ShowParticles:0b},{Id:8,Amplifier:1,Duration:600,ShowParticles:0b},{Id:11,Duration:600,ShowParticles:0b},{Id:14,Duration:1200,ShowParticles:0b}],CustomPotionColor:0,display:{Name:"\"Infiltration Potion\""}}rewardExp:0b,maxUses:9999999},{buy:{id:iron_ingot,Count:17},sell:{id:shears,Count:1,tag:{display:{Name:"\"Wool Breakers\""}}},rewardExp:0b,maxUses:9999999},{buy:{id:iron_ingot,Count:11},sell:{id:wooden_axe,Count:1},rewardExp:0b,maxUses:9999999},{buy:{id:iron_ingot,Count:11},sell:{id:wooden_pickaxe,Count:1},rewardExp:0b,maxUses:9999999},{buy:{id:diamond,Count:5},buyB:{id:shears,Count:1},sell:{id:shears,Count:1,tag:{display:{Name:"\"Wool Destroyers\""},Enchantments:[{id:efficiency,lvl:10},{id:unbreaking,lvl:1},{id:vanishing_curse,lvl:1}]}},rewardExp:0b,maxUses:9999999},{buy:{id:gold_ingot,Count:17},buyB:{id:wooden_axe,Count:1},sell:{id:diamond_axe,Count:1},rewardExp:0b,maxUses:9999999},{buy:{id:gold_ingot,Count:17},buyB:{id:wooden_pickaxe,Count:1},sell:{id:diamond_pickaxe,Count:1},rewardExp:0b,maxUses:9999999}]}}

End Result
The goal is to make a custom villager that spawns with the command:
/summon villager ~ ~ ~ {VillagerData:{profession:librarian,level:99,type:savanna},Invulnerable:1,PersistenceRequired:1,Silent:1,CustomName:"\"Special Shop 2\"",Offers:{Recipes:[{buy:{id:diamond,Count:7},sell:{id:dark_oak_sign,Count:1,tag:{display:{Name:"\"Heal Pool Team Upgrade\"",Lore:["\"place and click to use\""]}}},rewardExp:0b,maxUses:9999999},{buy:{id:diamond,Count:7},sell:{id:oak_sign,Count:1,tag:{display:{Name:"\"Trap Upgrade\"",Lore:["\"place and click to use\""]}}},rewardExp:0b,maxUses:9999999},{buy:{id:emerald,Count:3},sell:{id:potion,Count:1,tag:{display:{Name:"\"Athletic Potion\""},Potion:"minecraft:long_weakness"}},rewardExp:0b,maxUses:9999999},{buy:{id:emerald,Count:3},sell:{id:potion,Count:1,tag:{display:{Name:"\"Infiltration Potion\""},Potion:"minecraft:regeneration"}},rewardExp:0b,maxUses:9999999},{buy:{id:iron_ingot,Count:17},sell:{id:shears,Count:1,tag:{display:{Name:"\"Wool Breakers\""}}},rewardExp:0b,maxUses:9999999},{buy:{id:iron_ingot,Count:11},sell:{id:wooden_axe,Count:1},rewardExp:0b,maxUses:9999999},{buy:{id:iron_ingot,Count:11},sell:{id:wooden_pickaxe,Count:1},rewardExp:0b,maxUses:9999999},{buy:{id:diamond,Count:5},buyB:{id:shears,Count:1},sell:{id:shears,Count:1,tag:{display:{Name:"\"Wool Destroyers\""},Enchantments:[{id:efficiency,lvl:5},{id:unbreaking,lvl:1},{id:vanishing_curse,lvl:1}]}},rewardExp:0b,maxUses:9999999},{buy:{id:gold_ingot,Count:17},buyB:{id:wooden_axe,Count:1},sell:{id:diamond_axe,Count:1},rewardExp:0b,maxUses:9999999},{buy:{id:gold_ingot,Count:17},buyB:{id:wooden_pickaxe,Count:1},sell:{id:diamond_pickaxe,Count:1},rewardExp:0b,maxUses:9999999}]}}
but the potions are replaced with custom potions:
minecraft:potion{CustomPotionEffects:[{Id:3,Duration:1200,ShowParticles:0b},{Id:8,Amplifier:1,Duration:600,ShowParticles:0b},{Id:11,Duration:600,ShowParticles:0b},{Id:14,Duration:1200,ShowParticles:0b}],CustomPotionColor:0,display:{Name:"\"Infiltration Potion\""}}
and:
minecraft:potion{CustomPotionEffects:[{Id:1,Amplifier:1,Duration:1200,ShowParticles:0b},{Id:5,Duration:200,ShowParticles:0b},{Id:8,Amplifier:1,Duration:1200,ShowParticles:0b},{Id:13,Duration:200,ShowParticles:0b},{Id:21,Amplifier:1,Duration:200,ShowParticles:0b}],CustomPotionColor:7912990,display:{Name:"\"Athletic Potion\""}}
and the signs are replaced with custom signs:

minecraft:warped_sign{BlockEntityTag:{Text1:'{"text":"click this","clickEvent":{"action":"run_command","value":"setblock -7 -60 18 minecraft:redstone_block"}}',Text2:'{"text":"sign to enable:","clickEvent":{"action":"run_command","value":"setblock -7 -60 18 minecraft:redstone_block"}}',Text3:'{"text":"Heal Pool ability","clickEvent":{"action":"run_command","value":"setblock -7 -60 18 minecraft:redstone_block"},"bold":true}',Text4:'[{"text":"","clickEvent":{"action":"run_command","value":"setblock -7 -60 18 minecraft:redstone_block"}},{"text":"for "},{"text":"BLUE","color":"dark_blue"},{"text":" team"}]'},display:{Name:'{"text":"Blue Team Heal Pool Upgrade"}'}}
and:
minecraft:warped_sign{BlockEntityTag:{Text1:'{"text":"click this","clickEvent":{"action":"run_command","value":"setblock 0 -60 23 minecraft:redstone_block"}}',Text2:'{"text":"sign to enable:","clickEvent":{"action":"run_command","value":"setblock 0 -60 23 minecraft:redstone_block"}}',Text3:'{"text":"TRAP ability","clickEvent":{"action":"run_command","value":"setblock 0 -60 23 minecraft:redstone_block"},"bold":true}',Text4:'[{"text":"","clickEvent":{"action":"run_command","value":"setblock 0 -60 23 minecraft:redstone_block"}},{"text":"against "},{"text":"RED","color":"red"},{"text":" team"}]'},display:{Name:'{"text":"Blue Team Trap Upgrade"}'}}


I will credit you in the final project if you can fix this. I am pretty sure it is possible because I have done similar commands, but this is by far the most complex, so it could be impossible.
Posted by Larry the Hamster's Avatar
Larry the Hamster
Level 24 : Expert Engineer
36

Create an account or sign in to comment.

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome