Minecraft PC IP: play.cubecraft.net

Egg🥚

Gameplay Engineer
Jul 12, 2020
1,019
1,462
179
18
The Netherlands
Last edited:

Lyriie

Sr. Mod
Team CubeCraft
🛠️ Sr. Moderator
Mar 31, 2018
974
4,297
389
Great job, it looks amazing and very fun!
 
D

Deleted member 491790

Guest
Thanks!

It took my around 8 hours

Well, by using functions :)

Thanks man
How specifically? I can't think of a way really to make each block trail behind it, and to detect where the end of the tail is to attach another block to it
 
  • Like
Reactions: Egg🥚

Egg🥚

Gameplay Engineer
Jul 12, 2020
1,019
1,462
179
18
The Netherlands
How specifically? I can't think of a way really to make each block trail behind it, and to detect where the end of the tail is to attach another block to it
There is a entity called "area_effect_cloud" (AEC) which is used for splash potions. It is very handy for this kinda stuff since it has an "Age" tag. It despawns when it is 1 tick old (a 20th of a second). So you can easily control the life duration. If you summon that entity with an age of for example -20, it lives 21 ticks (or 1.05) seconds before it despawns.
So if you summon an AEC with a certain age on a block, and let all the AEC aged 0 remove their blocks, you can make a trail.
It is a bit more complex than that, since you also have to think of making the trail bigger when it eats an apple, but I think that's the best way to explain :).
 
D

Deleted member 491790

Guest
There is a entity called "area_effect_cloud" (AEC) which is used for splash potions. It is very handy for this kinda stuff since it has an "Age" tag. It despawns when it is 1 tick old (a 20th of a second). So you can easily control the life duration. If you summon that entity with an age of for example -20, it lives 21 ticks (or 1.05) seconds before it despawns.
So if you summon an AEC with a certain age on a block, and let all the AEC aged 0 remove their blocks, you can make a trail.
It is a bit more complex than that, since you also have to think of making the trail bigger when it eats an apple, but I think that's the best way to explain :).
Ahhh that's smart! I wouldn't have thought of it myself, I don't even think I'm as advanced as that with command blocks. Thanks for the insight! :heart:
 
  • Love
Reactions: Egg🥚
Members Online

Members online

Latest profile posts

Random thought: I hope that whenever CubeCraft continues to work on the EggWars Update, I'd like for them to post a screenshot in the previews section of the Notion post showing two guys fighting in OP, one of them in full leather and the other in full chain. The leather guy has a diamond pickaxe, signifying the return of diamond pickaxe efficiency 2 costing gold and the chain armor guy has netherite sword.
cristian2259 wrote on Flxen's profile.
Felicidades! 🎊
Well... it had to happen one day.
850 days, my second biggest streak yet.
The first one was 469. So I have voted on 1319 days!
Let's see if I can reach 1000 days in 2,7 years!
2024-11-18_22.44.02.png
SpookyWarz wrote on Efcluke94's profile.
💙
CrystalLegend01 wrote on Spring5972's profile.
Happy birthday!
Top Bottom