Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Hitbox (Marker) Flag #5

Open
wants to merge 1 commit into
base: 1.19
Choose a base branch
from
Open

Conversation

BisUmTo
Copy link

@BisUmTo BisUmTo commented Nov 5, 2022

Feature changes

Added a flag to remove the Hitbox from statue. (A.K.A. Marker NBT flag)

This allows to place blocks inside the statue, disable pistons pushing it, (also removing interagibility and gravity).

Dev info

To allow the interaction while sneaking, I redirected some "ProjectileUtil" static function used only during look-tracing.

I didn't test the forge version 😥

@@ -15,6 +16,9 @@ public interface ArmorStandAccessor {
@Accessor
NonNullList<ItemStack> getHandItems();

@Invoker("getDimensionsMarker")
EntityDimensions getArmorstandDimensions(boolean marker);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it is better to use the "call" prefix to be consistent... 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant