Create a random block concept that generates an object by its Legacy ID

Started by thehydra9 on

Topic category: Help with MCreator software

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Create a random block concept that generates an object by its Legacy ID

So, I've been doing a lot of research online and I can't find anything. All I find is about generating an object with a given probability between [0,1) and then multiplied. But what I'm looking for is how to do, after generating a random number, use that random number for the ID. So, you break the block. A random number is generated, this gives for example 323, and then drops the entity that has Legacy ID 323 (in this case it is a signal). I wish u guys can help me :(

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What you could do is set…
Thu, 01/30/2020 - 00:21

What you could do is set that random number into a variable and then have it summon the entity with legacy id of X where X is the custom variable that is set by  the random number generator?

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yeah but how i spawn with…
Thu, 01/30/2020 - 14:36

Yeah but how i spawn with Legacy ID? That´s my real problem.

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Legacy ID is the number that…
Sat, 02/01/2020 - 14:48

Legacy ID is the number that Minecraft assign to all the items. It´s something like #XXXX. Ex: #0323 is a "Sign".

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What you could do is make a…
Sat, 02/01/2020 - 23:59

What you could do is make a Function as that uses legacy ID I believe.