Data Packs Game Mechanic

Car Traffic Generator

  • 22k views 0 today
  • save_alt 3.8k downloads
Compatibility
Minecraft 1.15
to version
Minecraft 1.16
Changes include
  • Functions
  • Structures
  • 38
  • 38
  • 21
Required Resource Pack
gshn28
Lvl 50Grandmaster System
111
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

More like this

  Have something to say?

ToadsBeAwesome
11/20/2020 5:25 pm
Level 45 : Master Musician
Advice: download bridge map and use this datapack, awesome work dude!
1
gshn28
11/22/2020 7:36 am
Level 50 : Grandmaster System
Thanks! Glad you liked it!
1
Tibon_leader
06/02/2020 12:00 pm
Level 24 : Expert Explorer
keep the good work up
1
gshn28
06/03/2020 7:40 pm
Level 50 : Grandmaster System
Thanks!
1
DanMizu
05/12/2020 11:16 pm
Level 62 : High Grandmaster Technomancer
history
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
gshn28
05/13/2020 6:56 am
Level 50 : Grandmaster System
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
DanMizu
05/13/2020 6:50 pm
Level 62 : High Grandmaster Technomancer
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
gshn28
05/13/2020 6:58 pm
Level 50 : Grandmaster System
history
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
DanMizu
05/12/2020 4:51 pm
Level 62 : High Grandmaster Technomancer
Self driving cars? Tesla is shaking.
1
gshn28
05/12/2020 5:08 pm
Level 50 : Grandmaster System
Haha kinda. I like to imagine that the villagers that are driving as an excuse for some accidents that may happen '-'
1

Welcome