1
I am making a datapack for a minigame for me and a few friends, but I have a problem. In my datapack there is a ep:_load function (datapacks/minigamepack/data/ep/functions). But as soon as I put this exact list of commands in my function the game says my function doesn't even exist.
###LOAD function###
##scoreboards##
#timer scoreboards#
scoreboard objectives add mtimer dummy
scoreboard objectives add timer dummy
#fase and player state detector#
scoreboard objectives add teamdet dummy
scoreboard objectives add doinv dummy
#misc scoreboards#
scoreboard objectives add kills playerKillCount`
scoreboard objectives add health health
If I type in the chat /function ep: the ep:_load function and the minecraft load functions do not appear. If I empty the pack en do /reload the function reappears. If I type in the function say hi the function functions correctly and says hi every time I load the game or do /reload.
I really do not know what I am doing wrong plz help.
###LOAD function###
##scoreboards##
#timer scoreboards#
scoreboard objectives add mtimer dummy
scoreboard objectives add timer dummy
#fase and player state detector#
scoreboard objectives add teamdet dummy
scoreboard objectives add doinv dummy
#misc scoreboards#
scoreboard objectives add kills playerKillCount`
scoreboard objectives add health health
If I type in the chat /function ep: the ep:_load function and the minecraft load functions do not appear. If I empty the pack en do /reload the function reappears. If I type in the function say hi the function functions correctly and says hi every time I load the game or do /reload.
I really do not know what I am doing wrong plz help.
5
[deleted]
Try removing the ` in front of playerKillCount.
Hope this helps! :)
New load.mcfunction:
###LOAD function#####scoreboards###timer scoreboards#scoreboard objectives add mtimer dummyscoreboard objectives add timer dummy#fase and player state detector#scoreboard objectives add teamdet dummyscoreboard objectives add doinv dummy#misc scoreboards#scoreboard objectives add kills playerKillCountscoreboard objectives add health healthHope this helps! :)
They could've put the apostrophe as a typo; It is directly next to the ENTER key
Fair enough, but that's actually not an apostrophe, it's a grave accent. Not sure where it's located on some other keyboards, but for me it's located on the top left of the keyboard mapped with the tilde key(~). So I assumed it wasn't a typo as it wasn't anywhere near the enter key which is on the right side of the keyboard. I can definitely see how you would get the two mixed up though as they look very similar. :)
Anyways it very well could be something else, but if it is I think we need more information to work with as the function otherwise works fine. I can only offer help based off of the information I have to work with.
Also using the output log like anonpmc2747568 suggested is a good idea, has helped me many times. :)
Anyways it very well could be something else, but if it is I think we need more information to work with as the function otherwise works fine. I can only offer help based off of the information I have to work with.
Also using the output log like anonpmc2747568 suggested is a good idea, has helped me many times. :)
[deleted]
