Vein Mining Datapack

  • check_circle Functions
  • 54 diamonds
  • 86,393 views, 450 today
  • 21,138 downloads, 166 today
  • 56 comments
  • 70 favorites
  • 54
  • 70
  • 56
avatar Firebug
Level 61 : High Grandmaster Engineer
69
Drop a block of lapis and an iron/diamond pick on top of an enchantment table while you have 10 levels to enchant it with the ability to destroy an entire vein in the blink of an eye. Instruction file included. Multiplayer compatible. I'm open to suggestions for improvements.
CompatibilityMinecraft 1.14
Tags

2 Update Logs

Version 1.3.1 : 04/25/2019 6:12:10 pmApr 25th, 2019

  • Vein mined ores no longer drop experience
  • Now takes Silk Touch and Fortune into account
  • Also takes Molten Core into account (an auto smelting pack I made)
  • Made everything even less laggy
LOAD MORE LOGS

2
03/17/2020 4:33 pm
Level 1 : New Explorer
MaxiCato62
Why does it not work? I am level 25 and i dropped the two things, nothing happened
1
01/20/2020 5:25 am
Level 1 : New Miner
Lightningoof
will you do the same but with timber enchantment?
1
12/01/2019 2:49 pm
Level 15 : Journeyman Waffle
Sharkbate06
Great data pack man keep up the good work!
1
10/20/2019 11:44 pm
Level 1 : New Miner
soraShiroPowered
it appears that your datapack isnt working.

i have only one mod installed (x-ray), and i have the treecapitator datapack installed alongside this.


playing MC 1.14.4
1
10/01/2019 7:13 pm
Level 1 : New Miner
pazzjiano
I don't think it's working with molten core, otherwise I'm probably doing something wrong haha
1
09/08/2019 4:49 am
Level 1 : New Miner
MakiDaki
Seems to break when used in conjunction with your gold armour datapack and other magnet datapacks, renaming packs to edit load order did nothing for this one. Apart from this minor concern, everything works great!
2
08/31/2019 10:55 am
Level 1 : New Miner
Akimbo_
Hey it seems that it doesn't take the unbreaking enchantment into account. Anyway you could add that or is there anyway I could easily add that myself? Thanks
2
08/18/2019 11:22 amhistory
Level 1 : New Miner
Zech_
Can you make an edit so that it will drop XP again please?

EDIT: Just read your post below about the /loot and XP not working together. Hope that fix someone gave you works.
1
08/10/2019 4:24 pm
Level 1 : New Miner
Dividia
Hey, is there any way to allow this to work with glowstone? I've tried adding the id in the ways you've mentioned earlier, but I'm having no luck
1
07/30/2019 1:20 am
Level 1 : New Miner
Damion05
playing in 1.14.3 and it doesnt seem to work. randomly itll work and break 2-3 blocks of a vein but other than that when i initially mine an ore the whole vein doesnt break with it....
1
07/23/2019 10:17 pm
Level 1 : New Miner
Silivek
Could you try doing this for axes to chop a whole tree down?
1
07/24/2019 2:32 am
Level 1 : New Miner
Silivek
Scratch that, I edited the datapack to use axes.
1
08/11/2019 5:28 am
Level 1 : New Miner
pupwar574
how did you do that?
2
06/23/2019 9:15 am
Level 1 : New Miner
SavageKing2512
Why'd you remove the XP bit of the pack?
1
06/23/2019 3:18 pm
Level 61 : High Grandmaster Engineer
Firebug
Before, I used to use /setblock ... destroy, and that was all well and good, but in order to include fortune and silk touch I have to /loot, which is super useful except that /loot doesn't work with exp, and there isn't really any way I can tell to circumvent this because all the items spawned from the block and "looted" look the same to the game and have the same Age so I can't isolate the ones from the block and kill them or something.

For the time being it seems like it's either no exp or no enchantment compatibility, however someone has contacted me with a potential fix so look out for that soon
3
07/19/2019 9:42 am
Level 1 : New Miner
Minecraftian_Martian
"For the time being it seems like it's either no exp or no enchantment compatibility, however someone has contacted me with a potential fix so look out for that soon" <--- Any progress on this?
1
06/16/2019 10:58 amhistory
Level 1 : New Miner
dimsum
does this work for 1.14.2?
2
07/24/2019 1:54 am
Level 1 : New Miner
Silivek
Yes!
2
06/15/2019 4:46 am
Level 1 : New Miner
Scubacide
Recovered my account just to tell you how awesome this datapack is. :)
1
06/07/2019 3:53 pm
Level 1 : New Miner
MikeMito
So there is not limit to how many ores there can be mined?
2
05/27/2019 2:57 pm
Level 1 : New Miner
KrycerKris
Hey, so I'm also sad about the XP not dropping part and was wondering if you couldn't just spawn the ExpOrb entities when blocks like coal, diamonds, etc. break?
2
05/25/2019 6:07 am
Level 7 : Apprentice Dragon
Scarfaith
I wish I could get XP from the ores :c
2
05/17/2019 4:54 pm
Level 2 : Apprentice Miner
ReeceBar
Can you make regular vein miner where all tools have it without needing to do anything?
1
05/17/2019 9:26 pm
Level 61 : High Grandmaster Engineer
Firebug
Can you elaborate on this a bit?
1
05/17/2019 9:31 pm
Level 2 : Apprentice Miner
ReeceBar
Ok, what I mean is that any pick can vein mine any ore without required things like enchanting or stuff, just simple vein mining that any pick can do. Maybe you can do this with axes and trees? I like traditional vein miner where it was simply you can mine all ore using a pick destroying only one, which will also destroy the rest connected to it. I don't want needed enchantment for it. Can you do that? Did I elaborate enough?
1
05/16/2019 1:31 pm
Level 1 : New Miner
lukas862001
Hello! Very nice data pack! But is it possible that the ores do drop XP? I looked for other data packs but couldn't find one that does that. Thanks for the help.
2
05/16/2019 6:59 pm
Level 61 : High Grandmaster Engineer
Firebug
An old version dropped xp, but didn't work with fortune and silk touch. Sadly, this is the current predicament I'm in, it's a trade-off
1
05/14/2019 12:42 am
Level 5 : Apprentice Network
Agret_Brisignr
Is there any way to limit how far the effect is applied? I really like this pack, but I'd like to nerf it in this aspect because I'm playing with very large and rare ore nodes, but don't want to lag my game / totally destroy my pickaxe when I mine one of these nodes.
1
05/14/2019 5:37 am
Level 61 : High Grandmaster Engineer
Firebug
In that case, I'd probably only enchant an iron pick. Although, in testing this you've made me realize that picks don't break when they hit max durability so maybe hold out for an update :)
1
05/14/2019 9:26 am
Level 5 : Apprentice Network
Agret_Brisignr
Sweet! I've been using iron picks, but the lag is still very real. Looking forward to a possible update! :D
1
05/04/2019 11:38 am
Level 2 : Apprentice Miner
adscomics
Why did you make it so that vein mined ores no longer drop xp? Personally I don't think it's all that broken. Is it becaus it causes dropped items to duplicate? I made a change to the vein mcfunction file and removed the doTileDrops false line on the top, which caused item duping to happen.
1
05/04/2019 12:32 pm
Level 61 : High Grandmaster Engineer
Firebug
Before, I used to use /setblock ... destroy, and that was all well and good, but in order to include fortune and silk touch I have to /loot, which is super useful except that /loot doesn't work with exp, and there isn't really any way I can tell to circumvent this because all the items spawned from the block and "looted" look the same to the game and have the same Age so I can't isolate the ones from the block and kill them or something.

For the time being it seems like it's either no exp or no enchantment compatibility
1
05/04/2019 12:59 pm
Level 2 : Apprentice Miner
adscomics
Understood, thanks for filling me in on that!
1
05/03/2019 1:38 pm
Level 1 : New Miner
memegod
Hey Firebug, I'm a huge fan of your work. I'm new to modding and anything but vanilla. My problem is what Happen said. I followed those steps, but I screwed something up. I would like to have a pure copy and paste of the normal files + stone, andesite, diorite, and granite. I am horrible at editing and would very much appreciate your help. Edit: Sorry that I need a lot, I'm just new to this stuff.
1
05/03/2019 5:43 pm
Level 1 : New Miner
Happen
It worked for me so also should for u, just take unpacked pack then go for the Firebug's steps,save changes and then put it in the datapack folder and unpack
1
05/01/2019 6:51 pm
Level 1 : New Miner
Happen
Hi dude is it possible this to work with diorite andesite and granite? would be really great for me huh
1
05/01/2019 8:21 pm
Level 61 : High Grandmaster Engineer
Firebug
If youre comfortable with editing files follow these steps:
  1. extract the zip
  2. navigate to MineralMassacre.zip\data\mineralmassacre\tags\blocks\ore.json (open with any text editor)
  3. add the following (including the comma) to the end of emerald_ore :
    ,
    "minecraft:andesite",
    "minecraft:diorite",
    "minecraft:granite"
  4. navigate to MineralMassacre.zip\data\mineralmassacre\functions\main.mcfunction
  5. copy paste one of the lines already in the file and edit it so that after minecraft: it says one of the three stones
  6. repeat the last step twice except with the other stone names
It should work from there
1
05/02/2019 11:45 am
Level 1 : New Miner
Happen
THANKS man doing it's job r8 now!

but man here comes another question, is it possible to make pickaxe taking only one durability like when u mined only one block? Cuz u know it's taking durability=blocks mined in total and i wish it would take only one e.g like is was in older versions of timber mods
1
05/02/2019 8:08 pm
Level 61 : High Grandmaster Engineer
Firebug
It's OP in my opinion, but if you delete the line execute as @a[nbt={SelectedItem:{tag:{display:{Lore:['{"text":"Mineral Massacre"}']}}}}] store result entity @s SelectedItem.tag.Damage int 1 in vein.mcfunction then it shouldn't take more than 1 durability
1
03/01/2019 10:54 pm
Level 13 : Journeyman Dragonborn
skunkmunkee
Love this datapack. I've been looking for Vein Miner for a while. Liked it so much I did a YouTube showcase video of it! https://www.youtube.com/watch?v=lggHEdKg5tA you are welcome to use the video if you want
1
02/24/2019 10:46 pm
Level 13 : Journeyman Dragonborn
skunkmunkee
Doesn't work with silk touch it seems
1
02/25/2019 6:33 pm
Level 61 : High Grandmaster Engineer
Firebug
Sorry, I forgot to put it in the description though it does say in the instruction file. I will be adding some enchantment compatibility in 1.14
1
02/15/2019 4:28 am
Level 68 : High Grandmaster Programmer
TheDiamondPlayables
discord.gg/MV4tHgT
Come join us on Datapack Discord!
Discuss datapack techniques,ask experience datapack creators, or just get to know other datapack creators out there. Share this link to any creator you know!
1
02/12/2019 7:43 pm
Level 1 : New Miner
Pentoast
Just wanted to let you know this mod is giving me some horrible stutter. All mobs are barely moving around and I have to break a block multiple times sometimes to even get it to break. I took one mod out at a time to see if there was any incompatibility and it just seems to be something within your mod. Wish it would work because I love it!
1
02/12/2019 9:52 pm
Level 61 : High Grandmaster Engineer
Firebug
When does it lag? Always, when mining resources are on the ground, when you're holding the pick, when you mine an ore block? If it lags when mining an ore and you have a semi-low end machine that would make sense, as it's breaking a ton of blocks and creating a bunch of entities at once.

Never mind the questions, I was accidentally searching every entity in the world multiple times per tick, making the game itself lag. Just uploaded a new version, please tell me if this fixes the issue!
1
02/12/2019 3:07 pm
Level 1 : New Miner
Maki_Tsuki
Would it be possible to remove the enchantment so I can break the whole vein with a normal pick? I looked at the code and only understod some of it and that's not a lot.
1
02/12/2019 5:46 pm
Level 61 : High Grandmaster Engineer
Firebug
This should work for any pick that drops an ore, albeit buggier. I have not tested this so it may just not work at all. You may edit the pack however you want, I only ask you do not distribute the edited version as I worked very hard on these packs.

Extract the zip file then copy the following into the corresponding file name (the words in caps)
You can delete enchant.mcfunction if you want.

MAIN
scoreboard objectives add OreUses dummy
tag @e[nbt={Item:{id:"minecraft:coal_ore"},Age:1s}] add ore
tag @e[nbt={Item:{id:"minecraft:coal"},Age:1s}] add ore
tag @e[nbt={Item:{id:"minecraft:iron_ore"},Age:1s}] add ore
tag @e[nbt={Item:{id:"minecraft:gold_ore"},Age:1s}] add ore
tag @e[nbt={Item:{id:"minecraft:diamond_ore"},Age:1s}] add ore
tag @e[nbt={Item:{id:"minecraft:diamond"},Age:1s}] add ore
tag @e[nbt={Item:{id:"minecraft:emerald_ore"},Age:1s}] add ore
tag @e[nbt={Item:{id:"minecraft:emerald"},Age:1s}] add ore
tag @e[nbt={Item:{id:"minecraft:lapis_ore"},Age:1s}] add ore
tag @e[nbt={Item:{id:"minecraft:lapis_lazuli"},Age:1s}] add ore
tag @e[nbt={Item:{id:"minecraft:nether_quartz_ore"},Age:1s}] add ore
tag @e[nbt={Item:{id:"minecraft:quartz"},Age:1s}] add ore
tag @e[nbt={Item:{id:"minecraft:redstone_ore"},Age:1s}] add ore
tag @e[nbt={Item:{id:"minecraft:redstone"},Age:1s}] add ore
execute as @e[nbt={Age:1s},tag=ore] at @s run function mineralmassacre:vein

VEIN
execute as @p store result score @s OreUses run data get entity @s SelectedItem.tag.Damage
execute if block ~1 ~ ~ #mineralmassacre:ore run setblock ~1 ~ ~ air destroy
execute if block ~-1 ~ ~ #mineralmassacre:ore run setblock ~-1 ~ ~ air destroy
execute if block ~ ~1 ~ #mineralmassacre:ore run setblock ~ ~1 ~ air destroy
execute if block ~ ~-1 ~ #mineralmassacre:ore run setblock ~ ~-1 ~ air destroy
execute if block ~ ~ ~1 #mineralmassacre:ore run setblock ~ ~ ~1 air destroy
execute if block ~ ~ ~-1 #mineralmassacre:ore run setblock ~ ~ ~-1 air destroy
scoreboard players add @p OreUses 1
execute as @p store result entity @s SelectedItem.tag.Damage int 1 run scoreboard players get @s OreUses
1
02/12/2019 7:52 pm
Level 1 : New Miner
Maki_Tsuki
Yes, it worked thanks a ton! I think this is the only datapack I have seen that does this. I would rather make my own data pack than to upload somones else work that I only edited. Thanks again.
1
02/04/2019 10:21 am
Level 1 : New Miner
mdn522
Is it compatible with Fortune? What about pickaxe durability?
1
02/04/2019 4:12 pm
Level 61 : High Grandmaster Engineer
Firebug
Pickaxe durability is taken into account, though it currently ignores enchantments (unbreaking, fortune, silk touch, etc). In 1.14 they will add a command that makes this possible, so keep an eye out for the update! I will definitely add that functionality soon after 1.14 comes out. For now, think of it like enchantment exclusivity, eg silk touch and fortune.
Planet Minecraft Logo

Website

© 2010 - 2020
www.planetminecraft.com

Welcome