Minecraft Data Packs / Weapons and Armor

[1.14+] Cannon & Turret Datapack - No Resourcepack Needed!

  • check_circle Functions
  • 2,938 views, 32 today
  • 576 downloads, 6 today
  • 35
  • 28
  • 18
EggsAxis avatar EggsAxis
Level 14 : Journeyman Miner
2
Hello there,

The past week I have been working on a datapack. I was inspired by a controllable cannon in Hypixel's Skyblock. I thought it would be a lot of fun to try to recreate it. It was a lot of fun indeed, so I decided to design and make some new ones. Eventually I made three different cannons and two turrets. You can sit on all the cannons, aim them, and shoot them by right-clicking! The turrets automatically attack every entity in a certain radius with the tag "hostile". Every hostile mob has that tag already, and if you want them to attack players or other mobs you can use this command: '/tag <player> add hostile'. All addons have own crafting recipes (on the ground) that you can see in the video. The datapack is completely multiplayer and survival friendly.


About the addons:
- The classic cannon
is just a regular medieval style cannon. It shoots balls that explode by impact. You need to have at least 1 iron ingot and gunpowder in your inventory and it has a cooldown of 3 seconds.
- The laser cannon shoots lasers, as you'd expect. The lasers do a lot of damage to entities, but won't damage blocks. You need to have at least 1 redstone and glowstone dust in your inventory and it has a cooldown of 1 second.
- The ice cannon is perfect against attacking enemies. It shoots snowballs and by impact on a block it explodes in snow. Every entity in a radius of 5 blocks will get frozen for 5 seconds. You need to have at least 1 gunpowder and snow block in your inventory and it has a cooldown of 3 seconds.
- The arrow turret shoots every 2 seconds an arrow to every hostile entity is a radius of 10 blocks.
- The fire turret sets every hostile entity in a radius of 6 blocks on fire and damages it a bit. After hitting a player it has a cooldown of 2.5 seconds and after hitting an entity it has a cooldown of 1 second.

You can type in '/trigger info' and you'll get some information about the datapack.
CompatibilityMinecraft 1.14
toMinecraft 1.17 Snapshot
Tags

1
02/12/2021 12:22 pm
Level 1 : New Miner
_aleksei2011_
_aleksei2011_ avatar
клас
1
02/07/2021 5:06 pm
Level 1 : New Miner
MEEMEENOOTNOOT
MEEMEENOOTNOOT avatar
Can you please make the crafting recipes on a crafting table and take a picture? I don't know what order or which grid to put them in.
1
02/12/2021 12:24 pm
Level 1 : New Miner
_aleksei2011_
_aleksei2011_ avatar
вот да
1
02/08/2021 7:33 am
Level 14 : Journeyman Miner
EggsAxis
EggsAxis avatar
You can craft the spawners by throwing the ingredients close to each other on the ground. Then the spawner will spawn.
1
02/08/2021 11:28 am
Level 1 : New Miner
MEEMEENOOTNOOT
MEEMEENOOTNOOT avatar
oh, ok
1
02/05/2021 5:10 pm
Level 1 : New Miner
GuppyMan9977
GuppyMan9977 avatar
How do you change/modify the range of the arrow turret in the code? I already figured out a way to modify damage, but the range is a bit underwhelming for late-game.
1
02/07/2021 6:50 am
Level 14 : Journeyman Miner
EggsAxis
EggsAxis avatar
First of all you go in the main function, and underneath the "#turret fire" you change all the "distance=..6" (which is the standard range) in the selectors to whatever you want the new range to be. After I would just look through all the functions in the map "fire" and change the "distance=..6" to your new range.
I did not make it so that you can easily modify it, but I think it is not that mich work.

Feel free to ask if you have more questions!
1
02/07/2021 3:04 pm
Level 1 : New Miner
GuppyMan9977
GuppyMan9977 avatar
Thank you! I figured out how to modify range, speed, and power for endgame. Arrow speed gets glitchy at values above 0.001 or something, so idk what's with that.
2
02/05/2021 2:56 pm
Level 1 : New Network
Tuxxic
Tuxxic avatar
Very impressive! The classic cannon would look absolutely amazing on something like a pirate ship. And the fact that no resource pack is needed is a very nice touch.
1
02/05/2021 1:21 am
Level 1 : New Miner
Kronicle7
Kronicle7 avatar
I need help the datapack is not working at 1.16.4 and it says until 1.17 HELP PLS
1
02/05/2021 2:12 am
Level 14 : Journeyman Miner
EggsAxis
EggsAxis avatar
What exactly is not working?
1
02/04/2021 10:09 pm
Level 1 : New Miner
hehejiujie123
hehejiujie123 avatar
awesome!
1
02/04/2021 8:14 pm
Level 6 : Apprentice Explorer
Aza_Gorod
Aza_Gorod avatar
looks very interesting, I just wonder of a few things.

1. the fire turret is nice but what about a fireball turret? this can be upgraded or have a more powerful version with ghast fireballs and be automated (I like turrets that can defend stuff on their own.)

2. might there be a way to upgrade range? ues turrets are awesome and already having to defend automatically is strong. But I am talking range like that of a blaze with long range but low accuracy.
1
02/05/2021 2:19 am
Level 14 : Journeyman Miner
EggsAxis
EggsAxis avatar
Thank you so much for your feedback!

1. I did think about a fireball cannon/turret. the problem with a fireball turret (and with a fireball cannon too) that it creates fire. If you place a fireball turret next to your door for example, it might set your house on fire :). You could turn off firetick, but I can imagine that some people don't want that since it's kind of cheating.

2. I really like the idea of being able to upgrade the turrets to for example a larger range. It can make it indeed so that the accuracy becomes worse if you switch to the range mode. Good idea!
1
02/04/2021 1:03 pm
Level 6 : Apprentice System
dessi-datapack creator
dessi-datapack creator avatar
amazing
1
02/04/2021 11:45 am
Level 26 : Expert Birb
Beguiled_Hydra
Beguiled_Hydra avatar
How does one remove the cannons/turrets?
1
02/04/2021 4:25 pm
Level 14 : Journeyman Miner
EggsAxis
EggsAxis avatar
As you can see in the video I believe, if you sneak for more than 3 seconds next to the object, it destroys itself and drops the spawner again!
1
02/04/2021 10:13 am
Level 1 : New Miner
User3414823G
User3414823G avatar
hello your stuff is extremly good!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Planet Minecraft Logo

Website

© 2010 - 2021
www.planetminecraft.com

Welcome