1
Need help with attributes
I was trying to make low gravity boots and came up with this piece of code:
it results in an error making entire item_modifier unusable
EDIT: I GOT ITTTT
i just had to add all the array components for it to work. Final code looks like this:
{
"function": "set_attributes",
"modifiers": [
{
"attribute": "minecraft:generic.gravity",
"amount": 0.027,
"operation": "add_value",
"slot": "feet"
}
]
}it results in an error making entire item_modifier unusable
EDIT: I GOT ITTTT
i just had to add all the array components for it to work. Final code looks like this:
{
"function": "set_attributes",
"modifiers": [
{
"attribute"; "minecraft:generic.gravity",
"operation": "add_value",
"amount": -0.04,
"operation": "add_value",
"id": "gravity",
"slot": "feet"
}
]
}
also idk why but it must be full minecraft:genetic.gravity in "attribute", but gravity only in "id" is enough
3
1. Not "attribute" but "type" instead
2. Double "operation" tag
2. Double "operation" tag
Cant you just use smth like mcstacker and modify the code a little bit from the command to your code
no.
