#how do i make it detect if ur standing on the surface after a scoreboard timer goes down?

1 messages · Page 1 of 1 (latest)

cinder lodge
#

heres what i got so far.. i want it to always run after the scoreboard timer goes down

tick function

execute as @e[scores={timer_one=1}] at @s run say test
scoreboard players remove @e[scores={timer_one=1..}] timer_one 1
execute as @a unless score @s join_check matches 1 run function 404:on_first_join```
covert streamBOT
#

<@&1201956957406109788>

Someone will come and help soon!

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

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

cinder lodge
#

i would set "execute as @e[scores={timer_one=0}] at @s run say test" to 0 right?

#

must be outdated

#

💀

#

ok i got it working but i can still hide under trees and not get the wither effect

#

💀

cinder lodge
#

also how do i make the custom damage type not give me knockback

  "message_id": "sky",
  "scaling": "never",
  "exhaustion": 0.0,
  "effects": "hurt",
  "bypasses_armor": true,
  "bypasses_magic": true,
  "bypasses_resistance": true,
  "bypasses_enchantments": true,
  "death_message_type": "intentional_game_design"
}```
#

cuz wither doesnt kill u fast enough

cloud niche
#

we have a predicate for that now

cinder lodge
cloud niche
#

one second

cinder lodge
#

k

cloud niche
cinder lodge
cinder lodge
cloud niche
#

did you try the other effect types?

cinder lodge
cloud niche
cinder lodge
#

i havent

#

but ican

#

ok how do i not make it give me knockback

#

cuz this is annoying

stoic kraken
#

none of those bypasses options exist in the damage type, they're controlled by damage type tags

stoic kraken
#

patience. to make it not give knockback you'll put it in the no_knockback tag

cinder lodge
#

another line?

stoic kraken
#

it's a separate tag file that you'll put under the minecraft namespace in your datapack. minecraft/tags/damage_type/no_knockback.json

stoic kraken
cinder lodge
stoic kraken
#

because that's what including it in that tag does.

cinder lodge
#

also does the buring effect work when u have fire res?

cinder lodge
#
    "values": [
        "#minecraft:bypasses_armor",
        "#minecraft:bypasses_enchantments",
        "#minecraft:bypasses_shield",
        "#minecraft:bypasses_effects",
        "#minecraft:no_knockback"
    ]
}```
#

that?

#

well it doesnt seem to work

stoic kraken
#

yeah, because that's not remotely what i said. you'll need a separate .json file with each of those names and in each of those .json files you'll reference your damage type

cinder lodge
#

unless i need to refence it somehow in my acutal damage type

stoic kraken
cinder lodge
#

but idk how to do that

stoic kraken
#

you don't, no. where did you put it

cinder lodge
#

put what?

#

also how do i make it do more dmg

#

cuz it doesnt the same amount as wither rn

stoic kraken
#

the amount of damage is controlled by whatever is dealing the damage, so the damage command exclusively for custom damage types

stoic kraken
cinder lodge
stoic kraken
#

okay, and i told you to put it in minecraft/tags/damage_type

cinder lodge
#

ohhh

#

doesnt work

#

still gives me knockback

#

do i need to call it somehow from sky.json?

stoic kraken
#

no, again the behavior is controlled by the tag only. did you put it in the minecraft namespace or your namespace?

stoic kraken
#

then send what your tag looks like now

cinder lodge
#

u mean inside the tags?

#

or the folder itself?

stoic kraken
#

the tag file itself

cinder lodge
#

ohh

#

all look the same except for the bypassa rmor part
{
"values": [
"#minecraft:bypasses_armor"
]
}

stoic kraken
#

again, that needs to be your damage type that it references. they should all be exactly the same, with the value of 404:sky

cinder lodge
#

so change #Minecraft to #404?

stoic kraken
#

no, change the whole thing to "404:sky", because that's your damage type and that's what the tag needs to reference

stoic kraken
#

no, do exactly what i told you to do

cinder lodge
#

then how does it know what the tag is

stoic kraken
#

that's what the name of the file does

cinder lodge
#

oh

#

so i need to change it tp bypasses and not bypass then

stoic kraken
#

yes, that would be correct

cinder lodge
#

wait

#

why does it say death.attack.sky.message

#

how do i change the death message

#

also how would i make it work when ur standing under a tree as well execute as @e[scores={timer_one=0}] at @s run execute as @a if predicate 404:overworld_sky run damage @p 10 404:sky

#

cuz i only want it to not dmg u when ur in a cave/underground

stoic kraken
cinder lodge
#

erm it stoped workin g

#

it stoped dmging me for some reason

#

idk what i did lol

#

it says im invulnrble to the dmg type when i do the /damage command wtf

#

oh i was on peaceful lol

#

oops

#

@stoic kraken can i do multiple death messages?

#

why is the file name yellow in vs code

    "death.attack.sky.message": "Player/ triggered a 404: Surface access denied.",
    "death.attack.sky.message": "Player/ breached surface protocol. Termination initiated.",
    "death.attack.sky.message": "Player/ tried to escape the 404. It didn’t work.",
    "death.attack.sky.message": "Player/ broke the challenge. The challenge broke back"
}```
covert streamBOT
# covert stream <@&1201956957406109788>

<@&1166082198152159386> <@&1202694677766348840>

🙇 Helpers Arise!

Please note that you still might not immediately get a response since all helpers are human beings and volunteers (and also might be sleeping right now)

cinder lodge
#

can i not do multiple death messages?

balmy imp
#

Doesn't seem like it

left merlin
#

You can’t have multiple with the same key

cinder lodge
#

sad

#

also 1 more thing

left merlin
#

If you want it to be random, you’ll have to do that manually

cinder lodge
# cinder lodge also 1 more thing

also will the timer end when the minecraft day turns to night? scoreboard players add @a timer_one 24000 idk if i put the right number here

left merlin
#

Like, when a player dies, generate a random number, and then based on that random number, run a different tellraw command

cinder lodge
left merlin
#

There are 24000 ticks in a day so yes

cinder lodge
#

teh death message didnt work

#
    "death.attack.sky.message": "$1$s tried to escape the 404. It didn’t work.",
    "death.attack.sky.player": "$1$s tried to escape the 404. While fighting $2$s"
}```
#

im using https://www.youtube.com/watch?v=H99EeMhhQ2U idk if its outdated or not

Custom Damage Types, and how to give them custom death messages.

Tutorial Datapack/Resourcepack- https://drive.google.com/drive/folders/1569G1PlUW0pm0yBAVKK5NLc3QXXrbo0q?usp=sharing

Wiki Pages
Damage Type - https://minecraft.wiki/w/Damage_type
Language Codes - https://minecraft.wiki/w/Language

Got more questions? Join the Discord Server! http...

▶ Play video
#

@left merlin ?

cloud niche
#

do you not have a single second of patience?

cinder lodge
#

oh

#

i missed the % sign

cinder lodge