#How to prevent the use of swords

1 messages · Page 1 of 1 (latest)

hollow vine
#

I want to prevent the use of swords until a Stage is hit from the GameStages mod. Is this smth a datapack can do?

warm dirge
#

I'd imagine setting the attack speed to -1 while holding any sword would work

#

Until the stage is reached

#

Idk what mod is that but there is often a way you could detect whatever stages you're after

hollow vine
#

ive tried making the most simple predicate and the game cant see it

#

no errors in log

#

literally my predicate rn
{ "condition": "minecraft:entity_properties", "entity": "this", "predicate": { "equipment": { "mainhand": { "items": "minecraft:beef" } } } }

#

still doesnt show up in "/execute if predicate " tab autocomplete

#

its located in datapacks/datapack_name/data/datapack_name/predicate

#

and its loaded into the world

#

i can set functions but not predicates

#

OMG

#

OMG

#

ITS PREDICATES

#

WITH AN S

#

ARE YOU KIDDING ME

#

im crashing out

warm dirge
#

I think 1.19.something made it so the folder is now called "predicate"

#

rather than "predicates"

crude sluice
#

1.21