- 01 Dec 2015 03:24
#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
Aquilomart1: This was added and just copied from one of the regular, but i added names and other stuff.
AquiloMart2: This is the 2nd one just copied from the first AquiloMart
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.
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
}
{
"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
}
Youtube: http://www.youtube.com/user/Bhoqure
Nirvon Server Owner-Ice Type Lover
Nirvon Server Owner-Ice Type Lover