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

Started by thehydra9 on

Topic category: Help with MCreator software

Active 5 years ago
Joined Jan 2020
Points:
636

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
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 :(

Active 4 years ago
Joined Sep 2019
Points:
748

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 139
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?

Active 5 years ago
Joined Jan 2020
Points:
636

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
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.

Active 4 years ago
Joined Sep 2019
Points:
748

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 139
What is legacy ID?
Sat, 02/01/2020 - 00:57

What is legacy ID?

Active 5 years ago
Joined Jan 2020
Points:
636

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
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".

Active 4 years ago
Joined Sep 2019
Points:
748

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 139
Oh... OK
Sat, 02/01/2020 - 23:58

Oh... OK

Active 4 years ago
Joined Sep 2019
Points:
748

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 139
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.