Posted November 7, 20204 yr Maybe I'm just going crazy and doing something completely wrong, but I have a simple command set up that should shrink the hitbox of the player by a little bit: @Override public int run(CommandContext<CommandSource> context) throws CommandSyntaxException { ServerPlayerEntity player = context.getSource().asPlayer(); player.setBoundingBox(player.getBoundingBox().shrink(1)); player.sendStatusMessage(new TranslationTextComponent("Size updated."), true); return 0; } This is the code that should be executed when the command is run. The status message is sent and no errors are thrown, but the hitbox remains the same. Anyone know what's going on? Edited November 7, 20204 yr by jstN0body issue solved
November 7, 20204 yr Probably because the bounding box is changed every tick iirc. You should use EntityEvent$Size if you would like to handle that.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.