![]() Send message when a certain amount of items in slot This procedure removes the block at given x,y,z coordinates and then removes 4 blocks below it in proper order. It is increased 5 times, starting from 0. In this example, we create a global variable called level. In case of strict metadata check use = block compare block. The check ignores metadata as a = operator is used. This example checks for the block that is 1 block under the provided location. In case it is triggered, the block at x, y, z (these coordinates depend on the trigger that provides actual coordinate values) is removed. In this example, we show how to create an if the condition that triggers in 70% of the cases. Note that the following demonstrations were recorded in earlier versions of MCreator, thus resulting in the different layout. Basic procedure examplesīelow, you can find some basic examples of how to use procedure system that should help you get started with your custom procedures. In this case, the procedure named "Procedure" was selected to be triggered (executed) when the player right clicks in the air with the provided item. Used dependencies are shown as highlighted colors. On the animation above, you can see the procedure selection in action. If your procedure does world modifications and depends on the world reference, it can not be called from the trigger that does not hold the Minecraft world reference. Only procedures that require dependencies provided by the trigger are shown in the drop-down procedure selector. Each procedure has its set of dependencies that are shown in the procedure creator window. To trigger procedure from the external event, create a new mod element (for instance a block) and attach the procedure to the trigger (for instance on block right-clicked). You can define the global trigger in the start block selector. Procedure block flow can be activated using external triggers and/or with global events. The procedure will "flow" from the top to the bottom unless you use loop blocks. You need to attach all other blocks to this blocks to define a procedure. ![]() Start block is placed on the panel by default. After you click OK, procedure editor will open. To create and define a new procedure, create a new mod element and give it a name.
0 Comments
Leave a Reply. |