FormChangeToggleDataItem - Provismet/Gimme-That-Gimmick GitHub Wiki
Describes how to create a data-driven form toggle item. These items always have the minecraft id of gimme-that-gimmick:data_driven_toggle
, regardless of the clientside representation of the item.
/gimme-that-gimmick give <player> toggle_form <item id>
data/<namespace>/gimme-that-gimmick/item/key_item/form_toggle/<path>.json
Field | Type | Default | Description |
---|---|---|---|
item |
DataItem | The clientside representation of the item. | |
fusion |
FormToggle | The form toggle to perform. |
Using the same example from FormToggle, this item swaps a Pokemon between Alolan and standard forms.
{
"form": {
"applyIf": {
"formShowdownIds": [
"normal"
]
},
"effects": "gimme-that-gimmick:layered_vanilla",
"featuresOnApply": {
"alolan": true
},
"featuresOnRemove": {
"alolan": false
},
"validPokemon": {
"formShowdownIds": [
"normal",
"alola"
],
"speciesShowdownIds": [
"raichu",
"muk",
"grimer",
"vulpix",
"ninetales",
"rattata",
"raticate",
"sandshrew",
"sandslash",
"diglet",
"dugtrio",
"meowth",
"persian",
"geodude",
"graveler",
"golem",
"exeggutor",
"marowak"
]
}
},
"item": {
"name": "The Alolanator",
"rarity": "uncommon",
"tooltip": [
"Sends your pokemon on vacation."
],
"vanillaItem": "minecraft:flint"
}
}