#new syntax where to look how it works

1 messages · Page 1 of 1 (latest)

stiff tundra
#

i cant find anmything on the new syntax format

acoustic berryBOT
#

<@&1201956957406109788>

Someone will come and help soon!

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

                        🙇 After a while, hit the Summon Helpers button to ping the helper team. They'll be happy to help you


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

It shows all the changes in the changelog

twilit wedge
#

To get ready made commands and stuff

#

All the things are also in the wiki if you look for "components"

#
still geyser
#

what

#

what exactly did they change

#

what is the new syntax

twilit wedge
still geyser
#

so hes talking about how the nbt structure changed in mobs and blocks because of the components

#

thats not new syntax though

#

phew

#

scared me

blazing valley
#

Yes it is new syntax

still geyser
#

no new syntax

#

yes new nbt structure

#

you still access it with the same command with the same syntax going thru keys like path separating each key with . data get entity @s something.path.separated.by.dots still good old data get with good old sytnax for path just the location of the data elements was changed

#

so its the new structure, not the syntax 😭

stiff tundra
#

if i write it wrong it will say its a syntax error

#

so i find its new syntax

stiff tundra
#

so how would something like this loo

#

k

twilit wedge
# still geyser no new syntax

No, it does come with new syntax, /give @s stone{tag:12} is a syntax error now while /give @s stone[custom_data={tag:12}] was a syntax error before

still geyser
still geyser
stiff tundra
#

Yeah true

stiff tundra
acoustic berryBOT
# acoustic berry <@&1201956957406109788>

<@&935561184806060073> <@&1202694677766348840>

**🙇 Helpers Arise!**

Please note that you still might not immediately get a response since all helpers are human beings and volunteers (and also might be sleeping right now)

noble shore
#

@stiff tundra What is your question?

stiff tundra
#

misode is kinda confusing me on this

noble shore
stiff tundra
#

yeah i saw that i removed it but still didnt work

noble shore
#

then show the new predicate

stiff tundra
#
    "condition": "minecraft:entity_properties",
    "entity": "this",
    "predicate": {
      "slots": {
        "armor.head": {
          "components": {
            "minecraft:custom_data": {"hero":1}
          }
        },
        "armor.chest": {
          "components": {
            "minecraft:custom_data": {"hero":1}
          }
        },
        "armor.legs": {
          "components": {
            "minecraft:custom_data": {"hero":1}
          }
        },
        "armor.feet": {
          "components": {
            "minecraft:custom_data": {"hero":1}
          }
        }
      }
    }
  }
#

also tried this...

#
  "condition": "minecraft:entity_properties",
  "entity": "this",
  "predicate": {
    "equipment": {
      "head": {
        "components": {
          "minecraft:custom_data": {"hero":1}
        }
      },
      "chest": {
        "components": {
          "minecraft:custom_data": {"hero":1}
        }
      },
      "legs": {
        "components": {
          "minecraft:custom_data": {"hero":1}
        }
      },
      "feet": {
        "components": {
          "minecraft:custom_data": {"hero":1}
        }
      }
    }
  }
}
#

hahaha

blazing valley
#

What

stiff tundra
#

nothing

twilit wedge
#

What exactly are you trying to do

#

How does your item look

#

When you data get it

#

The thing misode gave you is correct, just maybe not what you are looking for

stiff tundra
#
give Murkerson minecraft:leather_chestplate[minecraft:custom_data={"hero":1}]
give Murkerson minecraft:leather_leggings[minecraft:custom_data={"hero":1}]
give Murkerson minecraft:leather_boots[minecraft:custom_data={"hero":1}]```
#

this is what im giving myself

still geyser
#

```mcf
??

fallen coveBOT
#
give Murkerson minecraft:leather_helmet[minecraft:custom_data={"hero":1}]
give Murkerson minecraft:leather_chestplate[minecraft:custom_data={"hero":1}]
give Murkerson minecraft:leather_leggings[minecraft:custom_data={"hero":1}]
give Murkerson minecraft:leather_boots[minecraft:custom_data={"hero":1}]
stiff tundra
#

That was for testing to see it that works

#

The normal [custom_data={hero:1}] doesnt work either

acoustic berryBOT
#
🗑️ Recycling Thread

This thread has been inactive for some time, so I'm going to archive it.

If you're still using the thread, just send a message and it'll pop back on the thread list.