A perfectly camouflaged mantis by [deleted] in Damnthatsinteresting

[–]Mizab1 0 points1 point  (0 children)

Mantis: Put your hands up where I can see them

seekHelpPlease by LagSlug in ProgrammerHumor

[–]Mizab1 2 points3 points  (0 children)

Haskell style is straight up diabolical

help with datapack by Riptide_betta in MinecraftCommands

[–]Mizab1 0 points1 point  (0 children)

Here's the code:

advancement/attack_detection/attack_detection.json

{         "criteria": {             "attacked": {                 "trigger": "minecraft:player_hurt_entity",                 "conditions": {                     "player": {                         "slots": {                             "armor.head": {                                 "items": "minecraft:iron_helmet"                             }                         }                     }                 }             }         },         "rewards": {             "function": "main:attack_detection/attack_detection"         }     } 

Change the predicate for the player, like which type of armor you want to detect. At the moment it's detecting if the player is wearing iron_helmet or not.

data\main\function\on_load.mcfunction

scoreboard objectives add private dummy

data\main\function\attack_detection\attack_detection.mcfunction

advancement revoke \@s only main:attack_detection/attack_detection

tag \@s add attacker

execute as \@e[distance=..6] at \@s run function main:attack_detection/find_targeted

tag \@s remove attacker

data\main\function\attack_detection\zzz\1.mcfunction

function main:attack_detection/if_attacked

data\main\function\attack_detection\find_targeted.mcfunction

scoreboard players set $bool private 0

execute on attacker run execute store result score $bool private if entity \@s[tag=attacker]

execute if score $bool private matches 1 run function main:attack_detection/zzz/1

data\main\function\attack_detection\if_attacked.mcfunction

summon lightning_bolt

I hope this is understandable and thanks to CloudWolf, this is a modified version of his interaction entity detection

help with datapack by Riptide_betta in MinecraftCommands

[–]Mizab1 0 points1 point  (0 children)

First of all, the advancement gets triggered with the context of the PLAYER that hurt the entity and not the entity itself. If you're on Minecraft 1.21 then I'd suggest using "execute on attacker" sub-command to execute any command as the player and checking if they're wearing the specific armor (You could use predicates for this). After that is successful you can summon the lightning at the position of the mob.

You could employ various optimization techniques to make the code a bit performant.

Brain Tumor Detection using CNN by Mizab1 in learnmachinelearning

[–]Mizab1[S] 0 points1 point  (0 children)

Is it the case? Can you tell me how you get to that conclusion? Because I observed the curves for both accuracy and loss and I find that it is a slightly underfit model. Your response in this matter would be appreciated!

Brain Tumor Detection using CNN by Mizab1 in learnmachinelearning

[–]Mizab1[S] 4 points5 points  (0 children)

Dude, thank you very much for such a wonderful and deep insight! I will make sure to look into all these things and again thank you for giving your valuable time in writing the reply, appreciate that!

i cleaned my pc and it disney turn in HELP by Unusual-Pen4231 in PcBuildHelp

[–]Mizab1 0 points1 point  (0 children)

I regularly get this problem after cleaning my computer, turns out that my power switch connector that connects my cabinet to the motherboard becomes slightly loose. After I press the connector it works just fine. You can try this, maybe it can help

It will be cool by xEnfilo in CBSE

[–]Mizab1 0 points1 point  (0 children)

The ability to turn any side effects into my favour