#summon projectile with velocity
1 messages · Page 1 of 1 (latest)
im summoning it with an mcfunction, and afaict the summon command in bedrock edition doesnt have a way to add movement with NBT tags
With /summon it won’t have power. It only works if an entity shoots it or you use the spawn entity component in an entity. There probably is other exceptions that I am unaware of though.
i tried this by adding an event to the player entity which adds a component group with "minecraft:spawn_entity", but it doesnt spawn anything or play a sound
i made sure the entity has "is_spawnable": true
nvm, i just didnt set the min, max_wait_time values so they defaulted to 300 and 600
so now the entity spawns, but it still isnt "shot"
it just falls to the ground, even when i set the power to 10
Can you send the projectile component?
"minecraft:projectile": {
"on_hit": {
"impact_damage": {
"damage": 10,
"knockback": false,
"semi_random_diff_damage": false,
"catch_fire": true,
"destroy_on_hit": true
},
"definition_event": {
"affect_projectile": true,
"event_trigger": "minecraft:explode"
},
"hurt_owner": {
"owner_damage": 0,
"ignite": false,
"knockback": false
}
},
"power": 10,
"gravity": 0.00,
"inertia": 1,
"liquid_inertia": 1,
"uncertainty_base": 0,
"uncertainty_multiplier": 0,
"anchor": 1,
"offset": [ 0 , 0, 0 ],
"reflect_on_hurt": false,
"catch_fire": true,
"hit_sound": "block.turtle_egg.break"
},
dont mind the minecraft:explode event trigger, i set fuse_lit to false, i just used it for testing
got it all figured out
how did you do it? I have the same problem @teal rivet ?
you have to spawn the projectile from another entity with the "minecraft:spawn_entity" component
and did you set the "power" in the projectile?
yes
weird
it is very wierd
i cant really think of any issues if you did all that
maybe check the format versions of your files
i had wrong format versions a couple times and that messed things up for me
i did that also hahahaha
lmao
there is a tutorial on bedrock wiki about this
and i even copy pasted it
and yet it just doesnt work
does the projectile entity spawn?
and it just falls down
yes
oh maybe try giving the projectile the "runtime_identifier" of "minecraft:snowball"
did that
oh if it hits the player maybe also give it an offset
check if it works if you give it an x offset of like 2 or so
ok i will try that
i think the collision box might be so big that it collides with the player instantly when it spawns
also, make it "minecraft:snowball" not with a .
hahah no worries
you are a great dude
that kinda stuff is always what you spend hours on
yep
i think the vscode minecraft bedrock extension even autocompletes it with a dot
but its jut not correct lol
yes