#tick.mcfunction not recognised

1 messages · Page 1 of 1 (latest)

severe sage
#

Hi! I don't know a thing about datapacks tbh (i know commads tho) and i'm trying to update a briliant datapack i found to 1.21 (as it is 1.20 only and I would like to run it on a server for my friends). I've read the wiki to update it but it still doesn't work. I think the issue is that the tick.mcfunction is not registered or running. Can someone help?

frail vortexBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 If nobody has answered you by <t:1735912101:t>, feel free to use the Summon Helpers button to ping our helper team.

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

mental canyon
#

In the Minecraft namespace there should be a tag folder, in there should be a tick.json, please send that

severe sage
#

okay 1 second: ```py
{
"values":[
"custom_ender_dragon:tick"
]
}

filename: 

minecraft/tags/function/tick.json```

mental canyon
#

Ok and what is the namespace of the datapack?

severe sage
#

custom_ender_dragon i think

#

i could send you a directory tree of the datapack?

mental canyon
#

Sure

severe sage
#

have to put it on pastebin 1 sec

mental canyon
#

Alr

severe sage
fossil fiber
#

tick.mcfunction needs to be directly in the custom_ender_dragon/function/ folder

mental canyon
#

I can't find the tick function

severe sage
#

just to test something

mental canyon
#

U should change it to be the same as tick.json

severe sage
#
/function custom_ender_dragon:init

that is recognised by minecraft

/function custom_ender_dragon:tick

this isn't

i changed the name temporarily to check if, for some reason the name, tick, was the reason minecraft wasn't recognising it

severe sage
mental canyon
#

That usually means one of the commands is wrong

#

Or the directory

#

Directory seems to be alright though

severe sage
#

oh if a command is wrong it won't be recognised?

#

that is probably the issue then

mental canyon
#

Yes

#

I think

severe sage
#

could you help me find the issue? I'm not very experienced with commands

mental canyon
#

Yeah can't really help there rn, I am on my phone and can't go through it properly

fossil fiber
#

Can you check the logs for errors?

mighty hawkBOT
#
Output Logs

The logs are where Minecraft displays errors when something goes wrong and can thus help you gain information about why something isn't working for you! To open the logs:

  1. Enable logs in the Minecraft Launcher
  2. Start your game (or restart it if you already have an open instance)
  3. Enjoy spotting errors getting much easier!
severe sage
#

am i looking for latest.log?

#

aha i found an error

#

lines 19, 21: Can't parse particle options: No key scale in MapLike[{}]; No key color in MapLike[{}]

#
execute if score @e[tag=master,limit=1] dragon_phase matches 2 run execute at @e[tag=end_crystal_marker] run particle minecraft:dust 0.73 0 1 5 ~ ~ ~ 2 30 2 1 1 force
fossil fiber
#

The particle command was recently updated

severe sage
#

thats most likely the issue then i'll go read the wiki

fossil fiber
#

particle dust{color:[0.73, 0, 1], size:4}

severe sage
#

i change it to that? alr tysm

#

i think im getting a new error

#
Couldn't load tag minecraft:tick as it is missing following references: custom_ender_dragon:tick (from file/Draconic Ascension 1.21.3 Data Pack)

#

and this: ```
Failed to load function custom_ender_dragon:tick
java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: Whilst parsing command on line 21: Can't insert TAG_Int into list of TAG_Double at position 136: ...or:[0.73, <--[HERE]

fossil fiber
severe sage
#

okay also I have 1 question as i know absolutely basically nothing about datapacks. After i modify a file, is /reload enough or do i need to exit and rejoin the world?

fossil fiber
#

Reload is just enough

severe sage
#

still not fixed, lemme get the error...

#

aha don't you love commands, back to the old error: ```
Can't parse particle options: No key scale in MapLike[{color:[0.73d,0.0d,1.0d],size:4}]

fossil fiber
#

Change size to scale :P

severe sage
#

okay 1 sec

#

still doesn't work because this:

particle minecraft:dust 1 0.5 1 2 ~ ~ ~ 1.5 1.5 1.5 0 15 force

theres a bunch of these so how to u get the numbers for color and size?

uncut acorn
#

the first four digits in that command are the color and scale respectively, they just changed how it's written

severe sage
#

i think i'll make another channel and close this

#

./resolve is broken

gleaming garnet
#

I'll go ahead and close it manually. Feel free to reply if you need to reopen it