#✅ | Specific item in specific slot requirement
1 messages · Page 1 of 1 (latest)
Hi! 👋 Please first click the button below to start this support ticket.
⚠️ It is not possible for anybody to send messages in this ticket before it has been started, so you need to click the button for others to be able to help/answer you.
Not a dedicated one, no 👀
The built-in requirement closest to this is Is Inventory Slot Filled, but that only checks whether the slot has something in it, not which item.
This could be related to Filled condition not updated correctly when dropping hotbar items if you’re doing slot-based checks and the result seems wrong.
For an exact item check, the docs-backed workaround is:
- Read the slot with the
slot_itemplaceholder
Example:{"placeholder":"slot_item","values":{"slot":"0"}} - Store that result in a FancyMenu variable with
Set Variable Value - Compare the variable with
Is Variable Value
Example idea:
- Action:
Set Variable Value→my_slot:{"placeholder":"slot_item","values":{"slot":"0"}} - Requirement:
Is Variable Value→my_slot:minecraft:diamond_sword
If you want, I can write the exact setup for a hotbar slot or a normal inventory slot 🧭
Where is the Set Variable Value option?
It’s an action, not a requirement 🧩
Where to find it:
- Right-click the button / slider / ticker
- Click Manage Action Script
- Add a new action
- Choose Set Variable Value (FM Variable)
You can also do it from:
- Menu bar → Customization → Variables → Manage Variables
- Select a variable
- Click Set Value
If you want, I can show you the exact setup for storing a slot item into a variable too.
How would I make an image appear when there is a specific item in a specific slot.
Yes, you can do it with a small combo of a Ticker, a variable, and a loading requirement 🧭
How to set it up:
- Add a
Tickerelement - Give it an action script with:
Set Variable Value (FM Variable)- Example value:
slot_item_0:{"placeholder":"slot_item","values":{"slot":"0"}}
- On your image element, add a loading requirement:
Is Variable Value (FM Variable)- Check for:
slot_item_0:minecraft:diamond_sword
What this does:
- The ticker keeps updating the variable with whatever item is in slot
0 - The image only shows when that slot contains
minecraft:diamond_sword
Notes:
- Inventory slot numbers are
0-35 - Hotbar slots are
0-8
If you want, I can write the exact setup for:
- a hotbar slot
- a normal inventory slot
- checking for several possible items
Is there a need for a variable name in the requirements? Cause it does not seem to work.
Yes, the variable name is required in the requirement value 🧭
Use this format:
variable_name:expected_value
So for your slot item example, it should be something like:
slot_item_0:minecraft:diamond_sword
A few important checks:
- The variable must be set first by an action, like a
Ticker - The value must match the item’s full ID
- The slot number must be correct (
0-8for hotbar,0-35for inventory)
If it still doesn’t work, the most likely problem is that the variable is not being updated the way you expect. If you want, send me:
- the exact slot number
- the exact item ID
- the exact action/requirement values you entered
Then I can help you spot the mistake quickly 🔍
✅ | Specific item in specific slot requirement
This support thread has been marked as solved by @violet sage.
The AI helper is now disabled.