your current location:首页 > news>Integrated power example tutorial_xinghui magic crystal automation (2) [ID] dynamic combination/integrated power

Integrated power example tutorial_xinghui magic crystal automation (2) [ID] dynamic combination/integrated power

2024-12-10 17:51:18|Myriagame |source:minecraft skins

This tutorial is set by the author to use the CC By-NC-SA protocol.

1. [Advanced] Automatically raising the size of the crystal to the maximum (simple)

This tutorial may be different according to the type of crystal. If you understand it, you can change some parameters based on the crystal you want to raise. Here is an celestial crystal as an example.

Automatic crystal can be divided into two parts: when the volume of the crystal reaches the maximum value (here is 900), recycled the crystal; when the crystal is recycled, it automatically puts a crystal.The original "thrower" ballistic is too uncomfortable (; ¬_¬)

First of all, put it in this way (you can play by yourself) to automate the automation of automatically putting the crystal, first open the "entity reader" to get a "physical number" variable card, which will return a "entity reader" aheadThe "list" of all entities in one grid. When there is nothing in this grid, you need to throw a crystal, so open the "logical programmer" to search for emptiness and find "operator: empty". Note that there are two. HereWhat needs is the one with the "list", and the entity number variable card just obtained by the input slot label is obtained."True" puts this variable card into the column of "throwing all items" of the "item thrower", and then put the physical number variable card into the "variable card box" that is connected to the network. If there is something in the box,You can see that an item is thrown out, but the items in the container connected in other interfaces in this network will be thrown out, so setting the channel.

Open the "Item Interface" interface channel "that connects the connected box above the upper connection box is a channel that is not used in use. Here is 2 and then open the" item thrower "."Set the part of the channel just put into the crystal of the channel, and now do the part of the recycling crystal.

Open the "entity reader" and get a physical variable card, which is no longer the previous physical number variable card."Logic programmer", search for entity, and find "operator: item (item)", enter the input slot labeling the newly obtained physical variable card, get a ITEM variable card with a return item (this step is for the later part of the preparation of the later part of the preparation, Directly use the entity to obtain the same effect of NBT), then search NBT, and find the "operator NBT (nbt ())" input slot label just record the ITEM variable card, get a piece of NBT that returns NBT NBT NBTVariable card, put this variable card into "screen", other variable cards in "variable card box", observe the NBT data of astronomical crystals."String", but he has several layers of nested NBT data, so you must first extract the first few layers of NBT data. Through TOP, you can see the keyword "string" is "ASTRALSORY".The second layer is "CrystalProperties", and the third layer is the NBT data required.

Therefore, open the logic programmer and create three "string" variables, the values ​​are "Astralsorcery", "CrystalProperties" and "SIZE", and then search for NBT and find "NBT data: nbt.tag ()) "The variable card and value of the NBT and value of the NBT in the left and right are the variable card of the string of" ASTRALSORCERY ".Position, the value of the variable card of the string of the string of "CrystalProperties", get the second layer of NBT data. With the screen, you can see the "392" corresponding to the "SIZE" as follows.Volume data, open "logic programmer", search for NBT, find "operator: NBT data: Treatment (NBT.INTEGER ())" The two -layer NBT data variable card just now.The string variable card, get a variable card that returns "integer", his value is the volume of the astronomical crystal in the star energy liquid.Recycling, so open the "logical programmer", create a "integer" variable card, 900, search, etc., find the "operator: equal (==)" input slotsIt is an integer variable card with a variable card with a volume of astronomical crystal and a value of 900. Get a variable card that returns to Boolean value. When the volume of the astronomical crystal in the star energy liquid is 900, the value of this variable card is "true".Otherwise, it is "false", and then put this variable card in the "item pickup port" picking up all items to complete it, and complete the automation construction.

However, there are many disadvantages of this automation, and you can only manually supplement the crystal of dissatisfaction in the box to work. It is not fully automatic. The next tutorial will solve this problem.Crystal

It is practical to solve this problem perfectly ..... The channel of the "item pickup port" of the previous tutorial and the channel of the "item throwing port" of this tutorialThe channel is changed to one, and the other one is changed to another. You can only have a full volume of crystal in one box, and there is only a crystal of dissatisfaction in the other box. It feels better ... Then why should I study so before?Do this test for a long time ...

In short, the next tutorial will still write how to extract the crystal with a volume of less than 900 in a box. After all, building a custom variable card is the essence of this MOD.