IzzelAliz / Arclight

A Bukkit(1.19/1.20) server implementation in modding environment using Mixin. ⚡
GNU General Public License v3.0
1.43k stars 212 forks source link

[1.16.5 Feature] setBoundingBox (custom entity hitbox) #1310

Closed ShahzadMushtaq04 closed 2 months ago

ShahzadMushtaq04 commented 2 months ago

I have confirmed that ...

Arclight version

arclight-1.16.5-1.0.25-SNAPSHOT-aeef36e9

OS & Java versions

Java 17

Plugins and Mods

ItemsAdder, LoneLibs

Description

Hello, I've seen another issue similar to what I am experiencing here: https://github.com/MohistMC/Mohist/issues/2821 , this has been fixed for Mohist, but not here

As from the issue reported on MohistMC: Add the method I mentioned to have support for custom hitbox on entities, I am using items adder and use models created in blockbench and when creating a bone with custom hitbox. Errors appear due to the nonexistence of this method. prevents custom hitbox creation.

Solution: add the Method: void net.minecraft.entity.Entity.setBoundingBox(net.minecraft.util.math.AxisAlignedBB)

Step to reproduce

https://itemsadder.devs.beer/plugin-usage/adding-content/mobs/advanced-method/hitbox

Logs

https://paste.helpch.at/udizeluzah.rb

Server pack link (Optional)

No response

IzzelAliz commented 2 months ago

1.16.5 is no longer being supported. You can still make a PR to fix this though.