The Twilight Forest

The Twilight Forest

143M Downloads

Feat: Allow for multiple items to be used as portalCreationItem

justinrusso opened this issue ยท 8 comments

commented

This is a feature request to add support for multiple items to be added for the portalCreationItem.

The use case would be for situations where once the player is in the twilight, they have an alternative item they can use if needed to get back.

Current:

S:portalCreationItem=astralsorcery:itemcraftingcomponent

Suggested:

S:portalCreationItem <
    astralsorcery:itemcraftingcomponent
    minecraft:log
 >

Reference Issue: DarkPacks/SevTech-Ages#2626

commented

Also note, we'd have to change how we handle the meta value as well.

commented

FYI, I literally just wrote something that does what you need for Weirding Gadget
https://github.com/AtomicBlom/WeirdingGadget/blob/devel-1.12/src/main/java/com/github/atomicblom/weirdinggadget/WeirdingGadgetFuel.java

Just need to strip out the time components of the regex and it'll work a treat..

commented

Would it be possible to allow to set the side the item could only work on? As an optional argument to add to the end of the config input.

Use case for example in SevTech: Ages would be to enforce the route for the item in the overworld and as a secondary item for people who get stuck in the TF (who did not bring spare items) that item we set for secondary would only work on the TF. Thus allowing the pack to retain its enforcement tree. And still giving a secondary access back out which would only work in the TF if the player gets it's blown up or whichever.

commented

Hmmm alright.

commented

Was the option of considering adding the optional dimension Id talked about @Tamaized or @Drullkus?

commented

Check the config. It's been there for years.

commented

Believe they were referring to this comment: #535 (comment)

commented

Yeah, I'm quite confused on how he thought I meant about the actual dimension Id for the dimension itself ๐Ÿ˜• But yes I was refering to me comment about allowing an optional : entry for setting an item to only work for a portal on either side.