-
Notifications
You must be signed in to change notification settings - Fork 17
CT Context
Frinn38 edited this page Apr 27, 2022
·
2 revisions
It contains various methods for interacting with the machine.
Get the remaining crafting time
Return a decimal value that represent the time in ticks before the end of the current recipe process.
This value does not take into account any speed modifiers applied to the machine.
.requireFunctionEachTick((ctx as Context) => {
var time = ctx.remainingTime;
//Use time here
})
Get the machine as a tile entity
Return a MCTileEntity, you can use it to get various informations about the machine, see the linked CT wiki page.
.requireFunctionEachTick((ctx as Context) => {
var tile = ctx.tile;
//Use tile here
})
Get the machine as a custom machine
Return a Custom Machine, you can use it to check, input and output energy, fluids and items from/to the machine.
.requireFunctionEachTick((ctx as Context) => {
var machine = ctx.machine;
//Use machine here
})
3. Machine GUI
- Dump Element
- Energy Element
- Fluid Element
- Fuel Element
- Player Inventory Element
- Progress Bar Element
- Reset Element
- Slot Element
- Status Element
- Text Element
- Texture Element
5. Catalysts
- Biome Requirement
- Block Requirement
- Command Requirement
- Dimension Requirement
- Drop Requirement
- Durability Requirement
- Effect Requirement
- Energy Requirement
- Energy Per Tick Requirement
- Entity Requirement
- Fluid Requirement
- Fluid Per Tick Requirement
- Fuel Requirement
- Item Requirement
- Light Requirement
- Loot Table Requirement
- Position Requirement
- Structure Requirement
- Redstone Requirement
- Time Requirement
- Weather Requirement