I am also witnessing this issue, in v1.16.40.
Steps to Reproduce:
Create a behaviour pack with a server side script:{{}}
let serverSystem = server.registerSystem(0, 0); serverSystem.debug = function (msg) { let BroadcastEventData = serverSystem.createEventData("minecraft:display_chat_event"); BroadcastEventData.data.message = msg; serverSystem.broadcastEvent("minecraft:display_chat_event", BroadcastEventData); }; serverSystem.initialize = function() { serverSystem.listenForEvent("minecraft:block_interacted_with", (eventData) => serverSystem.checkBlock(eventData)); }; serverSystem.checkBlock = function (eventData) { const { block_position } = eventData.data; const { x, y, z } = block_position; const tickingArea = this.getTickingArea(); const block = this.getBlock(tickingArea, x, y, z); serverSystem.debug(JSON.stringify(block)); }; serverSystem.getTickingArea = function () { let tickingAreas = this.getComponent(server.level, 'minecraft:ticking_areas'); return tickingAreas.data['custom']; };
Install your behaviour pack
Create a Creative world with experimental gameplay and cheats turned on.
Enable your behaviour pack on your newly-created world
Enter the world
Create a ticking area:
/tickingarea add circle ~ ~ ~ 1 custom
Add a button of any kind to the ground immediately in front of you
Interact with the button
Observed Results:
The text
<ServerScript> null
appears in the chat log.
Expected Results:
**A JSON representation of the block's properties should appear in the chat log.
I am also witnessing this issue, in v1.16.40.
Steps to Reproduce:
Create a behaviour pack with a server side script:
{{}}
Install your behaviour pack
Create a Creative world with experimental gameplay and cheats turned on.
Enable your behaviour pack on your newly-created world
Enter the world
Create a ticking area:
Add a button of any kind to the ground immediately in front of you
Interact with the button
Observed Results:
The text
appears in the chat log.
Expected Results:
**A JSON representation of the block's properties should appear in the chat log.