Skip to content

Conversation

@AX3Lino
Copy link

@AX3Lino AX3Lino commented Jul 24, 2025

I made new item ArcaneCraftingUpgrade, that is tier higher than CraftingUpgrade. This upgrade does vanilla crafting and also arcane crafting (Thaumcraft). Made to broaden automatization possibilities for GTNH. To do the arcane craft wand/scepter need to be in robot`s inventory.

Tips:
research check and vis discount is based on player who created/put down the robot
vis discount is calculated based on what is players wearing, better idea would be to calculate using armor in robots inventory (not yet coded)
wand slot is leftmost slot under crafting slots in robot`s inventory (in lua slot 13)

Known issues:
rendering item on the back of robot is not ideal
recipe for this item does not show in nei, also it is open to change (it is defined just to work in user.recipes )
tooltip is same as CraftingUpgrade

@Dream-Master
Copy link
Member

@OneEyeMaker can you have a look ?

@Dream-Master Dream-Master added the 🚧 Testing on Zeta Do not merge yet, testing this PR on Zeta label Oct 2, 2025
Copy link

@Nikolay-Sitnikov Nikolay-Sitnikov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems ill-considered, so far.

if (playerMP != null) return playerMP
}
world.playerEntities.asScala.collectFirst {
case p: EntityPlayer if !p.getCommandSenderName.toLowerCase.contains("[oc]") => p

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grabbing any non-OC player on the server, including fake players & possibly incompatible players (like Salis Arcana's non-EntityPlayerMP player, which owns every research?) and using that for checking if the player owns the research? Brave move.

Funnily, this means you can use someone else's research & vis discounts by just logging off.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea my bad, I wasn't really sure how to implement it.


def craft(wantedCount: Int): Seq[_] = {
var player = host.player
val wandSlotIndex = 12 // Change this if your wand is in a different slot

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Who is supposed to change this, and how?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was setting open to change, before implementing.

}

countCrafted += result.stackSize
FMLCommonHandler.instance.firePlayerCraftingEvent(real_player, result, this)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, how nice, you're giving some player (possibly not even the owning player) warp for crafting the item. You're lucky that Salis Arcana fixes the crash that would happen if a fake player got warp added to them.

@Nikolay-Sitnikov
Copy link

Also, doesn't this make OpenComputers have a hard dependency on Thaumcraft? I don't see any code to disable the item if Thaumcraft isn't installed.

@Dream-Master Dream-Master removed the 🚧 Testing on Zeta Do not merge yet, testing this PR on Zeta label Dec 11, 2025
@chochem chochem added the Affects Balance Change affecting balance. Requires admin approval before merging. label Dec 16, 2025
@boubou19
Copy link
Member

@AX3Lino @Nikolay-Sitnikov any news on this PR?

@Nikolay-Sitnikov
Copy link

@boubou19 I'm converting this to draft for now, since I haven't heard much progress or justification for this change. I am not excluding the possibility that this may continue development, but I don't want it clogging up the review queue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Affects Balance Change affecting balance. Requires admin approval before merging.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants