#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)
<@&1201956957406109788>
💬 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
i would set "execute as @e[scores={timer_one=0}] at @s run say test" to 0 right?
i tried this and it didnt work https://www.youtube.com/watch?v=l8NkImp4_-k
We cover a new way to detect if the player is exposed to the skylight in 1.21
💡 Code: execute as @a at @s if predicate {"condition":"minecraft:entity_properties","entity":"this","predicate":{"location":{"can_see_sky":true}}} run effect give @s wither 1 1 true
🔵 Discord & Other Links: https://linktr.ee/CloudWolfMC
💻 Website: https://c...
must be outdated
💀
ok i got it working but i can still hide under trees and not get the wither effect
💀
very outdated
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
we have a predicate for that now
and that is?
one second
k
ok thats what i did
.
also how would i make it do more dmg cuz thats the whole reason im using a custom dmg type is that wither doesnt kill me fast enough
did you try the other effect types?
what other effect
i havent
but ican
ok how do i not make it give me knockback
cuz this is annoying
none of those bypasses options exist in the damage type, they're controlled by damage type tags
.
patience. to make it not give knockback you'll put it in the no_knockback tag
where do i put that
another line?
it's a separate tag file that you'll put under the minecraft namespace in your datapack. minecraft/tags/damage_type/no_knockback.json
that's also how all of the bypasses_x flags you've tried to include in your damage type here actually work, you'll need to make those tags in that folder and add your damage type to them
how does it know not to give knockback?
because that's what including it in that tag does.
also does the buring effect work when u have fire res?
huh
"values": [
"#minecraft:bypasses_armor",
"#minecraft:bypasses_enchantments",
"#minecraft:bypasses_shield",
"#minecraft:bypasses_effects",
"#minecraft:no_knockback"
]
}```
that?
well it doesnt seem to work
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
ohh
still doesnt work
unless i need to refence it somehow in my acutal damage type
most of the settings in the damage type json itself just control aesthetics, the actual behavior is controlled mostly by the tags you put it in. damage types that are prevented by fire resistance are under the is_fire tag
but idk how to do that
you don't, no. where did you put it
put what?
also how do i make it do more dmg
cuz it doesnt the same amount as wither rn
the amount of damage is controlled by whatever is dealing the damage, so the damage command exclusively for custom damage types
the tag(s)
okay, and i told you to put it in minecraft/tags/damage_type
ohhh
doesnt work
still gives me knockback
do i need to call it somehow from sky.json?
no, again the behavior is controlled by the tag only. did you put it in the minecraft namespace or your namespace?
minecraft
then send what your tag looks like now
the tag file itself
ohh
all look the same except for the bypassa rmor part
{
"values": [
"#minecraft:bypasses_armor"
]
}
again, that needs to be your damage type that it references. they should all be exactly the same, with the value of 404:sky
so change #Minecraft to #404?
no, change the whole thing to "404:sky", because that's your damage type and that's what the tag needs to reference
so 404:sky/bypass_armor?
no, do exactly what i told you to do
huh
then how does it know what the tag is
that's what the name of the file does
yes, that would be correct
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
you can replace the death message by adding this string to the lang file in a resource pack
how would i do that
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"
}```
<@&1166082198152159386> <@&1202694677766348840>
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)
can i not do multiple death messages?
Doesn't seem like it
You can’t have multiple with the same key
If you want it to be random, you’ll have to do that manually
manually ?
how
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
Like, when a player dies, generate a random number, and then based on that random number, run a different tellraw command
ill pass.. to confusing for me lol
.
There are 24000 ticks in a day so yes
ok good
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...
@left merlin ?
do you not have a single second of patience?
no 😭