#set_property
1 messages Ā· Page 1 of 1 (latest)
I fire this event and the log says that I don't have the property
did you initialize the property using properties yet?
also use ``` so that the code text can be read easily
{
"filters": {"test":"int_property", "subject":"other", "domain":"blc:power", "value":1, "operator":"=="},
"add": {
"component_groups": [ "blc:power_1" ]
}
}```
I want this filter to fire the event
but it's not working
?
I want to make an arrow that adds components according to the value of the player's "power" property
using entity properties, correct?
yes
let me search for this one...
I tested several different shots on the arrow and they didn't work
"property:number_range_example":{
"values":{
"min":0,
"max":100
}
},
"property:number_enum_example":{
"values":[
1,
2
]
},
"property:string_enum_example":{
"values":[
"first",
"second",
"third"
]
},
"property:boolean_enum_example":{
"values":[
true,
false
]
}
}```
?entity properties
Entities can use properties to store independent values-
minecraft:variant is no longer required!
https://wiki.bedrock.dev/concepts/entity-properties
this is confusing
i just want the property to have a value
you only need to initialize the properties first
"blc:power": {
"values": {
"min": 0,
"max": 1
}
}
}```
okay I'll try
what shot do i use?
I give up, this shit doesn't work
help me...
maybe they changed the entity properties, that's why the documentation doesn't work
or either we are doing it wrong
for now just rely on variant
š
help me?
In bridge, the properties are put in the entity's description
"your:property": {
"type": "int",
"range": [0 ,1]
}
}```
and then outside `description`, use `permutations` to make the entity have a certain component depending on the entity's condition
This is experimental and may not work properly though
@gritty birchwhy isn't it working?
⢠You misspelled properties
⢠You need to define the type of the property
⢠range: [], not value
⢠query.actor_property should be query.property
⢠set_actor_property should be set_property
I suggest you don't follow the guides in wiki.dev for now
because it's outdated
okay
and now?
the log said that the entity does not have the properties
"properties": {
"beta:scale_property": {
"client_sync" : false,
"range": [1 ,5],
"default": 1
}
}
it was spelled wrong but it's not working
@gritty birch can you fix the file for me? please
you forgot the type
add "type": "int"
okay
@gritty birchthank you so much bro! it's working, I've been looking for help for a while, thanks a lot, love you bro
š
š š
How do I set the property to be equal to a scoreboard?
"blc:power": "query.scoreboard('power')"
}```
this is not working, value is being 5 always
"properties": {
"blc:power": {
"type": "int",
"client_sync" : false,
"range": [1 ,5],
"default": 1
}
}```
I'm using animation controller to identify the property value "query.property('blc:power') == 5"
even changing the score value it still runs
"permutations" not working in player.json?
I used it correctly as well as the previous entity and the "permutations" are not working
I'm triggering the event "beta:interact" by command
"minecraft:entity_spawned": {
"sequence": [
{
"filters": {"test":"int_property", "subject":"other", "domain":"beta:scale_property", "value":5, "operator":"=="},
"add": {
"component_groups": [ "blc:power_5" ]
}
},
{
"filters": {"test":"int_property", "subject":"other", "domain":"beta:scale_property", "value":3, "operator":"=="},
"add": {
"component_groups": [ "blc:power_3" ]
}
}
]
},```
I put this in the arrow and it is not changing its components according to the value of the player's property, what do I do?
š„²
arrows and projectiles are things i have yet known how to do, so i can't really help you with this one