Hi so in the latest snapshot they made it so you can leash mobs with other mobs so I had this idea of recreating the movie ghasts with piglins riding it and I used commands to spawn a piglin riding a bamboo raft and a ghast would get leashed to the raft and it work and now I'm trying to make a simple datapack where 1 in 4 ghasts that spawn in the nether would get replaced by this combo of leashed mobs.
I've made a simple datapack but it just won't work, anyone know what the problem is? Here's the zip of my datapack
#MC Movie Ghast Piglin Jockey Datatpack
1 messages · Page 1 of 1 (latest)
<@&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:1744815595: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
Probably best to look through the datapack and see if there's any errors, and try looking for your function with the /function command, if it doesn't show up, the function is fundamentally broken due to incorrect syntax or a typo
how did you do a datapack if your namespace is literally in another namespace?
carried_ghast in minecraft
next, you should have the functions folder in the singular
alright I now moved it onto the data folder
huh?
further, there is incorrect logic, there is no randomness and there will always be the number 3. You can simply use a predicate with a 0.25 chance and remove the ghast_random score.
Updating Datapacks Past 1.21
1.21 renamed many folders that make up a Minecraft datapack, breaking virtually all datapacks from prior versions. Now, all folders which previously had plural names, except tags, now have singular names.
Below is a list of all folder names changed in 1.21:
structures -> structure
advancements -> advancement
recipes -> recipe
loot_tables -> loot_table
predicates -> predicate
item_modifiers -> item_modifier
functions -> function
tags/functions -> tags/function
tags/items -> tags/item
tags/blocks -> tags/block
tags/entity_types -> tags/entity_type
tags/fluids -> tags/fluid
tags/game_events -> tags/game_event