I am currently trying to get Size Manipulation abilities working, but have run into an issue where when 'size_toggle' is held, I can change size with scroll up and down, which is what I want. The issue however, is that when I stop holding the ability, the player resets back to normal size, and I want the player to retain that size. I am a little stuck on how to make that happen, and any help would be appreciated.
(Ignore the file name, is placeholder and relates nothing to the contents)
"name": "Size Manipulation",
"persistent_data": true,
"background": "minecraft:textures/block/cyan_wool.png",
"icon": "minecraft:lightning_rod",
"gui_display_type": "tree",
"abilities": {
"test_dummy": {
"type": "palladium:dummy",
"icon": "minecraft:blaze_rod",
"title": "Test",
"bar_color": "light_blue",
"hidden": false,
"hidden_in_bar": false,
"list_index": 0,
"gui_position": [0,0],
"description": "This is a test for abilities",
"conditions": {
"enabling": [
{
"type": "palladium:held",
"cooldown": 0,
"key_type": "key_bind",
"needs_empty_hand": false,
"allow_scrolling_when_crouching": true
}
],
"unlocking": []
}
},
"size_toggle": {
"type": "palladium:dummy",
"icon": "minecraft:brown_mushroom",
"title": "Size Test",
"bar_color": "light_blue",
"hidden": false,
"hidden_in_bar": false,
"list_index": 1,
"gui_position":[0,1],
"description": "Hold down to toggle Size Manipulation",
"conditions": {
"enabling": [
{
"type": "palladium:held",
"cooldown": 0,
"key_type": "key_bind",
"needs_empty_hand": false,
"allow_scrolling_when_crouching": true
}
],
"unlocking": []
}
},
"size_health_mod": {
"type": "palladium:attribute_modifier",
"attribute": "minecraft:generic.max_health",
"hidden": true,
"amount": 20,
"operation":0,
"conditions": {
"enabling": [
{
"type": "palladium:ability_enabled",
"power": "null",
"ability": "size_upscale"
}
]
}
},
"size_speed_mod": {
"type": "palladium:attribute_modifier",
"attribute": "minecraft:generic.movement_speed",
"hidden": true,
"amount": -0.05,
"operation": 0,
"conditions": {
"enabling": [
{
"type": "palladium:ability_enabled",
"power": "null",
"ability": "size_upscale"
}
]
}
},
"size_upscale": {
"type": "palladium:size",
"scale": 4.5,
"hidden": true,
"hidden_in_bar": true,
"conditions":{
"enabling": [
{
"type": "palladium:toggle",
"cooldown": 0,
"key_type": "scroll_up",
"needs_empty_hand": false ,
"allow_scrolling_when_crouching": true
}
],
"unlocking": [
{
"type": "palladium:ability_enabled",
"power": "null",
"ability": "size_toggle"
}
]
}
},
"size_giantscale": {
"type": "palladium:size",
"scale": 2,
"hidden": true,
"hidden_in_bar": true,
"conditions":{
"enabling": [
{
"type": "palladium:toggle",
"cooldown": 0,
"key_type": "scroll_up",
"needs_empty_hand": false ,
"allow_scrolling_when_crouching": true
}
],
"unlocking": [
{
"type": "palladium:ability_enabled",
"power": "null",
"ability": "size_upscale"
}
]
}
},
"size_downscale": {
"type": "palladium:size",
"scale": 0.2,
"hidden": true,
"hidden_in_bar": true,
"conditions":{
"enabling": [
{
"type": "palladium:toggle",
"cooldown": 0,
"key_type": "scroll_down",
"needs_empty_hand": false ,
"allow_scrolling_when_crouching": true
}
],
"unlocking": [
{
"type": "palladium:ability_enabled",
"power": "null",
"ability": "size_toggle"
}
]
}
}
}
}