Minecraft Data Packs / Technology

Minecart with Dispenser

  • check_circle Functions
  • check_circle Loot Tables
  • check_circle Predicates
  • check_circle Recipes
  • 4,690 views, 3 today
  • 230 downloads, 0 today
  • 18
  • 20
  • 2
Required Resource Pack
AntiElusiveness's Avatar AntiElusiveness
Level 22 : Expert Procrastinator
2
Adds a Minecart with Dispenser that can be crafted and placed on rails. Or rather, it's a Minecat with Chest with only 9 available slots that imitates a dispenser. It can face parallel to the rails, face off the rails, or face upwards, depending on the direction you're facing when you place it. It activates when either it moves onto a powered activator rail or an activator rail that it's already on becomes powered. When ativated, it dispenses a random one of its items, which for most items just means dropping it on the ground but... well, you know how dispensers work, right?

Things it does:
•Launch arrows, tipped/spectral arrows, snowballs, eggs, splash/lingering potions, experience bottles, firework rockets, fire charges, and tridents
•Spawn mobs from spawn eggs
•Place armor stands, shulker boxes, and command blocks
•Place boats onto water or air blocks that are directly above water
•Place minecarts (including other mincarts with dispensers) onto rails
•Use flint and steel to light fires and ignite campfires, candles, candle cakes, and tnt
•Use shears to harvest beehives/nests and shear sheep, mooshrooms, and snow golems
•Equip players, villagers, armor stands, and mobs that have a canPickUpLoot tag set to 1b with armor and other wearable gear into available slots, and sheilds into available offhand slots
•Equip horses, donkeys, mules, pigs, and striders with saddles, horses with horse armor, llamas with carpets, and donkeys, mules, and llamas with chests
•Place pumpkins onto snow or iron block formations to spawn snow/iron golems
•Place wither skeleton skulls onto soul sand/soil formations to spawn withers (when the difficulty is not peaceful)
•Use buckets to place water, lava, and powder snow onto appropriate blocks and retract water, lava, and powder snow from source blocks
•Spawn aquatic mobs from buckets
•Uses glowstone to charge respawn anchors
•Fill empty bottles with water
•Use empty bottles to harvest beehives/nests
•Use water bottles to turn appropriate blocks into mud
(Normal dispensers don't shoot tridents or place command blocks in the current version, but they do shoot tridents on bedrock and in the combat snapshots and they placed command blocks in past versions, so I included those abilities)

Things a dispenser does that it does not (currently) do:
•Use bone meal on plants
•Use honeycombs to wax unwaxed copper
•Use buckets to waterlog blocks or retract water from waterlogged blocks


Note that there are rendering problems. Dispensed item entities, snowballs, eggs, and potions will take about a second to appear in the right place. This doesn't affect functionality, just what you see.

Also note that while a minecart with dispenser can place other minecarts with dispensers, a regular dispenser can't (if you try it will dispense a normal minecart with chest).

This (https://jsonformatter.curiousconcept.com/#) json formatter was really helpful in making this, so credit to its developers

Feedback and issue reports are appreciated!
CompatibilityMinecraft 1.19
Tags

5 Update Logs

Update #5 : by AntiElusiveness 01/20/2023 5:19:26 pmJan 20th, 2023

  • Fixed another (honestly glaring) bug relating to the direction in which upward-facing carts shoot things (I never really did a final review/test of the new direction system and I'm reaping the consequences of that)
  • Dispensed minecarts with chest, dispenser, hopper, and command block now take the custom name of the item when it has a custom name
LOAD MORE LOGS

Create an account or sign in to comment.

1
01/22/2022 11:32 pm
Level 1 : New Crafter
MushroomBoi10
MushroomBoi10's Avatar
yes
2
05/23/2021 6:50 pm
Level 8 : Apprentice Miner
Drakio-X
Drakio-X's Avatar
This is exactly what Ive been searchin I hope a +1.16 version
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome