Тёмный

How to Code Guns in Minecraft | Raycast Hitbox Detection 

Cloud Wolf
Подписаться 33 тыс.
Просмотров 4,2 тыс.
50% 1

Опубликовано:

 

3 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 62   
@Whimzee
@Whimzee 2 года назад
You're the man, Cloud Wolf, no idea what we'd do without you.
@JMaximusIX
@JMaximusIX 2 года назад
Just wanted to leave a comment for the algorithm. I really appreciate your work. Please keep up with this content!
@koronx058
@koronx058 Год назад
I learned raycasting techs from you and have been scrambling to find how to do this. I clicked this video and then saw your name and was like, "Yeah he seems to always have the answers." Earned a sub.
@QUAM12
@QUAM12 2 года назад
You're the only one who's so serious about Ray casting. I respect you C.W!
@OwengeJuiceTV
@OwengeJuiceTV 7 месяцев назад
Thank you for the graphic!
@LeaoMartelo
@LeaoMartelo 2 года назад
minecraft coding has come a long way since the giant command that spawned a even bigger command block machine
@msmegaserga2228
@msmegaserga2228 Год назад
Bro.. Even tho i used like 10% of this guide, i LOVE you bro
@Cl0udWolf
@Cl0udWolf Год назад
Thx :)
@msmegaserga2228
@msmegaserga2228 Год назад
@@Cl0udWolf goddamn. 10 minutes. You are trully answering quickly, oh and btw. So you mind that i used your math datapack for mine?
@Cl0udWolf
@Cl0udWolf Год назад
@@msmegaserga2228 my math pack is fre for anyone to use
@msmegaserga2228
@msmegaserga2228 Год назад
@@Cl0udWolf ty
@_dreamliner_5786
@_dreamliner_5786 2 года назад
Thank you for the video
@RosyEos
@RosyEos Год назад
I'm fufilling my legal obligation and thanking you for the diagram!
@ancientpixel9809
@ancientpixel9809 2 года назад
You probably already know this, but someone made a shader that allows for different item models in the inventory ui and the hand. It's really great for weapons with 3d models as those usually don't look very nice in the inventory...
@-penguinify
@-penguinify 2 года назад
This looks insane
@einwildestexti
@einwildestexti 2 года назад
Do you plan to make a video for "how to make weapon spray"? This would be nice, thx
@Cl0udWolf
@Cl0udWolf 2 года назад
I’ll add recoil at some point but u need raycast to even see recoil
@einwildestexti
@einwildestexti 2 года назад
@@Cl0udWolf Nice :D
@cobyjohns176
@cobyjohns176 2 года назад
Awesome video! Can you make a video covering charge-up guns?
@Giviniti
@Giviniti 2 года назад
Amazing tutorial, I also wanted to ask if you can teach how to deal custom knockback when hitting entities. That would help a lot! You pretend covering this on the series?
@Cl0udWolf
@Cl0udWolf 2 года назад
there isnt a good way to deal knockback in an efficient and accurate way
@Giviniti
@Giviniti 2 года назад
@@Cl0udWolf I always searched around for it and it seems imoossible in vanilla at the moment :( If the motion could be applied to players instead of only other entities... But thanks for clearing that out for me.
@uiytt8497
@uiytt8497 2 года назад
That's very useful, thanks !
@ctanimations8488
@ctanimations8488 2 года назад
With all the coding you know you probably know this, but what I would do instead for the custom death message is use tellraw and selectors Current command: say @s was hit by @p[tag=this] Output: [Villager] Villager was hit by Cloud_Wolf Tellraw: /tellraw @a [{"selector":"@s"}," was hit by ",{"selector":"@p[tag=this]"}] Output: Villager was hit by Cloud_Wolf I don't know if the tellraw command is right but it should be The best part about it is that you can use colors, bold, italic and even custom fonts or idk, to make those messages that appear in shooter games Example: "Player1 (gun) Player2" You know what I mean
@Cl0udWolf
@Cl0udWolf 2 года назад
Yeah I’m well aware of the tellraw command I wouldn’t print a message every hit it was just a demonstration
@ctanimations8488
@ctanimations8488 2 года назад
@@Cl0udWolf yeah, but the main thing I wanted to point out is the custom icons using fonts
@Cl0udWolf
@Cl0udWolf 2 года назад
@@ctanimations8488 ya u can make some really nice kill feeds with the system and some fonts
@koronx058
@koronx058 Год назад
How do I make sure bullets don't pierce? Also, is there a way I can make it that the source of the damage is the player? The execute as @e is getting in the way.
@Applecakes
@Applecakes 2 года назад
Thank you
@Mewok
@Mewok 2 года назад
Very informative vid. Thanks for teaching how to do custom death messages! I do have a question about the hotbox detection method though. I remember in your previous recasting videos, you've detected hatboxes by using a command like this: execute as @e[dx=0] positioned ~-.99 ~ ~-.99 if entity @s[dx=0] run say hit Is there a reason why you've added an additional position adjustment in this updated hotbox tutorial and will that cause performance efficiency to go down since there is an additional execute subfunction?
@Cl0udWolf
@Cl0udWolf 2 года назад
Doing positioned is not that expensive. The reason I included it is for when ur selection region is meaningful. I discussed that in this video. If u have a 0.01 selection region whether or not it’s centered doesn’t matter much but if u use 0.3 aka -0.7 u should center it otherwise it will detect better based on how u face
@Mewok
@Mewok 2 года назад
Gotcha! Must’ve missed your explanation when I watched it the first time. Thanks for the info.
@colevilleproductions
@colevilleproductions 2 года назад
first and foremost, thank you very much for the graphic, but also (sorry this is unrelated), how might one make custom particles using fonts in a resource pack?
@Cl0udWolf
@Cl0udWolf 2 года назад
Unicode can be a texture, Unicode can display on name of something, entities with names that’s least laggy is area effect cloud. Spawn a bunch of them with the Unicode names
@colevilleproductions
@colevilleproductions 2 года назад
@@Cl0udWolf Thanks!
@yoyek2320
@yoyek2320 2 года назад
cool video ^^
@gregory6099
@gregory6099 2 года назад
thank u
@obsidian.monolith
@obsidian.monolith 4 месяца назад
leavening a comment to let anyone struggling know that if you want a hitbox 1 block or bigger if you say dx=1 you NEED to say dy=1 and dz=1 leaving them blank only works with dx=0
@BodyAlhoha
@BodyAlhoha 2 года назад
why was it privated XD
@gabrielfernandoscheeren6565
@gabrielfernandoscheeren6565 2 года назад
Nice tutorialhats, low pitched Nice tutorialhats etc.
@kaitouaonhayy
@kaitouaonhayy 7 месяцев назад
Hello sir, your video is awesome, but I have a question why the hit box can't detect in players? I just tried it but it doesn't work.
@Cl0udWolf
@Cl0udWolf 7 месяцев назад
In the tutorial I have an entity types tag that I think only defines villagers you need to add players if you want to hit players. This is an efficiency thing since t@e is everything
@kaitouaonhayy
@kaitouaonhayy 7 месяцев назад
Is that humanoid and target? I added them but it still doesn't seem to work.
@Cl0udWolf
@Cl0udWolf 7 месяцев назад
@@kaitouaonhayy basically. Just look through the code and make sure it can hit players, u can’t hit yourself currently since it doesn’t hit the shooter
@kaitouaonhayy
@kaitouaonhayy 7 месяцев назад
@@Cl0udWolf I know that, but I tried on the player and it doesn't work, raycasting can reach and detect the player but it can't active damage on hitbox
@Cl0udWolf
@Cl0udWolf 7 месяцев назад
@@kaitouaonhayy if they are part of the humanoid tag it will be able to pick them, the method of dealing damage in this pack is older tech so it only works on non players but you can easily replace it with a /damage command with a macro for the amount
@yoyek2320
@yoyek2320 2 года назад
if i get item with array "/give @p stick{Array:["1","2","3","4"]}" is there a chance to check if position 3 in array is number 3 say 123 ???
@Cl0udWolf
@Cl0udWolf 2 года назад
I don’t really get what ur asking
@yoyek2320
@yoyek2320 2 года назад
​@@Cl0udWolf /give @p stone{Array:["1","2","3","4"]} /data get entity @s Inventory[0].tag.Array - give us nick has the following entity data: ["1","2","3","4"] and is it a way to check if first number from this ["1","2","3","4"] matches 1 then make something Example: 1. if second number from ["1","2","3","4"] is 3 = say 123 nothing happen 2. if second number from ["1","2","3","4"] is 2 = say 123 123 appear on chat u know what i mean xDD
@Cl0udWolf
@Cl0udWolf 2 года назад
@@yoyek2320 maybe describe the actual situation this would be necessary for, because while it is possible to check if nbt matches something (I have a video for that) It doesn’t seem helpful
@yoyek2320
@yoyek2320 2 года назад
@@Cl0udWolf I find it useful in the case of creating a vault thats open if the item has sequence numbers in order You were doing something similar on live but idk how
@Cl0udWolf
@Cl0udWolf 2 года назад
@@yoyek2320 ah so u just want to test if a sequence on nbt matches? How would they put the sequence on the nbt in the first place? If they don’t and it’s just given to them y have a sequence any string will do
@PigletTube
@PigletTube 2 года назад
First
@eyalb8421
@eyalb8421 2 года назад
actually first lol
Далее
How to Code Guns in Minecraft | Headshot Detection
6:08
🦊🔥
00:16
Просмотров 634 тыс.
Every Unique Item Expands the Border
1:06:27
Просмотров 549 тыс.
Minecraft images but it's incredibly terrifying.
8:20
Просмотров 613 тыс.
The Creaking mob is here. And it's so derpy.
6:45
Просмотров 537 тыс.
Let's Program Doom - Part 1
25:13
Просмотров 435 тыс.
I Tried To Beat Minecraft Backwards
18:53
Просмотров 1,9 млн
BANNED Minecraft Mods...
16:39
Просмотров 407 тыс.
Minecraft Cheaters trolled by fake cheat software
12:20
How to Optimize Your Datapack
9:13
Просмотров 21 тыс.
Minecraft, But Everywhere We Look Explodes...
20:40
Chain Raycasting in Minecraft
10:29
Просмотров 10 тыс.