The ticks are counting up. But they won't reset @ 1200. What do I do to make this function work? They work if each line is in a chain of command blocks, not as a function.
I feel like this should work, considering multiple commands should be able to run in a function in order...??? Or am I missing something?
The ticks are counting up. But they won't reset @ 1200. What do I do to make this function work? They work if each line is in a chain of command blocks, not as a function.
I feel like this should work, considering multiple commands should be able to run in a function in order...??? Or am I missing something?
I type /reload after every change.
No idea what happened.
Anyways, try this:
replace scoreboard players remove @a[score_ticks_min=1200] ticks 1200
to scoreboard players set @a[score_ticks_min=1200] ticks 0
Ok, so I get why it's not working. It isn't even acknowledging the function as existing. I have uploaded a screenshot showing test:brown_cow function working just fine but the tracker:time not working even after reload.
I am actually taking this up with Mojang bug reports. Apparently I am the only one who cannot get this to work. lol. The Moderator who is helping me was able to get this function working on his own. I have tried rewriting the function from scratch, trying different functions, and even editing the 1 working function and saving it as a new function. Nothing works.
Does not work on a server.
Does not work in single player.
I am actually taking this up with Mojang bug reports. Apparently I am the only one who cannot get this to work. lol. The Moderator who is helping me was able to get this function working on his own. I have tried rewriting the function from scratch, trying different functions, and even editing the 1 working function and saving it as a new function. Nothing works.
Does not work on a server.
Does not work in single player.
Only the test:brown_cow function works.
So it's probably wrong directory.
Can you tell us the location of your .mcfunction file?
Remember to hide your name.
For example, one of my function is at:
C:\Users\XXX\AppData\Roaming\.minecraft\saves\§a§oJCMG1.1§r\data\functions\bananas\b.mcfunction
The Meaning of Life, the Universe, and Everything.
Location:
Playing Minecraft
Join Date:
3/4/2016
Posts:
86
Member Details
It could be that it is not recognized as a .Mcfunction because its(the ".mcfunction") capitalized I might be totally wrong but worth a shot.
Rollback Post to RevisionRollBack
GENERATION 9006: The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment
If Facebook, Myspace, and Twitter were all destroyed, 90% of teens would
go insane. If you're one of the 10% that would be laughing at them,
copy & paste this into your signature and hope it happens.
This got resolved. It had to do with converting from one type of encoding to another. lol
Basically I accidentally .ANSI'd instead of .UTF-8'd. Notepad++ had a "Convert to:" option which is how everything got fixed.
I had read one should avoid using "UTF-8 with BOM", so I figured I would share that tidbit.
I wrote my .mcfunction file for test:brown_cow properly and encoded to correct format. Tried to re-use that SAME file to save with the same encoding again but Notepad only defaults to .ANSI.
Notepad++ is great for writing Functions because it retains previous encoding use!
I am still getting the hang of Functions but have so far eliminated 80% of my command blocks from my Vanilla server! I have a single chain of 30 blocks that I was able to reduce to 15 blocks using Functions as well! Need to figure out how to solve problems with porting certain Conditional Chain blocks to my function.
But that is for my next thread... lol.
Thanks all for trying to help me figure it out! I want to run my server without command blocks involved. Or at least the absolute minimum!
This got resolved. It had to do with converting from one type of encoding to another. lol
Basically I accidentally .ANSI'd instead of .UTF-8'd. Notepad++ had a "Convert to:" option which is how everything got fixed.
I had read one should avoid using "UTF-8 with BOM", so I figured I would share that tidbit.
I wrote my .mcfunction file for test:brown_cow properly and encoded to correct format. Tried to re-use that SAME file to save with the same encoding again but Notepad only defaults to .ANSI.
Notepad++ is great for writing Functions because it retains previous encoding use!
I am still getting the hang of Functions but have so far eliminated 80% of my command blocks from my Vanilla server! I have a single chain of 30 blocks that I was able to reduce to 15 blocks using Functions as well! Need to figure out how to solve problems with porting certain Conditional Chain blocks to my function.
But that is for my next thread... lol.
Thanks all for trying to help me figure it out! I want to run my server without command blocks involved. Or at least the absolute minimum!
Conditional commands are basically commands that run if the previous one is running successfully.
If that conditional command is meant to be running 1 time per tick, just add the players a scoreboard tag.
Otherwise, adding score will be fine as well.
Conditional commands are basically commands that run if the previous one is running successfully.
If that conditional command is meant to be running 1 time per tick, just add the players a scoreboard tag.
Otherwise, adding score will be fine as well.
I never did end up writing my post about that. lol. It's a weird command chain that used to be 34 blocks in size, but is now 19. Turned most of it into functions except the conditional blocks. Trying to port all command blocks into functions and have successfully done so for 90% of my servers commands... except that issue. lol Anyways, I will make a proper posting for it!
Ok, so in my server /functions/tracker/time.MCFUNCTION file location I have this:
----------------------------------------------------------------------------------------
scoreboard players add @a[score_ticks_min=1200] Minutes 1
scoreboard players remove @a[score_ticks_min=1200] ticks 1200
scoreboard players add @a[score_Minutes_min=60] Hours 1
scoreboard players remove @a[score_Minutes_min=60] Minutes 60
scoreboard players add @a[score_Hours_min=24] Days 1
scoreboard players remove @a[score_Hours_min=24] Hours 24
scoreboard players add @a[score_Days_min=30] Months 1
scoreboard players remove @a[score_Days_min=30] Days 30
scoreboard players add @a[score_Months_min=12] Years 1
scoreboard players remove @a[score_Months_min=12] Months 12
----------------------------------------------------------------------------------------
I set /gamerule gameLoopFunction tracker:time
The ticks are counting up. But they won't reset @ 1200. What do I do to make this function work? They work if each line is in a chain of command blocks, not as a function.
I feel like this should work, considering multiple commands should be able to run in a function in order...??? Or am I missing something?
I type /reload after every change.
No idea what happened.
Anyways, try this:
replace
scoreboard players remove @a[score_ticks_min=1200] ticks 1200
to
scoreboard players set @a[score_ticks_min=1200] ticks 0
In addition, remember, 1.12-
I tried changing remove to set to no avail. Remove works just fine in command blocks for this feature.
What am I remembering about 1.12? I am running 1.12.2
Ok, so I get why it's not working. It isn't even acknowledging the function as existing. I have uploaded a screenshot showing test:brown_cow function working just fine but the tracker:time not working even after reload.
I am actually taking this up with Mojang bug reports. Apparently I am the only one who cannot get this to work. lol. The Moderator who is helping me was able to get this function working on his own. I have tried rewriting the function from scratch, trying different functions, and even editing the 1 working function and saving it as a new function. Nothing works.
Does not work on a server.
Does not work in single player.
Only the test:brown_cow function works.
So it's probably wrong directory.
Can you tell us the location of your .mcfunction file?
Remember to hide your name.
For example, one of my function is at:
C:\Users\XXX\AppData\Roaming\.minecraft\saves\§a§oJCMG1.1§r\data\functions\bananas\b.mcfunction
It could be that it is not recognized as a .Mcfunction because its(the ".mcfunction") capitalized I might be totally wrong but worth a shot.
GENERATION 9006: The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment
If Facebook, Myspace, and Twitter were all destroyed, 90% of teens would
go insane. If you're one of the 10% that would be laughing at them,
copy & paste this into your signature and hope it happens.
This got resolved. It had to do with converting from one type of encoding to another. lol
Basically I accidentally .ANSI'd instead of .UTF-8'd. Notepad++ had a "Convert to:" option which is how everything got fixed.
I had read one should avoid using "UTF-8 with BOM", so I figured I would share that tidbit.
I wrote my .mcfunction file for test:brown_cow properly and encoded to correct format. Tried to re-use that SAME file to save with the same encoding again but Notepad only defaults to .ANSI.
Notepad++ is great for writing Functions because it retains previous encoding use!
I am still getting the hang of Functions but have so far eliminated 80% of my command blocks from my Vanilla server! I have a single chain of 30 blocks that I was able to reduce to 15 blocks using Functions as well! Need to figure out how to solve problems with porting certain Conditional Chain blocks to my function.
But that is for my next thread... lol.
Thanks all for trying to help me figure it out! I want to run my server without command blocks involved. Or at least the absolute minimum!
Conditional commands are basically commands that run if the previous one is running successfully.
If that conditional command is meant to be running 1 time per tick, just add the players a scoreboard tag.
Otherwise, adding score will be fine as well.
I never did end up writing my post about that. lol. It's a weird command chain that used to be 34 blocks in size, but is now 19. Turned most of it into functions except the conditional blocks. Trying to port all command blocks into functions and have successfully done so for 90% of my servers commands... except that issue. lol Anyways, I will make a proper posting for it!