SHARE
TWEET

Untitled

a guest Feb 25th, 2020 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let sys = server.registerSystem(0, 0);
  2. server.log("hello");
  3.  
  4. sys.initialize = function () {
  5.     sys.listenForEvent("minecraft:player_destroyed_block", function (eventData) {
  6.         server.log("test");
  7.         let commandEventData = sys.createEventData("minecraft:execute_command");
  8.         let commandEventData2 = sys.createEventData("minecraft:display_chat_event");
  9.        
  10.         commandEventData.data.command = "title @a title §dHello World !";
  11.         commandEventData2.data.message = "helloworld";
  12.  
  13.         sys.broadcastEvent("minecraft:execute_command", commandEventData);
  14.         sys.broadcastEvent("minecraft:display_chat_event", commandEventData2);
  15.     })
  16. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top