How to spawn gem (or simlar) that drops the dropped version of a block?

Started by kreatorKen on

Topic category: Help with MCreator software

Active 3 years ago
Joined Aug 2020
Points:
673

User statistics:

  • Modifications: 1
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 22
How to spawn gem (or simlar) that drops the dropped version of a block?

Does anyone know how to "spawn" in a block, but the dropped version of it, without having to program each block manually? Ideally, it would be like the "remove block at [xyz] and drop at [xyz] but without the remove bit. "Spawn gem" for a grass block, for example, does just that. But I want the spawned block to be the natural drops, e.g. dirt in this case. Do we have something that can do that?

Active 1 day ago
Joined Nov 2019
Points:
879

User statistics:

  • Modifications: 0
  • Forum topics: 13
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 335
make a procedure, set its…
Fri, 10/02/2020 - 00:20

make a procedure, set its trigger to player right clicks block with item or just right clicks block if you want, and make it check what the block is and if its the one you want dirt in this cases make it just spawn gem the item you want

Active 1 day ago
Joined Nov 2019
Points:
879

User statistics:

  • Modifications: 0
  • Forum topics: 13
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 335
it if you want it with…
Fri, 10/02/2020 - 00:21

it if you want it with everyblock make it an if statement saying if the block is not air/ bedrock, spawn gem your item 

Active 3 years ago
Joined Aug 2020
Points:
673

User statistics:

  • Modifications: 1
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 22
Hi TZO_Ghoul thanks for the…
Fri, 10/02/2020 - 06:11

Hi TZO_Ghoul

thanks for the idea, but that is exactly what I am trying to avoid, since you have to program each block, which makes lots of unnecessary overhead, and there is likely a simple procedure in the real java code. Ideally, there should be a "spawn drop of [item]" which will call the core java code and do that for us. I could ask for that to be added, or learn how to make a procedure block myself, but .... I am still being lazy in that regard. I was hoping there was a block procedure that I overlooked which can do that without making single checks.

Active 1 day ago
Joined Nov 2019
Points:
879

User statistics:

  • Modifications: 0
  • Forum topics: 13
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 335
I see, i tried with the…
Fri, 10/02/2020 - 17:27

I see, i tried with the blocks but unless you code it, it wont happen, also its possible with the blocks if you only want to get one specific item from blocks that are not air or specific blocks 

Active 3 years ago
Joined Feb 2020
Points:
698

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 43
Well you cant simulate…
Fri, 10/02/2020 - 19:26

Well you cant simulate breaking a block or get the harvested result of the block.

Active 3 years ago
Joined Aug 2020
Points:
673

User statistics:

  • Modifications: 1
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 22
You can! There are two…
Sat, 10/03/2020 - 06:25

You can! There are two procedures for that, but you need a plugin. I highly recommend these two plugins which will feel like core elements as soon as you have them, the Miscellaneous plugin (2020.3+) https://mcreator.net/forum/60635/miscellaneous-plugin-114115 and the Plugin for ItemStacks https://mcreator.net/forum/58163/plugin-itemstacks .

One procedure under World Procedures from MP is: "Simulate block breaking event at x y z " and the other is under the normal Block procedures "Remove block at x y z and Drop at x y z".

But the deal is, the block has to be there in the first place. I have some mods carrying blocks (in a NBT) and I could spawn in a block and them remove them, but that might affect the world in undesired ways, so better is just spawn the drop. Hence the quandary.