Forum rules: Do not post bugs or feature requests here! Report bugs to our Issue Tracker and suggestions to Suggest a Feature.

This site is not for solicitation of services or 'purchasing' development. Please do not post requesting side mods/plugins and so on. Your thread will be removed, and you will receive a warning.
User avatar
By bhoqure
#164629 Ok so i edited everything that i wanted to add. I tested it to some degree with some items then added the rest following how i did the others. But now that i have, i came with a crash. I know it was with somewhere in the coding but idk where.

The error is so long so i cannot show it. But i would like to ask you guys to see what i did wrong in the editing of the files

This is the list of stuff that i edited:
Shop Items: I added directly after the last entry starting with wool
Spoiler:
Code: Select all{
      "name": "pixelmon:PokeMail-wood",
      "buy": 50,
      "sell": 25
    },
   {
     "id": "wool",
     "name": "minecraft:wool",
     "sell": 50
   },
   {
     "id": "andesite",
     "name": "minecraft:stone",
     "sell": 50
   },
   {
     "id": "blazepowder",
     "name": "minecraft:blaze_powder",
     "sell": 250
   },
   {
     "id": "blazerod",
     "name": "minecraft:blaze_rod",
     "sell": 400
   },
   {
     "id": "clay",
     "name": "minecraft:clay",
     "sell": 100
   },
   {
     "id": "clownfish",
     "name": "minecraft:fish",
     "sell": 25
   },
   {
     "id": "coal",
     "name": "minecraft:coal",
     "sell": 400
   },
   {
     "id": "cobblestone",
     "name": "minecraft:cobblestone",
     "sell": 50
   },
   {
     "id": "cocobeans",
     "name": "minecraft:dye",
     "sell": 100
   },
   {
     "id": "diamond",
     "name": "minecraft:diamond",
     "sell": 2000
   },
   {
     "id": "diorite",
     "name": "minecraft:stone",
     "sell": 50
   },
   {
     "id": "dirt",
     "name": "minecraft:dirt",
     "sell": 50
   },
   {
     "id": "egg",
     "name": "minecraft:egg",
     "sell": 25
   },
   {
     "id": "emerald",
     "name": "minecraft:emerald",
     "sell": 50
   },
   {
     "id": "endstone",
     "name": "minecraft:end_stone",
     "sell": 100
   },
   {
     "id": "enderpearl,
     "name": "minecraft:ender_pearl",
     "sell": 150
   },
   {
     "id": "feather",
     "name": "minecraft:feather",
     "sell": 50
   },
   {
     "id": "ghasttear",
     "name": "minecraft:ghast_tear",
     "sell": 150
   },
   {
     "id": "glowstonedust",
     "name": "minecraft:glowstone_dust",
     "sell": 150
   },
   {
     "id": "goldnugget",
     "name": "minecraft:gold_nugget",
     "sell": 300
   },
   {
     "id": "granite",
     "name": "minecraft:stone",
     "sell": 50
   },
   {
     "id": "gravel",
     "name": "minecraft:gravel",
     "sell": 50
   },
   {
     "id": "gunpowder",
     "name": "minecraft:gunpowder",
     "sell": 250
   },
   {
     "id": "ice",
     "name": "minecraft:ice",
     "sell": 50
   },
   {
     "id": "inksack",
     "name": "minecraft:dye",
     "sell": 200
   },
   {
     "id": "ironingot",
     "name": "minecraft:iron_ingot",
     "sell": 400
   },
   {
     "id": "lapislazuli",
     "name": "minecraft:dye",
     "sell": 700
   },
   {
     "id": "Leather",
     "name": "minecraft:leather",
     "sell": 100
   },
   {
     "id": "lilypad",
     "name": "minecraft:waterlily",
     "sell": 100
   },
   {
     "id": "melonseeds",
     "name": "minecraft:melon_seeds",
     "sell": 75
   },
   {
     "id": "brownmushroom",
     "name": "minecraft:brown_mushroom",
     "sell": 75
   },
   {
     "id": "redmushroom",
     "name": "minecraft:red_mushroom",
     "sell": 75
   },
   {
     "id": "Mycelium",
     "name": "minecraft:Mycelium",
     "sell": 50
   },
   {
     "id": "netherquartz",
     "name": "minecraft:quartz",
     "sell": 150
   },
   {
     "id": "netherwart",
     "name": "minecraft:nether_wart",
     "sell": 75
   },
   {
     "id": "netherrack",
     "name": "minecraft:nether rack",
     "sell": 50
   },
   {
     "id": "prismarinecrystals",
     "name": "minecraft:prismarine_crystals",
     "sell": 400
   },
   {
     "id": "prismarineshard",
     "name": "minecraft:prismarine_shard",
     "sell": 500
   },
   {
     "id": "pufferfish",
     "name": "minecraft:fish",
     "sell": 200
   },
   {
     "id": "pumpkin",
     "name": "minecraft:pumpkin",
     "sell": 200
   },
   {
     "id": "pumpkinseeds",
     "name": "minecraft:pumpkin_seeds",
     "sell": 75
   },
   {
     "id": "rabbithide",
     "name": "minecraft:rabbit"_hide,
     "sell": 100
   },
   {
     "id": "redstone",
     "name": "minecraft:redstone",
     "sell": 200
   },
   {
     "id": "rottenflesh",
     "name": "minecraft:r"otten_flesh,
     "sell": 50
   },
   {
     "id": "sand",
     "name": "minecraft:sand",
     "sell": 50
   },
   {
     "id": "seeds",
     "name": "minecraft:wheat_seeds",
     "sell": 50
   },
   {
     "id": "slimeball",
     "name": "minecraft:slime_ball",
     "sell": 150
   },
   {
     "id": "snowblock",
     "name": "minecraft:snow",
     "sell": 100
   },
   {
     "id": "wool",
     "name": "minecraft:snowball",
     "sell": 75
   },
   {
     "id": "soulsand",
     "name": "minecraft:soul_sand",
     "sell": 50
   },
   {
     "id": "spider",
     "name": "minecraft:spider_eye",
     "sell": 100
   },
   {
     "id": "stone",
     "name": "minecraft:stone",
     "sell": 50
   },
   {
     "id": "string",
     "name": "minecraft:string",
     "sell": 50
   },
   {
     "id": "sugar",
     "name": "minecraft:sugar",
     "sell": 200
   },
   {
     "id": "sugarcanes",
     "name": "minecraft:reeds",
     "sell": 100
   },
   {
     "id": "torch",
     "name": "minecraft:torch",
     "sell": 50
   },
   {
     "id": "vines",
     "name": "minecraft:vine",
     "sell": 75
   },
   {
     "id": "Mobhead",
     "name": "minecraft:skull",
     "sell": 500
   }
  ]
}


Aquilomart1: This was added and just copied from one of the regular, but i added names and other stuff.

Spoiler:
Code: Select all{
  "data": {
    /* Type options are:
      "PokemartMain" - Spawns as the primary seller in a Poké Mart. Sells main items.
      "PokemartSecond" - Spawns as the secondary seller in a Poké Mart. Sells luxury items.
      "Spawn" - Spawns in the wild as a very rare seller.

      More will be added as new shop types are added.
    */
    "type": "PokemartMain"
  },
  "textures": [
    {
      "name": "shopman2.png"
    },
    {
      "name": "shopman.png"
    },
    {
      "name": "shopman3.png"
    },
    {
      "name": "shopman4.png"
    },
    {
      "name": "shopman5.png"
    }
  ],
  "names": [
    {
      "name": "Charles"
    },
    {
      "name": "Eito"
    },
    {
      "name": "Alex"
    },
    {
      "name": "Greg"
    },
    {
      "name": "James"
    },
    {
      "name": "Fred"
    },
    {
      "name": "Ethan"
    },
    {
      "name": "Marshal"
    },
    {
      "name": "Chris"
    },
    {
      "name": "Steve"
    },
    {
      "name": "Megan"
    },
    {
      "name": "Emily"
    },
    {
      "name": "Alison"
    },
    {
      "name": "Sam"
    },
    {
      "name": "Veronica"
    },
    {
      "name": "Racheal"
    },
    {
      "name": "Carly"
    },
    {
      "name": "Amanda"
    },
    {
      "name": "Courtney"
    },
    {
      "name": "Olivia"
    }
  ],
  "chat": [
    {
      "hello": "Welcome to my Poké Mart. I hope you find something you like!",
      "goodbye": "See you next time."
    },
    {
      "hello": "Hello, welcome to the Poké Mart. How may I help you?",
      "goodbye": "Thank you for shopping at the Poké Mart. Have a nice day."
    },
    {
      "hello": "Hello there! Welcome to my Poké Mart. I have only the best Pokémon products for sale.",
      "goodbye": "Thank you for shopping at my store."
    },
    {
      "hello": "Welcome to my Poké Mart. Nice day for shopping, isn't it?",
      "goodbye": "Come back soon, won't you?"
    },
    {
      "hello": "Hello there, welcome to the Poké Mart! We have many specials today!",
      "goodbye": "Come see us again, won't you?"
    },
    {
      "hello": "Hey there, welcome to the Poké Mart. Looking for anything special?",
      "goodbye": "Okay, see ya next time."
    },
    {
      "hello": "How are you? Welcome to our Poké Mart! We've got some great gear for your Pokémon.",
      "goodbye": "Ciao, my friend. Come back anytime."
    },
    {
      "hello": "Hello, check out our Poké Mart! We have some useful Pokémon gear today.",
      "goodbye": "Come back again soon, okay?"
    },
    {
      "hello": "Hi, looking for the best Poké Mart? Well, you just found it!",
      "goodbye": "Leaving so soon? Well, make sure you come back even sooner!"
    }
  ],
  /*
    Only items listed in the items array will show up in the shop for sale. Any item can be sold to the shop however.
    Items layout:
    name - reference to the name entry in shopItems.json.
    multi - optional field, defaults to 1, changes cost of buying that item by that multiplier.
    rarity - optional field, from 0 - 1, if set the item set there will have a percentage chance of turning up at this shopkeeper. Refreshed every MC day.
  */
  "items": [
    {
      "name": "pixelmon:item.Poke_Ball",
    },
    {
      "name": "pixelmon:item.Potion"
    },
    {
      "name": "pixelmon:item.Ether"
    },
    {
      "name": "pixelmon:item.Revive",
      "rarity": 0.1,
      “multi": 0.5
    }
  ]
}


AquiloMart2: This is the 2nd one just copied from the first AquiloMart
Spoiler:
Code: Select all{
  "data": {
    /* Type options are:
      "PokemartMain" - Spawns as the primary seller in a Poké Mart. Sells main items.
      "PokemartSecond" - Spawns as the secondary seller in a Poké Mart. Sells luxury items.
      "Spawn" - Spawns in the wild as a very rare seller.

      More will be added as new shop types are added.
    */
    "type": "PokemartMain"
  },
  "textures": [
    {
      "name": "shopman2.png"
    },
    {
      "name": "shopman.png"
    },
    {
      "name": "shopman3.png"
    },
    {
      "name": "shopman4.png"
    },
    {
      "name": "shopman5.png"
    }
  ],
  "names": [
    {
      "name": "Charles"
    },
    {
      "name": "Eito"
    },
    {
      "name": "Alex"
    },
    {
      "name": "Greg"
    },
    {
      "name": "James"
    },
    {
      "name": "Fred"
    },
    {
      "name": "Ethan"
    },
    {
      "name": "Marshal"
    },
    {
      "name": "Chris"
    },
    {
      "name": "Steve"
    },
    {
      "name": "Megan"
    },
    {
      "name": "Emily"
    },
    {
      "name": "Alison"
    },
    {
      "name": "Sam"
    },
    {
      "name": "Veronica"
    },
    {
      "name": "Racheal"
    },
    {
      "name": "Carly"
    },
    {
      "name": "Amanda"
    },
    {
      "name": "Courtney"
    },
    {
      "name": "Olivia"
    }
  ],
  "chat": [
    {
      "hello": "Welcome to my Poké Mart. I hope you find something you like!",
      "goodbye": "See you next time."
    },
    {
      "hello": "Hello, welcome to the Poké Mart. How may I help you?",
      "goodbye": "Thank you for shopping at the Poké Mart. Have a nice day."
    },
    {
      "hello": "Hello there! Welcome to my Poké Mart. I have only the best Pokémon products for sale.",
      "goodbye": "Thank you for shopping at my store."
    },
    {
      "hello": "Welcome to my Poké Mart. Nice day for shopping, isn't it?",
      "goodbye": "Come back soon, won't you?"
    },
    {
      "hello": "Hello there, welcome to the Poké Mart! We have many specials today!",
      "goodbye": "Come see us again, won't you?"
    },
    {
      "hello": "Hey there, welcome to the Poké Mart. Looking for anything special?",
      "goodbye": "Okay, see ya next time."
    },
    {
      "hello": "How are you? Welcome to our Poké Mart! We've got some great gear for your Pokémon.",
      "goodbye": "Ciao, my friend. Come back anytime."
    },
    {
      "hello": "Hello, check out our Poké Mart! We have some useful Pokémon gear today.",
      "goodbye": "Come back again soon, okay?"
    },
    {
      "hello": "Hi, looking for the best Poké Mart? Well, you just found it!",
      "goodbye": "Leaving so soon? Well, make sure you come back even sooner!"
    }
  ],
  /*
    Only items listed in the items array will show up in the shop for sale. Any item can be sold to the shop however.
    Items layout:
    name - reference to the name entry in shopItems.json.
    multi - optional field, defaults to 1, changes cost of buying that item by that multiplier.
    rarity - optional field, from 0 - 1, if set the item set there will have a percentage chance of turning up at this shopkeeper. Refreshed every MC day.
  */
  "items": [
    {
      "name": "pixelmon:item.Premier_Ball",
    },
    {
      "name": "pixelmon:item.Nest_Ball",
      "rarity": 0.8,
      "multi": 0.8
    },
    {
      "name": "pixelmon:PokeMail-air",
    },
    {
      "name": "pixelmon:PokeMail-thanks"
    },
    {
      "name": "pixelmon:PokeMail-greet"
    }
  ]
}


Also, i would like to ask about this code stuff that you gave me as reference. I just wanna ask a few questions about what is what in the reference.
Spoiler:
,
{
"id": "sprucePlanksLore",
"name": "minecraft:planks",
What is this line exactly?---> "itemData": 1, //itemData:30 = spruce wood planks
Im wondering because spruce is 5 so idk what itemData:30 means

Is this just what would show up while buying/selling? ---> "nbtData": "{display:{Lore:[\"Wooden planks\"]}}",
"buy": 5,
"sell": 2
}

User avatar
By MrMasochism
#164631 First error: "id": "enderpearl,
no end " on it. The crash logs do have the information about where the parser went wrong and what line to look on
User avatar
By MrMasochism
#164632 2nd part of your message, I got the itemData wrong for spruce, spruce is actually 1 I think rather than 30. The 2nd part means that the only item it's dealing with there is a spruce plank with lore attached which says "Wooden Planks". A normal spruce plank without that lore attached wouldn't be buyable or sellable with that data
User avatar
By bhoqure
#164645 I have noticed with some of the items on the shopItems list that some of the mine craft items have the same name which is minecraft:stone and minecraft:dye. I did not add any extra items after that like the id and the nbt name, would that be a cause why i can't get the shopkeepers to work?
User avatar
By MrMasochism
#164647 no, the reasons your shopkeepers aren't working is you have badly formed json files, either you are missing end quotes or beginning quotes or you don't have ,'s in the right places
User avatar
By bhoqure
#164657 Sorry for asking so many questions, Im not to familiar with the coding thats why I'm asking. Im probably going to make a video for this later on as well so people can understand how to do this.

Here is another question. I found why i crash with adding ether to the shopkeeper i want to add. i add the buy price in the shop items and then add the code for the ether in the shopkeepers file but i crash each time. I take the ether out of each and the buy out of it and i don't. all I'm doing is copying a buy price from another item and coping the code exactly the name as it should be.

Spoiler:
{
"name": "pixelmon:item.Ether",
"sell": 200
},

to

{
"name": "pixelmon:item.Ether",
"buy": 400,
"sell": 200
},

and

{
"name": "pixelmon:item.Ether"
},


what am i doing wrong here?
User avatar
By bhoqure
#164672 Alright, I'm still testing what does work so far with the adding items in to sell. So far the only problems i am having is trying to get the items with the same id, such as stones, dyes, and mob heads. I tried to use the item data thing but it was not working for me at all. I believe i just don't know how to add it correctly.
JOIN THE TEAM