Need help with making a procedure.

Started by yeastus on Thu, 04/15/2021 - 06:58

Topic category: Help with MCreator software

Last seen on 03:52, 29. Apr 2021
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Need help with making a procedure.
Thu, 04/15/2021 - 06:58

I wish to make a procedure, but it is (at least to me) very complicated and I have almost no knowledge of how to make advanced procedures.

 

So for an example, if I threw glass onto dirt, the dirt would become a diamond block. The diamond block, if glass was thrown on it, would check for nearby dirt blocks and randomly choose one to make into a diamond block. Alongside this, if the glass is thrown onto a block that is not a valid block to transform, it basically does a setblock for it's position for another block, say a gold block. So if you threw glass on concrete, it would become a gold block on top of the concrete, and if it was thrown on dirt, it would make the dirt into a diamond block. I would want it to do the same set block as the gold block value as well if it is put on fire, so you can't destroy it without setting the gold block.

If any clarifications on what I'm trying to do are wanted, please feel free to ask questions.

This is not how I actually want to implement it, but if I can get a working procedure it'd just be replacing IDs.

I'm not asking you to do it for me, what I'm asking here is if someone who knows how procedures work, or how this could be done could help me along the process of getting there myself so I can maybe start to understand how these procedures work, and be able to create them without help.

Last seen on 17:40, 9. May 2022
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
this is very complicated but…
Thu, 04/15/2021 - 07:00

this is very complicated but should be  possible

check for thrown item if under it is BLOCK then do this else do this

Last seen on 03:52, 29. Apr 2021
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I don't know how to do any…
Thu, 04/15/2021 - 07:21

I don't know how to do any of those checks, my knowledge of procedures is 0. I've found a few snippets of blocks that look like they are helpful but I don't know how to put it together. For example, if this procedure was triggered when a specific item was dropped, that means I don't need to check what the item is or anything. How would I check for the block below it and say like if it is dirt, then, if not, then. I understand how an if then statement works but I'm having trouble with the parts connecting to them. Not sure if I'm being clear or not, feel free to ask me to clarify myself.

Last seen on 03:52, 29. Apr 2021
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Actually I also need to…
Thu, 04/15/2021 - 07:52

Actually I also need to figure out how to do a check for whenever the item is dropped at all by anything which I don't know how to do because I just do it by when dropped by player you could drop it with a dispenser and completely ignore the entire thing.