6

I'm developing a skyblock plugin in vanilla Minecraft in which placed gold blocks will generate a certain amount of gold per hour. Naturally, I must keep a list of the placed gold blocks in memory, and remove them from memory when the gold blocks are removed.

What are all the ways in which a gold block can be removed in vanilla Minecraft? Here are the methods I have so far. Have I missed anything?

  • Breaking manually with tool/hand
  • Breaking from explosions
6
  • Correct me if I'm wrong, but can't you use a pick enchanted with silk touch ?
    – aman207
    Dec 13, 2015 at 20:06
  • @aman207 I think OP has already covered that with 'breaking manually with tool/hand". He's asking about other ways a gold block could come to no longer be a block in the world. Dec 13, 2015 at 21:27
  • @gatherer818 Ah yes, that would make more sense.
    – aman207
    Dec 13, 2015 at 23:04
  • 1
    It might be important to consider gold blocks that are pushed via piston
    – xornob
    Dec 13, 2015 at 23:52
  • "developing a plugin" and "vanilla minecraft"? How? Do you mean with commandblocks? In this case, dont call it a plugin. Instead use something like "commandblock-contraption".
    – Mystery
    Dec 15, 2015 at 17:16

2 Answers 2

5

I was way overthinking this. Catching all block breaking events is not necessary. One only needs to store the locations of each placed gold block and then check every hour if that location still contains a gold block.

1
  • You may want to make this an edit to your question. Dec 14, 2015 at 23:59
1

I'm assuming that commands are not allowed.

Can players reach the End?

The Ender Dragon has the ability to break blocks. These are just removed and disappear.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .