Autocrafting

Post your coolest Hexcasting creations here.

New topics are NOT for chatting or asking help, put those in the comments of a post or in a different forum.
stevebutnottoomany
Posts: 9
Joined: Wed Dec 28, 2022 5:07 am

Autocrafting

Post by stevebutnottoomany »

https://imgur.com/6HBF0jv
Hexal powered crafting. Place items in itemframes, specify how many of thing you wish to craft with the top two abacus - their values are multiplied, here they're set to 2 and 64 to produce two stacks. The third abacus is a binary variable that determines whether the crafted items are passed to you or left in your nexus.

I got sick of doing this with staff casting, so I've made a little setup to simplify the process of using Hexal for crafting. I see two benefits of crafting with Hexal. The first is that it's automatable. The second is that for large-batch one-off crafting, for example if you want 20k chisseled stone brick for a build, you can process all the crafting in one go very easily.

Code: Select all

{
	{
		//1: list of lists
		//2: Number abacus positions
		//3: Binary abacus position
	}
	Bookkeeper's Gambit: v

	//Get the number of copies to make
	Scribe's Reflection
	Numerical Reflection: 2
	Selection Distillation                      //list of abacus positions
	Flock's Disintegration
	Entity Purification
	Chronicler's Purification
	Jester's Gambit
	Entity Purification
	Chronicler's Purification
	Multiplicative Distillation                 //number of thingies to make
	Huginn's Gambit

	Scribe's Reflection
	Numerical Reflection: 1
	Selection Distillation                      //list of list of item frame positions
	{
		//stack starts list of itemframe positions
		{
			//stack is item frame position
			Entity Purification
			Sorter's Purification               //stack is itemtype or air
			Stocktake Purification              //mote list or empty list
			Numerical Reflection: 0
			Selection Distillation              //mote or null
			Gemini Decomposition                //moteornull moteornull
			Nullary Reflection                  //moteornull moteornull null
			Equality Distillation               //moteornull trueifnull
			{
				{
					-
				}
			}
			Flock's Disintegration
			Bookkeeper's Gambit: v
			Augur's Exaltation
			Hermes' Gambit
			//stack is mote
			Muninn's Reflection                 //mote n
			Splitting Gambit                    //mote nmote
			Bookkeeper's Gambit: v-             //nmote        
		}
		Jester's Gambit                         //spell itemframelist
		Thoth's Gambit                          //list of motes/null
	}
	//list of lists, spell
	Jester's Gambit
	Thoth's Gambit                              //list of lists of motes

	Craft                                       //[crafted mote]
	Flock's Disintegration                      //crafted mote

	//Now we either spit it out, or stack it
	{
		//stacking it
		Stocktake Purification                  //[all motes of type crafted mote]
		Gemini Decomposition
		Numerical Reflection: 0
		Selection Distillation                  //[all motes of type crafted mote], mote
		Jester's Gambit
		Retrograde Purificatio
		Numerical Reflection: 0
		Selection Distillation                  //mote mote
		Stacking Distillation                   //mote
	}
	{
		//spitting it out
		Mind's Reflection
		Compass' Purification II
		Return Item
	}
	Numerical Reflection: 2
	Flock's Gambit
	Scribe's Reflection
	Numerical Reflection: 3
	Selection Distillation
	Flock's Disintegration
	Entity Purification
	Chronicler's Purification
	Selection Distillation
	Hermes' Gambit
}