#my datapack isn't working

1 messages · Page 1 of 1 (latest)

cedar pineBOT
#

<@&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:1738854571: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

teal depot
#

Are you using a preprocessor?

#

mcfunction doesn't support writing functions like this

    execute store result storage blocks:block_type block run block ~ ~ ~
    execute positioned ~ ~ ~ run {
        execute setblock ~ ~ ~ block:from_storage{source:{type:"blocks:block_type"}} keep
    }
    kill @s
}```
tepid quarry
#

i asked gemini how to do this

real craterBOT
#
AI can't make datapacks

AI generators, such as ChatGPT, Gemini, Claude, and Copilot generally cannot be used to make datapacks. While it might look like it gives you good datapack code, in 90% of cases it will not work. There is not enough information online about datapacks in order for them to be accurate.

If you ask for help with an AI generated datapack, you will likely be asked to start again.

toxic canyon
#

it's look like normal programming, but not a mcfunction

tepid quarry
#

i am trying to make sure l ender cataclysm bosses' charge attacks can't break blocks

teal depot
#

That's probably not something we can really help you with by virtue of it being a modded entity, and it may not be particularly doable with data packs at all without essentially replacing that attack

#

You can try asking the mod developer for advice

tepid quarry
#

ok, i just wasn't sure if making the block hardness of crying obsidian, obsidian, and netherite really high would work

#

b/c that's what i am using

teal depot
#
  "criteria": {
    "block_broken": {
      "trigger": "minecraft:block_broken",
      "context": {
        "block": "block"
      }
    }
  },
  "rewards": {
    "function": "blocks:cancel_break"
  }
}

{
  "condition": "minecraft:block_match",
  "blocks": [
    "minecraft:obsidian",
    "minecraft:netherite_block",
    "minecraft:crying_obsidian"
  ]
}```
But like this file as well is basically nonsense, it doesn't do anything and doesn't seem to be a real file type that exists
tepid quarry
#

ok, i will ask on the mod's discord

teal depot
#

Don't show them this stuff

#

Just ask if they have an idea of how to do the thing you want

cedar pineBOT
# tepid quarry ok, i will ask on the mod's discord
🎗️ Is your question resolved?

If your question is resolved, that's great to hear! Make sure to run /resolve or click the Resolve Question button. Otherwise, feel free to continue asking for help! :D