Ex Nihilo: Sequentia

Ex Nihilo: Sequentia

9M Downloads

[Request] TFC/AFC Silkworm Infestation Compat

Closed this issue ยท 2 comments

commented

Is there an existing suggestion for this?

  • I have searched the existing suggestions

Feature Description

I am requesting that a compat be added for TFC/AFC leaves when right clicking with a silkworm. Currently does nothing. Using KubeJS and the assistance of LadyLexxie (a mod developer), I wrote a server_script that does this. This script specifically excludes the tfc:fruit_tree_leaves tag, but that could be commented out if someone wanted to use silkworms on all leaves.

This is the code from the JavaScript file:

BlockEvents.rightClicked(event => {
    console.log('start')
    console.log(event.block.hasTag('minecraft:leaves'))
    if (!event.block.hasTag('minecraft:leaves')) return
    console.log(event.block.id)
    if (event.block.hasTag('tfc:fruit_tree_leaves')) return
    console.log(event.item.id)
    if (event.item.id != 'exnihilosequentia:silkworm') return
  
    event.block.set('exnihilosequentia:infesting_leaves')
    event.item.count--
  })

  //Created by DrWhoPrincess, and heavily tweaked by github.com/ladylexxie

Without this addition, the silkworm infestation ability becomes unusable in TFC.

Provided Benefit

Will allow players using this mod with TFC to obtain silk without having to turn on vanilla monsters.

Additional Context

No response

commented

unfortunatly due to issues on my side i can't add suggested tfc compat. but i created a new addon mod for tfc and i'll probably add more into that one addon itself.

commented

added tfc/afc support in exnihiloadditions.