lava + [meltable] -> lava + [meltable]_molten
which for this example will be lava + iron -> lava + iron_molten
- Check if the
Input2
has themeltable
tag,iron
does contain themeltable
tag - Store the name of the material with the
[meltable]
tag asStoredMat
, which isiron
- Split and store the substring of
Output2
asStoredSub
, which is_molten
- Replace the
Input1
material withOutput1
, which is islava
- Replace
Input2
withStoredMat
+StoredSub
, which combined becomesiron_molten
- Key
P
- Pixel that is attempting reactionsN
- Pixel chosen to be reacted withPM
- Material ofP
NM
- Material ofN
for (R in PM.Reactions) {
// Input is a [tag], e.g. [flammable]
if (IsTag(R.Input1)) {
}
// Input is a [tag]_substr, e.g. [meltable]_molten
else if (ContainsTag(R.Input1)) {
}
// Input matches the neighbor's ID
else if (R.Input1 == N.ID) {
}
}
- Logo where sand falls to fill in the letters/symbols