Make A furnace have random outputs

Started by MrBOBERTAK on

Topic category: Advanced modding

Active 1 month ago
Joined Jun 2023
Points:
210

User statistics:

  • Modifications: 5
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 22
Make A furnace have random outputs

So, i have a block called Obsidian refiner, that works kinda like a furnace, once ou smelt the obsidian, there is 3 output blocks : 

 

i want that for each slot (03 04 and 02) there is a 50/50 chance of having obsidian dust, and 50/50 chance to get obsidian shard, how can i make that, for now i have no procedures for this furnace 

Active 7 months ago
Joined Sep 2023
Points:
148

User statistics:

  • Modifications: 2
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 34
if random[0,1] < 0.5  do set…
Sun, 11/12/2023 - 11:59

if random[0,1] < 0.5 

do set obsidian dust to slot3 

or set obsidian shard to slot 3

 

slot4 and 5 is same with above