Data Packs Technology

Block Placer

  • 4.4k views 0 today
  • save_alt 339 downloads
Compatibility
Minecraft 1.13
to version
Minecraft 1.19
Changes include
  • Functions
  • 12
  • 10
  • 1
Wutzuket
Lvl 16Journeyman System
0
With this datapack, dispensers can place blocks or you can also drop a block in front of a driven dispenser, then the block will be placed.
MY Youtube: Wutzuket - YouTube it is German. ( :

More like this

  Have something to say?

hokage3211
07/28/2023 10:57 pm
Level 53 : Grandmaster Nerd Programmer
Hey! Nice datapack, although I noticed it's prone to failure if there are any items around, as well as any item that doesn't line up with it's actual block name (like redstone and string to name a few) will simply place sand and destroy the item instead. If you change the main function file to

execute as @e[type=minecraft:item,tag=!placed] at @s run function block_placer:dispenser_checkthen you can change all the start of each line in the "dispenser_check' file to

execute as @s at @s if block

which will be just about as performant. That solves the consistency issues I was seeing, but I'm not sure I can think of a way to fix the item/block name mis-match problem... I'd love to theorize if you want to talk it out!
1

Welcome