1

Gold "dropper" (like in Bedwars) for single player mode?

Himbeersirup's Avatar Himbeersirup9/18/18 7:58 am
1 emeralds 774 3
9/18/2018 1:07 pm
EagleNugget's Avatar EagleNugget
In games like Bedwars there is a place where items like gold appear so players can pick them up and buy weapons and blocks they need in the game. Is there a mod or some way to create something like this in single player MC?
Posted by Himbeersirup's Avatar
Himbeersirup
Level 1 : New Explorer
0

Create an account or sign in to comment.

3

1
09/18/2018 1:07 pm
Level 14 : Journeyman Birb
EagleNugget
EagleNugget's Avatar
If you want to you could place a dispenser underground put carpet on it fill it with gold and put pressure plates around it if you only want to get gold when your near it.
3
09/18/2018 8:32 am
Level 31 : Artisan Engineer
garlicbreathinator
garlicbreathinator's Avatar
You can easily recreate the functionality of a bedwars item dropper with a command block or filled dispenser (but the dispenser will eventually run out). The basic command to summon a gold ingot above the command block is /summon item ~ ~1 ~ {Item:{id:"minecraft:gold_ingot",Count:1b}}. If you are placing the commandblock further underground, you will change the first "1" to the number of extra blocks up you want.

Alternatively, if you want them to be craftable (via datapack) or want multiple gold droppers in the world without a lot of manual redstone, you can make them all linked to a timer on a scoreboard. While it is possible using command blocks, I would recommend using a data pack and building it in a function instead. It's just more efficient. The commands for that would be something like:
commands:
setup:
/scoreboard objectives add timer dummy
loop:
/scoreboard players add gold_dropper timer 1
/execute if score gold_dropper timer matches 20.. as @e[tag=gold_dropper] at @s run summon item ~ ~1.2 ~ {Item:{id:"minecraft:gold_ingot",Count:1b}}
/execute if score gold_dropper timer matches 21 run scoreboard players set gold_dropper timer 1

The numbers 20 and 21 are the timing for each drop. That means it's 1 second between drops. If you want more or less, you can change them (but remember to add 1 to the second one). For example, if you wanted 1.5 seconds you would use 30 and 31.
create gold dropper:
/give @p minecraft:shulker_spawn_egg{display:{Name:"{\"text\":\"gold dropper\"}",Lore:["constantly creates gold on a timer"]},HideFlags:1,Enchantments:[{id:"minecraft:aqua_affinity",lvl:1}],EntityTag:{Invulnerable:1b,PersistenceRequired:1b,NoAI:1b,AttachFace:0b,Color:4b,Tags:["gold_dropper"],CustomName:"{\"text\":\"gold dropper\"}"}} 1
disable/enable gold droppers:
disable: /scoreboard players set gold_dropper timer 0
enable: /scoreboard players set gold_dropper timer -1

Remember to remove the /'s if you're using a function for the loop.
2
09/18/2018 8:06 amhistory
Level 67 : High Grandmaster Senpai
Stubbs1
Stubbs1's Avatar
You could place a dispenser underneath a carpet, and have a redstone timer that set's it off.
Then to make it "infinite" you use a command block (and connect it to the same redstone clock) and set that command block to copy another dispenser which you've placed somewhere else, and it also needs to contain a few gold nuggets, or whatever you want it to spit out.

Connect it all, and boom! Got yourself a Bedwars like gold dropper system for you and your friends :D

Edit: It might cause a bit of lag though... I didn't really think about that.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome