#applyKnockback vs applyImpulse?
1 messages · Page 1 of 1 (latest)
Mob and Entity works in different way in native.
you are able to use applyKnockback on Mobs
you are able to use applyImpulse on Actors(Entities)
in script api, they don't distinguish between mobs and entities
is there native documentation anywhere or some way to test what is a mob and what is an entity?
ty
Entity clsss
or just use the typeid of player. I mens there's no other IDs for every player just one 🤷
tho if you are intelligent enough, convert applyImpulse to applyKnockback
isn't anything with an entity file an entity though?
If I understand right players and maybe simulated players are the only things impulse doesn't work on because they aren't "entities" in the script?
how come both apply impulse and apply knockback work on regular entities like creepers though?
then use Player class or player's typeid
Simple fix.
why overthink things too much
i'm trying to figure out why one or the other method doesn't work and in which cases
my code already works
it kinda make sense. Tho I can't give a 100% accurate explanation
you know .setRotation() yes it doesn't work with players, but works on entities
barely
That's not the point rn
I haven't used that method yet.
is jayly's website accurate? I've been using it without issue other than for these couple methods
https://jaylydev.github.io/scriptapi-docs/latest/classes/_minecraft_server.Player.html
if this is the correct official documentation it's missing a ton of methods that do work
https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/minecraft/server/player?view=minecraft-bedrock-stable
jayly s website or Stirante doesn't modify anything, they just get it from official documentation
list down all methods that do work but not in jaylys website
and @warped raft
i meant they weren't in the learn documentation, not jayly's
like the second link only has 15 methods on the player page
i thought the learn page was the official doccumentation
also, some parts aren't descriptive enough that's why this server exists and is testing exist
or channel we can say
Interesting... they disabled inheritance for the microsoft docs
@warped raft do u have 0.1.0 or 1.0.0 microsoft docs
Wdym, documentation for alpha modules (i.e. mojang-minecraft)?
I don’t think it’s worth the effort to document alpha modules at the moment especially v0.x, those APIs have no official docs, no changelog etc.
Gametest alpha module is in my docs (unintentionally) because it doesn’t use the old naming scheme
oh I need it
can u share it?
where is mojang-minecraft module?
I don't have it, and I don't intend to put it on docs.
oh ok