bridge-core / bridge.

Minecraft Add-on Editor | We strive to provide the best development experience possible
https://bridge-core.github.io
GNU General Public License v3.0
320 stars 166 forks source link

Functions and game rules: Education Edition #426

Open teacher45 opened 1 year ago

teacher45 commented 1 year ago

Summary I am running a function that is supposed to change the game rule settings like weather cycle to off, pvp off, commands off etc. And when loaded, minecraft will give me a message stating behavior pack cannot be loaded, or when i search for the function with /function in game the created function does not populate.

Also in bridge v2 what does the Blue T next to the project name represent?

To Reproduce Steps to reproduce the behavior:

  1. Go to 'function, type in the game rules,
  2. Click on 'save.'
  3. Scroll down to '....'
  4. Observe result

Observed behavior See above Expected behavior Functions should populate atfter entering /function in game

Platform (please complete the following information):

Additional context If i make another function that clears ender pearl, or invisibility postions, those functions will activate and will populate with the/function command

To make a function run only once and then terminate, as is needed when altering gamrules, do i need to leave the function out of the "values" on tick.json file?

solvedDev commented 1 year ago

Are you using bridge. v1 or v2 to create the function?

FYI: You should not list functions which should be manually run within the tick.json file as that will run your function every game tick (https://wiki.bedrock.dev/commands/mcfunction.html#running-functions-through-tick-json)

teacher45 commented 1 year ago

Hello,

Thank you for your reply, I am using v2 here are some screenshots of the setup. Something else I noticed is the icon of the world turned grayscale after one of the test usages I did.

On Mon, Jul 25, 2022 at 3:29 PM solvedDev @.***> wrote:

Are you using bridge. v1 or v2 to create the function?

FYI: You should not list functions which should be manually run within the tick.json file as that will run your function every game tick ( https://wiki.bedrock.dev/commands/mcfunction.html#running-functions-through-tick-json )

— Reply to this email directly, view it on GitHub https://github.com/bridge-core/bridge./issues/426#issuecomment-1194523143, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATNYUW4GUQTBRQSEKMCBRETVV3TK7ANCNFSM54QMLRHA . You are receiving this because you authored the thread.Message ID: @.***>