This is definitely a valid issue as refenced by how many times this issue has been repeatedly posted then subsequently shutdown (MCPE-96911, MCPE-92640, MCPE-92640, & this one).
Format stuff
Steps to Reproduce:
1. Use code as posted bellow in server.js in behaviorpack
var serverSystem = server.registerSystem(0, 0);
serverSystem.initialize = function () {
serverSystem.listenForEvent("minecraft:block_interacted_with", eventData => {
sendMessage("test");
})
}
function sendMessage(message) {
let chatEventData = serverSystem.createEventData("minecraft:display_chat_event");
chatEventData.data.message = message;
serverSystem.broadcastEvent("minecraft:display_chat_event", chatEventData);
}
2. Add pack to world
3. Click non interactive block with empty hand / tool
Observed Results: Nothing happens aka nothing is displayed in chat. Interestingly this works with interactive blocks like chests however didn't work with a crafting table.
Expected Results: It should print "test" as a message in chat
This is definitely a valid issue as refenced by how many times this issue has been repeatedly posted then subsequently shutdown (MCPE-96911, MCPE-92640, MCPE-92640, & this one).
Format stuff
Steps to Reproduce:
1. Use code as posted bellow in server.js in behaviorpack
2. Add pack to world
3. Click non interactive block with empty hand / tool
Observed Results:
Nothing happens aka nothing is displayed in chat. Interestingly this works with interactive blocks like chests however didn't work with a crafting table.
Expected Results:
It should print "test" as a message in chat