why did this break?

I just finished adding in 2 new items to one of my shops and its throwing this error now
ERROR:

while parsing a block mapping
in "<unicode string>", line 120, column 7:
type: command
^
expected <block end>, but found '<block mapping start>'
in "<unicode string>", line 124, column 8:
commands:
^
ERROR:

while parsing a block mapping
in "<unicode string>", line 120, column 7:
type: command
^
expected <block end>, but found '<block mapping start>'
in "<unicode string>", line 124, column 8:
commands:
^
https://pastebin.com/LSV38PxX
Pastebin
miscellaneous: name: "Extras - Shop (page %page%)" size: 45 fill...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
35 Replies
Admincraft Meta
Pastebin is blocked in some countries
Requested by xxer0#0
Admincraft Meta
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by xxer0#0
ProGamingDk
ProGamingDk2y ago
No description
xer0
xer0OP2y ago
ohh ty Dk ill start using that program from now. I've been using basic yml parser
Lunaiskey
Lunaiskey2y ago
i believe commands: should be one space before its indented incorrectly
xer0
xer0OP2y ago
yes that was the problem!
Deleted User
Deleted User2y ago
I use vscode with the YAML extension, even though it's not that lightweight, it still works for me and saves me from these types of errors every once in a while
xer0
xer0OP2y ago
okay thank you. i might start using that also how could I change the name of the item in the shop to a custom name? im selling keys in shop and its named "tripwire_hook"
Deleted User
Deleted User2y ago
which plugin?
xer0
xer0OP2y ago
shopgui+
Deleted User
Deleted User2y ago
No description
xer0
xer0OP2y ago
15:
type: command
item:
name: "Fearless Crate Key"
material: TRIPWIRE_HOOK
quantity: 1
commands:
- "cc give physical Fearless 1 %player%"
buyPrice: 10000
sellPrice: -1
slot: 28
15:
type: command
item:
name: "Fearless Crate Key"
material: TRIPWIRE_HOOK
quantity: 1
commands:
- "cc give physical Fearless 1 %player%"
buyPrice: 10000
sellPrice: -1
slot: 28
This is what I got would I need to change anything or simply add "name:"
Deleted User
Deleted User2y ago
probably no need to change anything but i think you should add it in the item: section
Lunaiskey
Lunaiskey2y ago
thats correct
xer0
xer0OP2y ago
so like that ^?
Deleted User
Deleted User2y ago
try it out, and if it doesn't work, you can always undo and reload the plugin
Lunaiskey
Lunaiskey2y ago
yeah looks about right according to the docs
Lunaiskey
Lunaiskey2y ago
brc plugins docs
Welcome to brc plugins documentation. Here you can find all the necessary information to make the most of our plugins.
Deleted User
Deleted User2y ago
No description
xer0
xer0OP2y ago
okay it works. only now it's italicised
Deleted User
Deleted User2y ago
then use the &r code to reset it
Lunaiskey
Lunaiskey2y ago
thats normal
xer0
xer0OP2y ago
yeah I figured that one xd
Lunaiskey
Lunaiskey2y ago
use &f at the start if you dont want the color to be different since white is the normal color afaik
xer0
xer0OP2y ago
alright. Thanks guys for your input
Deleted User
Deleted User2y ago
&r already sets the color to white, right?
xer0
xer0OP2y ago
yes
Lunaiskey
Lunaiskey2y ago
&r would make it italics tho wouldnt it
Deleted User
Deleted User2y ago
&r is reset
Lunaiskey
Lunaiskey2y ago
i know that
xer0
xer0OP2y ago
&r is default white and non italics
Lunaiskey
Lunaiskey2y ago
i wasnt sure if it stopped renamed items from being italics its like how lore by default is purple
Deleted User
Deleted User2y ago
ohh ic when solved type !solved
xer0
xer0OP2y ago
!solved
Admincraft Meta
post closed!
The post/thread has been closed!
Requested by xxer0#0

Did you find this page helpful?