#Datapack error

1 messages · Page 1 of 1 (latest)

chilly trout
#

So I was making a datapack to morph into a flower pot, it did work but then i reloaded my world and it stopped working
I think the error is coming from the tick.mcfuntion file but I really can't see where I messed it up.

execute as @a[name=KitMasterGamer,predicate=sneakinvis:is_sneaking,tag=invis,nbt=!{ActiveEffects:[{Id:14b,ShowParticles:1b}]}] run effect give @s minecraft:invisibility 1 255 true
execute as @a[name=KitMasterGamer,predicate=sneakinvis:is_sneaking,tag=invis,nbt=!{ActiveEffects:[{Id:14b,ShowParticles:1b}]}] run effect give @s minecraft:slowness 1 255 true
execute at KitMasterGamer as @a[name=KitMasterGamer,predicate=sneakinvis:is_sneaking,tag=invis,nbt=!{ActiveEffects:[{Id:14b,ShowParticles:1b}]}] run tp @e[limit=1,tag=elysium,type=block_display] ~-0.5 ~ ~-0.5
execute as @a[name=KitMasterGamer,predicate=!sneakinvis:is_sneaking,tag=invis] run effect clear @s minecraft:invisibility
execute as @a[name=KitMasterGamer,predicate=!sneakinvis:is_sneaking,tag=invis] run effect clear @s minecraft:slowness
execute at KitMasterGamer as @a[name=KitMasterGamer,predicate=!sneakinvis:is_sneaking,tag=invis] run playsound minecraft:block.fungus.break block @a
execute as @a[name=KitMasterGamer,predicate=!sneakinvis:is_sneaking,tag=!invis] run tp @e[limit=1,tag=elysium,type=block_display] 0 -420 0
execute as @a[name=KitMasterGamer,predicate=!sneakinvis:is_sneaking,tag=invis] run tag @s remove invis```
If anybody has time to read through this and sees the glaring issue please tell me 🙏
daring cedarBOT
#

<@&1201956957406109788>

Someone will come and help soon!

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

🙇 After a while, hit the Summon Helpers button to ping the helper team. They'll be happy to help you

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

chilly trout
#

Here's the load.mcfuntion that appear to be functioning

summon block_display 0 -420 0 {Tags:["elysium"],block_state:{Name:"minecraft:potted_warped_fungus"}}```
#

and is_sneaking.json predicate

    "condition": "minecraft:entity_properties",
    "entity": "this",
    "predicate": {
      "flags": {
        "is_sneaking": true
      }
    }
  }```
#

also pls ping me when you're reviewing this

nocturne cape
#

First thing to find the error would probably be opening the logs

chilly trout
#

I checked my client logs

#

and it wasn't showing me anything?

chilly trout
nocturne cape
#

Then it may be a logic error

nocturne cape
#

If you’ve followed it and still haven’t found your error one here could look through it — but it’s a lot easier for you to debug than it is for you, you have made the thing, you (probably) have the game open and everything else set up

chilly trout
#

so logic errors don't show anything in the logs at all

#

okay

chilly trout
#

cuz If I rmb right it was working fine prior

#

If there's not I'll keep searching

nocturne cape
#

No, no common issue of that sort, reloading shouldn’t change anything (other than reloading all the files and running a load function if you have one)

nocturne cape
chilly trout
#

and so when 1 thing is wrong it breaks the code for the whole file right?

#

like one logic error occurs

nocturne cape
#

Logic error is not one thing, logic error is when your programming logic is wrong, so like one condition doesn’t catch all cases, a variable is name wrong — stuff like that, where the code is not at fault

#

So no, the file still runs to completion

#

It just doesn’t do what it’s supposed to

chilly trout
#

omfg I got the file name wrong

#

ty man