#How to create a new key in YAML?
1 messages · Page 1 of 1 (latest)
I would like to generate a new key with a new set of sub-paths and values, that sort of stuff
use dots
what do you mean
I can already acces sub paths
that's not the problem
I just need a way to create a new key
okay, can you show me the example of config that you want?
commandToRun:
type: "String"
value: "give"
selectorToUse:
type: "String"
value: "@s"
itemToGive:
type: "String"
value: "minecraft:stone"
that's kinda my file
it's a list of variables that I will then use ingame
so to add a variable, I would need to create a new key
say, add
newVar:
type: "int"
value: 14
config.set("newVar.type", "int");
config.set("newVar.value", 14);
``` that's it