Tips and tricks for the new procedure system

Submitted by Klemen on Sun, 05/06/2018 - 17:44
Tips and tricks for the new procedure system

There have been many questions on MCreator's website on how to use procedure system. We have decided to create a getting started guide for the new procedure system.

We have created a separate wiki page for this purpose. Old event related pages were marked as "legacy" on our wiki, but we will keep them on the website for the users of older MCreator versions.

Many users complained that they can not make things that were possible in event system before. This is not true, however. Just the way how to achieve the same effect is now different. Everything that was possible before is still possible, even with many more options and combinations. This new procedure system is very similar to the one found in Scratch editor. The block system framework we use is called Blockly and is developed by Google. It allows us to make a visual programming experience that was never possible before.

On the procedures wiki page, there are examples of procedures including the explanation of trigger and dependencies. Below, you can see an example of how to make a random possibility condition in the new procedure system.

Random possibility

In this example, we show how to create an if condition that triggers in 70% of the cases. In case it is triggered, the block at x, y, z (these coordinates depend on the trigger that provides actual coordinate values) is removed.

Random possibility of event in the procedure editor

Examples such as the one provided in the citation above and many others can be found on our wiki on the new page dedicated to procedures.

Procedure system wiki page

We will update this wiki page with more examples in the future. If you would like to see a specific example, comment on this post and we will select the best requests and add them to the wiki page. Right now, only some procedures that were most commonly asked are shown. These include examples of how to create conditions that could previously be made using the event condition text box.

Share this on:

Comments

Is there any way to wait in between a action in a procedure?

Actually a procedure is a Minecraft tick (1/20 seconds), so the only way for doing so is adding a global variable, then adding something that makes the global variable increase at the end of the procedure and adding an "if" condition that checks the value of the variable, does something and resets the variable. Rember to put big numbers in the "if" condition (if you'll put 100 it will wait 5 seconds, 100:20=5)
Sorry for bad English

They removed all events (global events included) and added procedures instead.
For making a gloval event, change the additional trigger in the green block on the top of the procedure

Submitted by thomas2000 on Sat, 05/19/2018 - 14:44

With this new system it is no longer possible to make advanced commands like /give because you can no longer use subcommands. I used to make commands like /tp %1 %2 %3 or /give %1 but now all of those advanced options are gone.

This is another thing we missed in procedure system. The same goes with the GUI text fields. Consider opening a support ticket and we will resolve it in next release.

this is hard to undersand i have never be work with this

so what well you more update maybe in the new verions make own sea beast or bg houses or animate armor or trees make in wired ways or more of gui want i miss some stuff that i have great ideas

Submitted by TTrixPlays on Tue, 05/22/2018 - 05:18

Im changing back to 1.7.8 the recipies are missing and I dont want to create a seperate file for them

You will be missing quite a lot of bug fixes and features by swapping this for a very minor change. And keep in mind we do not offer any support for unsupported versions.

for the item creator can you make a 5 line?