Solved Can someone please check over my YML?

Discussion in 'Plugin Development' started by ron975, Dec 1, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    ron975

    I've been cracking my head over this, but I'm getting, and I don't know how to fix it.


    Code:text
    1.  
    2. ERROR:
    3.  
    4. while parsing a block mapping
    5. in "<unicode string>", line 107, column 5:
    6. data:
    7. ^
    8. expected <block end>, but found '<block mapping start>'
    9. in "<unicode string>", line 125, column 9:
    10. blacklist:
    11. ^


    Code:yml
    1. #PumpkiNibble Config File
    2. #To define new items, follow this template
    3. #=========================================
    4. #pumpkin: Defines permission name, not quite as important user-wise, can be anything you want
    5. #id: Defines item ID, be very careful
    6. #data: Defines data value, default items have a value of zero, other items use data values (such as cocoa beans)
    7. #enabled: Whether this is enabled or not
    8. #takeInsufficientItems: Do we want the item to be taken if we don't have enough to "eat" it?
    9. #healFoodAmount: Amount of the food bar to heal. One is half a "drumstick"
    10. #healHealthAmount: Amount of hearts to heal. One is half a heart
    11. #itemAmount: How much is the minimum amount of items?
    12. #potionEffects: List of potionEffects, see examples, duration is in seconds.
    13. #potionEffects use the internal Bukkit names, see validPotionEffects
    14. #messageOnEat: Message that is displayed when item is eaten
    15. #messageInsufficient: Message that is displayed when not enough items are eaten at once
    16. #messageUnable: Permissions message, when user is not allowed to eat items
    17. #blacklist: List of blocks, that, when clicked will not trigger eating, such as farmland, doors, etc. It is recommended you copy the section from the defaults.
    18.  
    19.  
    20. items:
    21. pumpkin:
    22. data:
    23. id: 361
    24. dmg: 0
    25. enabled: true
    26. takeInsufficientItems: false
    27. healFoodAmount: 3
    28. healHealthAmount: 0
    29. itemAmount: 10
    30. potionEffects:
    31. regeneration:
    32. strength: 1
    33. duration: 10
    34. messageOnEat: 'You nibbled on some seeds'
    35. messageInsufficient: 'Too..little..seeds..must..satisfy..cravings!'
    36. messageUnable: 'Doesnt seem like you are able to nibble on any seeds'
    37. blacklist:
    38. - 60
    39. - 54
    40. - 64
    41. - 77
    42. - 143
    43. - 69
    44. - 96
    45. - 61
    46. - 62
    47. - 107
    48. - 117
    49. - 145
    50. cocoa:
    51. data:
    52. id: 351
    53. dmg: 3
    54. enabled: true
    55. takeInsufficientItems: false
    56. healFoodAmount: 2
    57. healHealthAmount: 1
    58. itemAmount: 2
    59. potionEffects: []
    60. messageOnEat: 'You ate some chocolate'
    61. messageInsufficient: 'You eat some chocolate, but unhuman cravings threaten to ravage your cocoa bean stock'
    62. messageUnable: 'You are not allowed to eat cocoa beans'
    63. blacklist:
    64. - 60
    65. - 54
    66. - 64
    67. - 77
    68. - 143
    69. - 69
    70. - 96
    71. - 61
    72. - 62
    73. - 107
    74. - 17
    75. - 117
    76. - 145
    77. netherwart:
    78. data:
    79. id: 372
    80. dmg: 0
    81. enabled: false
    82. takeInsufficientItems: true
    83. healFoodAmount: 0
    84. healHealthAmount: 0
    85. itemAmount: 15
    86. potionEffects:
    87. confusion:
    88. strength: 6
    89. duration: 300
    90. messageOnEat: '&kYo&ru are s&3o fli&kpp&4in&ig hi&2gh'
    91. messageInsufficient: 'Wasn''t I supposed to start hallucinating? Maybe try a dose of 15'
    92. messageUnable: 'You don''t want to do drugs'
    93. blacklist:
    94. - 54
    95. - 64
    96. - 77
    97. - 143
    98. - 69
    99. - 96
    100. - 107
    101. - 88
    102. - 61
    103. - 62
    104. - 117
    105. - 145
    106. goldencarrot:
    107. data:
    108. id: 396
    109. dmg: 0
    110. enabled: true
    111. takeInsufficientItems: false
    112. healFoodAmount: 0
    113. healHealthAmount: 3
    114. itemAmount: 2
    115. potionEffects:
    116. night_vision:
    117. strength: 2
    118. duration: 60
    119. invisibility:
    120. strength: 2
    121. duration: 60
    122. messageOnEat: 'The miraculous powers of the carrot flow into you, as you see the world with sharper eyes, and feel your body vanish'
    123. messageInsufficient: 'You bite into the carrot, but the infused gold render it inedible. Reverse logic dictates you must eat more'
    124. messageUnable: 'The powers of the carrot may not be bestowed upon you, young one'
    125. blacklist:
    126. - 54
    127. - 64
    128. - 77
    129. - 143
    130. - 69
    131. - 96
    132. - 107
    133. - 61
    134. - 62
    135. - 117
    136. - 145
    137. goldenmelon:
    138. data:
    139. id: 382
    140. dmg: 0
    141. enabled: true
    142. takeInsufficientItems: false
    143. healFoodAmount: 0
    144. healHealthAmount: 0
    145. itemAmount: 1
    146. potionEffects:
    147. regeneration:
    148. strength: 2
    149. duration: 60
    150. messageOnEat: 'Your body warms, as you feel new strength pour in you'
    151. messageInsufficient: 'You bite into the melon, but the infused gold render it inedible. Reverse logic dictates you must eat more'
    152. messageUnable: 'A mysterious force surrounding the slice prevents your mouth from making contact with it''s golden juice'
    153. blacklist:
    154. - 54
    155. - 64
    156. - 77
    157. - 143
    158. - 69
    159. - 96
    160. - 107
    161. - 61
    162. - 62
    163. - 117
    164. - 145
    165. sugarcane:
    166. data:
    167. id: 338
    168. dmg: 0
    169. enabled: true
    170. takeInsufficientItems: true
    171. healFoodAmount: 0
    172. healHealthAmount: 0
    173. itemAmount: 10
    174. potionEffects:
    175. jump:
    176. strength: 2
    177. duration: 20
    178. speed:
    179. strength: 2
    180. duration: 20
    181. messageOnEat: 'The cooling sugarcane juice reinvigorates you'
    182. messageInsufficient: 'This is not enough sugarcane to make even a cup of juice!'
    183. messageUnable: 'A mysterious force surrounding the slice prevents your mouth from making contact with it''s golden juice'
    184. blacklist:
    185. - 54
    186. - 64
    187. - 77
    188. - 143
    189. - 69
    190. - 96
    191. - 107
    192. - 61
    193. - 62
    194. - 117
    195. - 145
    196. - 2
    197. - 3
    198. - 12
    199. brownmushroom:
    200. data:
    201. id: 39
    202. dmg: 0
    203. enabled: false
    204. takeInsufficientItems: true
    205. healFoodAmount: 0
    206. healHealthAmount: 0
    207. itemAmount: 1
    208. potionEffects:
    209. poison:
    210. strength: 1
    211. duration: 20
    212. messageOnEat: 'You''re supposed to &ocook&r the mushrooms before eating them!'
    213. messageInsufficient: 'Good thing you didn''t eat you much, you could have gotten sick'
    214. messageUnable: 'Something is preventing you from eating the mushroom. Probably the permissions system.'
    215. blacklist:
    216. - 54
    217. - 64
    218. - 77
    219. - 143
    220. - 69
    221. - 96
    222. - 107
    223. - 61
    224. - 62
    225. - 117
    226. - 145
    227. - 2
    228. - 3
    229. - 12
    230. - 1
    231. - 110
    232. redmushroom:
    233. data:
    234. id: 40
    235. dmg: 0
    236. enabled: false
    237. takeInsufficientItems: true
    238. healFoodAmount: 0
    239. healHealthAmount: 0
    240. itemAmount: 1
    241. potionEffects:
    242. nausea:
    243. strength: 1
    244. duration: 20
    245. messageOnEat: 'You''re supposed to &ocook&r the mushrooms before eating them!'
    246. messageInsufficient: 'Good thing you didn''t eat you much, you could have gotten sick'
    247. messageUnable: 'Something is preventing you from eating the mushroom. Probably the permissions system.'
    248. blacklist:
    249. - 54
    250. - 64
    251. - 77
    252. - 143
    253. - 69
    254. - 96
    255. - 107
    256. - 61
    257. - 62
    258. - 117
    259. - 145
    260. - 2
    261. - 3
    262. - 12
    263. - 1
    264. - 110
    265. #Do not change
    266. #This section is for reference only.
    267. validPotionEffects:
    268. - blindness
    269. - confusion
    270. - damage_resistance
    271. - fast_digging
    272. - fire_resistance
    273. - harm
    274. - heal
    275. - hunger
    276. - increase_damage
    277. - invisibility
    278. - jump
    279. - night_vision
    280. - poison
    281. - regeneration
    282. - slow
    283. - slow_digging
    284. - speed
    285. - water_breathing
    286. - weakness
    287. - wither
    288.  
     
  2. Offline

    Tirelessly

    Looks like you fucked up.
     
  3. Offline

    ron975

    Uh, no shit.
    The question is where, and how did I fuck up.
     
  4. Offline

    nisovin

    The word 'blacklist' on line 125 is indented too far.
     
  5. Offline

    ron975

    How could I have missed that D:

    Thanks :D
     
  6. Offline

    Cammy_the_block

Thread Status:
Not open for further replies.

Share This Page