CCBlueX Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Solved Scripting not working

    ScriptAPI
    4
    4
    84
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      RealFX last edited by

      Hello, i decided to try and make a script, and it does not work.
      Any idea why?

      script.registerModule({
          name: "CurrentCoords",
          category: "Misc",
          description: "Displays Current Coords.",
          tag: "Test",
          settings: {
              myBooleanSetting: Setting.boolean({
                  name: "Print Coords In Chat.",
                  default: true
              })
          }
      }, function(module) {
          module.on("enable", function() {
      		Chat.print("Coords will now be printed.");
      		var xcoor = eventData.getX();
      		var ycoor = eventData.gety();
      		var zcoor = eventData.getz();
      		var formattedmsg = xcoor + "§7 /§f " + ycoor + "§7 /§f " + zcoor;
      		Chat.print("§f[XYZ]: ");
      			
          }
      });
      };
      
      ? CzechHek The_Shadow_Emp 3 Replies Last reply Reply Quote 0
      • ?
        A Former User @RealFX last edited by

        stfw

        1 Reply Last reply Reply Quote 0
        • CzechHek
          CzechHek @RealFX last edited by

          @realfx why don't you ask the logs

          noone seems to know that they even exist it seems

          .minecraft/logs/latest.log

          1 Reply Last reply Reply Quote 0
          • The_Shadow_Emp
            The_Shadow_Emp @RealFX last edited by

            @realfx try to register it bruh, it only register module, not the script itself

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            About
            • Terms of Service
            • Privacy Policy
            • Status
            • Contact Us
            Downloads
            • Releases
            • Source code
            • License
            Docs
            • Tutorials
            • CustomHUD
            • AutoSettings
            • ScriptAPI
            Community
            • Forum
            • Guilded
            • YouTube
            • Twitter
            • D.Tube