#✅ | Add a value to the placeholder
1 messages · Page 1 of 1 (latest)
Hi! Please first select which type of question you want to ask:
- "Normal Question" is enough for most questions. If you are unsure, you should choose this mode. It provides quick and accurate answers to your questions and problems.
- "Complex Task" is for very complex questions and multi-step tasks. For example, questions involving complex action script, requirement, or placeholder logic. Normal users will almost never need this. Getting answers takes much longer here.
It is not possible for anybody to send messages in this thread before selecting a mode.
Selected mode: 💬 Normal Question
Yep, you can wrap it in the calc placeholder and add + 1 there 😄
Use this:
{"placeholder":"calc","values":{"decimal":"false","expression":"{"placeholder":"nbt_data_get_server","values":{"source_type":"entity","entity_selector":"@s","nbt_path":"SelectedItem.tag.GunCurrentAmmoCount","scale":"1.0","return_type":"value"}} + 1"}}
A couple quick notes:
decimal":"false"is best if you want a whole number result- If you want decimals instead, set it to
true - Your original placeholder stays nested inside the calculator, no escaping needed 👍
If you want, I can also show you how to use that inside a button action or variable setting 🛠️
✅ | Add a value to the placeholder