#Toggleable elements
1 messages · Page 1 of 1 (latest)
Use bindings
Bindings, and a toggle with viewability ID.
there is a tutorial similar to it but instead of toggle it is for slider i hope you take it as reference. https://youtu.be/80u9OonAxHw
This tutorial shows how to easily add a slider and make it functional in Minecraft Bedrock.
Github: @LeGend077
Discord: LeGend#1687
Music provided by NoCopyrightSounds (ncs.io).
Songs: Wiguez & borne - Pressure (ft. imallryt)
CITYWLKR & Voicians - Consume Me
#minecraft
#minecrafttutorial
?bindings
ouh thanks mate
this is confusing, im trying to make xp bar visibility toggleable using bindings. but it always shows regardless if the toggle is on
the toggle state also wont stay, if i toggled it on and i leave the screen (settings screen, for this) and see it again, the toggle went back to off
the code i put in the xp bar code (binding)
{
"binding_type":"view",
"source_control_name":"togglename",
"source_property_name":"toggle_state",
"target_property_name":"#visible"
}
the toggle code
{
"togglename@settings_common.option_toggle":{
"$option_label":"Show experience bar",
"$option_binding_name":"#togglename",
"$option_enabled_binding_name":"#togglename_enabled",
"$toggle_name":"togglename"
}
}
sorry for flat code im lazy to copy paste it from my desktop (this is sent from phone)
ping me if you got a solution