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

Chatbox event "chat" won't work #709

Closed
KantenDestroyer opened this issue Feb 2, 2025 · 2 comments
Closed

Chatbox event "chat" won't work #709

KantenDestroyer opened this issue Feb 2, 2025 · 2 comments
Labels
bug Something isn't working Fixed/Added in dev
Milestone

Comments

@KantenDestroyer
Copy link

Describe

If you want to catch the messages in chat with a computer, it won't work.
The event from Chatbox don't work, but the event of the Player Detector work, i took a Video.
The code of Chatbox and Player Detector are similar.
Chatbox pastebin :

while true do
    local event, username, message, id, hidden = os.pullEvent("chat")
    print("event: ".. event)
    print("username: ".. username)
    print("message; ".. message)
    print("uuid: ".. id)
    print("isHidden: ".. hidden)
end

PlayerDetector pastebin :

while true do
    local event, username, device = os.pullEvent("playerClick")
    print("event: ".. event)
    print("name: "..username)
    print("device: ".. device)
end

Mod detail:
Image
Modloader details:
Image
Video:

TVTmCZU.-.Imgur.mp4

If i did something wrong, or i were stupid. Please tell me!

Steps to reproduce

1.place a Computer with a PlayerDetector Block and Chatbox Block (Look video).
2.for Chatbox download file and execute and test: pastebin get Ed5QpES5 chatbox.lua pastebin
3.for PlayerDetector download file and execute and test: pastebin get B8BVPNuD detector.lua pastebin

Multiplayer?

Yes

Version

Own compiled build.

Minecraft, Forge and maybe other related mods versions

NeoForge 21.1.115 Minecraft 1.21.1

Screenshots or Videos

https://imgur.com/a/GUGgnVt

Crashlog/log

No response

@KantenDestroyer KantenDestroyer added bug Something isn't working needs review Needs review from an Contributor labels Feb 2, 2025
@SirEndii
Copy link
Member

SirEndii commented Feb 2, 2025

Can you test the chat event in single player?

@SirEndii SirEndii added this to the 0.7.x milestone Feb 2, 2025
@KantenDestroyer
Copy link
Author

KantenDestroyer commented Feb 2, 2025

In single player it does work, on a server not.
I have checked the configs, everything is on default settings and i changed nothing.

Image

@SirEndii SirEndii moved this to To Be Released in Advanced Peripherals Feb 2, 2025
@SirEndii SirEndii added Fixed/Added in dev and removed needs review Needs review from an Contributor labels Feb 2, 2025
SirEndii added a commit that referenced this issue Feb 2, 2025
…. A few of them are chat box events, player detector events, villager trades and villager structures
@SirEndii SirEndii moved this from To Be Released to Done in Advanced Peripherals Feb 3, 2025
@SirEndii SirEndii closed this as completed Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Fixed/Added in dev
Projects
Development

No branches or pull requests

2 participants