#shoot in event entity

1 messages · Page 1 of 1 (latest)

edgy solstice
#

I migrated the mod to the new version (from 1.21.2 to 1.21.92) and ran into a problem: shooting with the entity in events doesn't work. When I used the item, it shot a water shark. Does shooting work on 92? How can it be fixed and replaced?

edgy solstice
#

@paper coral

#

help pls

edgy solstice
#

@heady saddle

paper coral
edgy solstice
#

im fool

paper coral
#

It's fine

#

But there's no such thing as item events anymore
Events haven't existed for almost 2 years

#

You'll need to switch to custom components or regular scripting
Custom components is the more recommended option and is a lot more beginner friendly
Both are scripting, by the way, one is just easier

violet surgeBOT
#
HCF Removal and Custom Components

The Holiday Creator Features experimental toggle has been removed. Along with it includes JSON block and item events. This functionality has been replaced with custom components.

Please take a look at the following links to learn more about custom components:

Bedrock Wiki

MS Docs

edgy solstice
#

but if you can suggest an analogue of shoot, I will be grateful.

paper coral
#

You'll want to use the projectile.shoot() scripting method
You can summon the projectile entity then use the method to fire it

#

There are a lot of projectile scripts on this server, (a bunch even came from me), so you can study those to get the hang of how it works and ask any questions

edgy solstice
#

thank you. if I have any questions, I will write here.

paper coral
#

No problem

edgy solstice
paper coral
#

Do you have any content logs?

edgy solstice
# paper coral Do you have any content logs?

yes , but there are too many errors. I saw something related to CustomSkin, in general, I'm sure it's something in the addon, something that disables the outer layer is written, I just thought you knew where it might be.

edgy solstice
#

so