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

Add two interaction related events #72

Merged
merged 5 commits into from
Jan 12, 2023

Conversation

bl4ckscor3
Copy link
Contributor

The first event simply disables the use key, making players unable to place blocks, use items, open chests, etc.
The second event automatically holds down the use key, resulting in players constantly placing blocks, using items, and opening chests etc. I included some code to make it possible for players to move away from e.g. a chest after they close it, as otherwise the event would cause the chest to just be reopened the next tick making the player stuck in the chest until the event ends. I am unsure about the displayed name for this event, and open for suggestions.

@juancarloscp52
Copy link
Owner

juancarloscp52 commented Jan 12, 2023

Yeah, naming events is tricky sometimes. In this case I'd probably use "No interactions allowed" in order make it similar with "I can't stop interacting!"

bl4ckscor3 and others added 3 commits January 12, 2023 18:04
# Conflicts:
#	src/main/java/me/juancarloscp52/entropy/events/EventRegistry.java
#	src/main/resources/assets/entropy/lang/de_at.json
#	src/main/resources/assets/entropy/lang/de_ch.json
#	src/main/resources/assets/entropy/lang/de_de.json
#	src/main/resources/assets/entropy/lang/en_gb.json
#	src/main/resources/assets/entropy/lang/en_us.json
#	src/main/resources/assets/entropy/lang/es_ar.json
#	src/main/resources/assets/entropy/lang/es_cl.json
#	src/main/resources/assets/entropy/lang/es_ec.json
#	src/main/resources/assets/entropy/lang/es_es.json
#	src/main/resources/assets/entropy/lang/es_mx.json
#	src/main/resources/assets/entropy/lang/es_uy.json
#	src/main/resources/assets/entropy/lang/es_ve.json
@juancarloscp52 juancarloscp52 merged commit ad4b6e1 into juancarloscp52:1.19.3 Jan 12, 2023
@bl4ckscor3 bl4ckscor3 deleted the interact-events branch January 12, 2023 17:51
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.

2 participants