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

Improving the activation of player interactions on world #16

Open
BenCheung0422 opened this issue Dec 15, 2024 · 0 comments · May be fixed by #7
Open

Improving the activation of player interactions on world #16

BenCheung0422 opened this issue Dec 15, 2024 · 0 comments · May be fixed by #7

Comments

@BenCheung0422
Copy link
Member

Original: MinicraftPlus/minicraft-plus-revived#435

Background

The way of interaction and damaging with tiles is limited. There might be potential problems with the separated handlers on separated tiles with separated tools and/or items. They are standardized, on tile breaking, interacting (also handled with breaking) and with entities. Interaction should only be "interaction" (without direct damaging or breaking). Damaging and breaking should be handled as similar as the way of as entities. The interacting keys are also different from entities to tiles.
For example, doors can only be "interacted" only when the hand is empty.

Suggestions

Hurt method in tiles should be handled with damage and item. Interact method in tiles should not be expected to direct damage or destroy the tiles. The keys of interact and damage/attack should be completely separated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment