how i can modify a entity hitbox ? #920
Unanswered
ADevNamedRobin
asked this question in
Script-related questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, i'm want to find a way to modify the hitbox of scprotect:scp_096 to a square box of 1x1 i tried using a script in servers_scripts but it simply does not work, thanks in advance. (Sorry for my bad English)
i'm using kubeJS 2001.6.5-build 16 forge for 1.20.1
and rhino 2001.2.3-build 6 forge
architectury API 9.2.14
EntityEvents.spawned(event => { let entity = event.getEntity(); if (entity.getType() == 'scprotect:scp_096') { entity.setBoundingBoxWidth(0.5); entity.setBoundingBoxHeight(0.5); } });
Beta Was this translation helpful? Give feedback.
All reactions