Minecraft Data Packs / Game Mechanic

Car Traffic Generator

  • check_circle Functions
  • check_circle Structures
  • 17,390 views, 14 today
  • 3,056 downloads, 0 today
  • 37
  • 36
  • 21
Required Resource Pack
gshn28's Avatar gshn28
Level 50 : Grandmaster Engineer
103
The 1.15 version of the Car Traffic Generator!
Bring your cities alive with AI-controlled cars!

- New car models and colors
- Player driven cars now turns smoothly
- Better performance
- Simplified structures

Watch this video for more detailed installation instructions and how to use it.
https://www.youtube.com/watch?v=d8feAj6DU3c

You can also download the map in the alternate link.

==================================================
Cinematic credits:

Thanks for MattuFIN for the Mattupolis city:
www.planetminecraft.com/member/mattufin/

I will not upload the map used in the cinematic! I'm not the one who built it (all credit goes to MattuFIN) and only some specific parts of the city were modified to add the cars.

Soartex Texture Pack made by Soar49 and updated by the community:
soartex.net/

Shaders by Sildur:
sildurs-shaders.github.io/

=================================================================
Check out my channel for more Datapacks!
www.youtube.com/user/28Gshn

Support me on Patreon!
www.patreon.com/Gshn28

==================================================
Join me on Discord!
https://discord.gg/YzJ2axj
CompatibilityMinecraft 1.15
toMinecraft 1.16
Tags

Create an account or sign in to comment.

1
11/20/2020 5:25 pm
Level 45 : Master Strawberry
ToadsBeAwesome
ToadsBeAwesome's Avatar
Advice: download bridge map and use this datapack, awesome work dude!
1
11/22/2020 7:36 am
Level 50 : Grandmaster Engineer
gshn28
gshn28's Avatar
Thanks! Glad you liked it!
1
06/02/2020 12:00 pm
Level 23 : Expert Explorer
Tibon_leader
Tibon_leader's Avatar
keep the good work up
1
06/03/2020 7:40 pm
Level 50 : Grandmaster Engineer
gshn28
gshn28's Avatar
Thanks!
1
05/12/2020 11:16 pmhistory
Level 61 : High Grandmaster Technomancer
DanMizu
DanMizu's Avatar
I absolutely LOVE this datapack. Been messing around with it all day. Working on a red-yellow-green traffic light system as well as getting it to work with different intersection scenarios like this one:



I have a pretty poor PC though and it starts to lag with a lot of cars, which is expected, but I am wondering why it takes around 4 entities per car? Excluding the villager and minecart I assume there are 2 armor stands?



Also, why not use potion effects instead of arrow to deal damage?
1
05/13/2020 6:56 am
Level 50 : Grandmaster Engineer
gshn28
gshn28's Avatar
Haha that's great! I'm glad that you're enjoying my datapack!

About the number of entities, there are extra armorstands due to a small rendering bug. When a car turn, sometimes the model doesn't change the direction properly and the car goes "drifting" sideways haha. So I had to spawn extra entities riding each other to deal with it.

For the arrow, it's because potion of harming effect heals zombie type mobs and I'd need to test for each type of entity in order to apply the right effect.
1
05/13/2020 6:50 pm
Level 61 : High Grandmaster Technomancer
DanMizu
DanMizu's Avatar
Ah I have ran into that bug as well. Are the armorstands passengers of the minecart?





Using tag files, you could easily tell the difference between mobs that need the healing or damage effect. Heres a function I call whenever I want to heal/deal damage:



https://pastebin.com/KMQMkefu



I set the dan.temp score of $HealDamage or $DealDamage to the amount of damage I want to deal/heal and call the function. the #dan.reap:undead tag file lists all the undead mob types that need to have the healing effect applied. Seems complicated but I feel like it is worth it as you can control the damage you deal and avoid the visual problems with arrows as well as their inaccuracy. May not work for everything however.
1
05/13/2020 6:58 pmhistory
Level 50 : Grandmaster Engineer
gshn28
gshn28's Avatar
It's the minecart that's a passenger of the armorstand. To fix this issue, I turn the head of the armorstand instead of rotating it and use another one to keep track of the direction that the car has to go.

For the damage thing, I guess I was too lazy to make a simple tag file haha. (Even though I made a whole list for non-solid blocks that the car could go through) I was just reusing some commands from the previous version of the command -.-''
1
05/12/2020 4:51 pm
Level 61 : High Grandmaster Technomancer
DanMizu
DanMizu's Avatar
Self driving cars? Tesla is shaking.
1
05/12/2020 5:08 pm
Level 50 : Grandmaster Engineer
gshn28
gshn28's Avatar
Haha kinda. I like to imagine that the villagers that are driving as an excuse for some accidents that may happen '-'
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome