$dialog show @s {type:"minecraft:confirmation",title:{text:"Grave Settings"},body:{type:"minecraft:plain_message",contents:{text:"Hover Over Me To Read Notes",color:"red",hover_event:{action:"show_text",value:[{text:"1. The settings are preset with the current data.",color:"green"},"\n",{text:"2. The Delete option is available only when the Loot option is enabled.",color:"red"},"\n",{text:"3. The Grave limit is automatically disabled if Immediate Respawn is turned on.",color:"light_purple"}]}}},inputs:[{type:"minecraft:number_range",key:"xpPercentage",label:{text:"XP Drops (%)"},start:0,end:100,step:10,initial:$(xpPercentage)},{type:"minecraft:number_range",key:"graveLimit",label:{text:"Grave Limit Per Player"},start:2,end:100,step:1,initial:$(graveLimit)},{type:"minecraft:boolean",key:"looting",label:{text:"Remote Looting"},initial:$(looting)},{type:"minecraft:boolean",key:"deleting",label:{text:"Remote Deleting"},initial:$(deleting)},{type:"minecraft:boolean",key:"Glowing",label:{text:"Glowing"},initial:$(Glowing)}],pause:0b,yes:{label:{text:"Confirm"},action:{type:"minecraft:dynamic/run_command",template:"function snapgrave:settings/input {xpPercentage:\u0024(xpPercentage),graveLimit:\u0024(graveLimit),looting:\u0024(looting),deleting:\u0024(deleting),Glowing:\u0024(Glowing)}"}},no:{label:{text:"Cancel"}}}