1

Datapack help: mcfunction disappearing

SenpaiNr1 5/21/21 11:59 am
338
5/30/2021 12:22 am
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.
Posted by
SenpaiNr1
Level 1 : New Miner
0

  Have something to say?

JoinSign in

5

anonpmc2935992
05/30/2021 12:22 am
Level 7 : Apprentice Miner
[deleted]
1
SUPERIONtheKnight
05/21/2021 12:32 pm
Level 30 : Artisan System
history
Try removing the ` in front of playerKillCount.
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 health

Hope this helps! :)
1
HoboMaggot
05/21/2021 11:00 pm
Level 55 : Grandmaster Blob
They could've put the apostrophe as a typo; It is directly next to the ENTER key
1
SUPERIONtheKnight
05/21/2021 11:55 pm
Level 30 : Artisan System
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. :)
2
anonpmc2747568
05/21/2021 12:04 pm
Level 13 : Journeyman Miner
[deleted]
3

Welcome