#Advancement (1.20.1)

1 messages · Page 1 of 1 (latest)

safe warren
#

{
"criteria": {
"lightning": {
"trigger": "minecraft:using_item",
"conditions": {
"item": {
"items": [
"minecraft:warped_fungus_on_a_stick"
],
"nbt": "{lightning:1b}"
}
}
}
},
"requirements": [],
"rewards": {
"function": "relicsmp:lightning"
}
}

Why is isn't working

slate tuskBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 If nobody has answered you by <t:1745578762:t>, feel free to use the Summon Helpers button to ping our helper team.

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

stark narwhal
#

I don't think WFoaS triggers the Using Item criteria, because it's not a continuous use

fiery kayak
safe warren
fiery kayak
safe warren
#

I cannot use the nbt=SelectedItem

#

(1.20.1)

fiery kayak
#

Oh, it's 1.20.1. you can use a predicate, just like in advancement

safe warren
#

@fiery kayak
{
"condition": "minecraft:match_tool",
"predicate": {
"items": [
"minecraft:warped_fungus"
],
"nbt": "{stormcallers:1b}"
}
}
Is it correct?

fiery kayak
#

No, you need to check the mainhand. and why "warped_fungus"?

safe warren
fiery kayak
safe warren
#

Ok

safe warren
# fiery kayak entity_properties > equipment > mainhand

What about this
{
"condition": "minecraft:entity_properties",
"name": "",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"items": [
"minecraft:warped_fungus_on_a_stick"
],
"nbt": "{stormcallers:1b}"
}
}
}
}

slate tuskBOT
#
Question Closed

Your question, #1365273471248109568 (Advancement (1.20.1)), was resolved!

Original Message

#1365273471248109568 message

Duration open

2d23h19m

lone slateBOT
#
# Minecraft Resource Pack folder structure
# Last updated: Jul 1, 2024

.
├── pack.mcmeta
├── pack.png
└── assets    
    ├── icons    
    ├── minecraft
    │   ├── sounds.json  
    │   ├── atlases
    │   ├── blockstates    
    │   ├── font    
    │   ├── icons    
    │   ├── lang    
    │   ├── models    
    │   ├── particles      
    │   ├── shaders    
    │   ├── sounds    
    │   ├── texts
    |   ├── textures
    │   └── gpu_warnlist.json        
    └── realms        
        ├── lang        
        └── textures