Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Matchbox #32

Open
realguyman opened this issue Nov 24, 2023 · 2 comments
Open

Add Matchbox #32

realguyman opened this issue Nov 24, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@realguyman
Copy link
Owner

realguyman commented Nov 24, 2023

Currently there's no method for crafting every unlit item inside of the inventory. In order to fix this inconvenience, I want to implement a matchbox that be can be crafted with red phosphorus, wood, and paper.

This involves creating several items and blocks:

  • Phosphorite Ore Block
  • Phosphorite Chunk
  • Red Phosphorus
  • Matchbox
@realguyman realguyman added the enhancement New feature or request label Nov 24, 2023
@realguyman realguyman self-assigned this Nov 24, 2023
@definitelynotklip
Copy link

definitelynotklip commented Jan 26, 2024

While you're working on this, I have created a viable working solution using CraftTweaker's script system. I am mostly making this post for people looking for an elegant way to do this in their current ongoing playthrough; I have been using this mod for a couple of years now, and the fact that I could never quite make use of the dynamic light system shaders (or LambDynamicLights) provided - like Realistic Torches - always bothered me.

You need to install CraftTweaker, and make a new .zs file named whatever you want inside the scripts folder in the main game directory. Copy and paste the following syntax into the file, then save your changes:

craftingTable.addShapeless("lit_torch", <item:minecraft:torch>,
[<item:totally_lit:unlit_torch>, <item:minecraft:flint_and_steel>.anyDamage().transformDamage()]);

craftingTable.addShapeless("lit_lantern", <item:minecraft:lantern>,
[<item:totally_lit:unlit_lantern>, <item:minecraft:flint_and_steel>.anyDamage().transformDamage()]);

Launch the game. Alternatively, if you were already in-game, use the /reload command. You should now be able to place a torch or a lantern alongside flint and steel anywhere in your crafting grid, and that will create a lit torch or a lantern respectively. The flint and steel degrades as if you used it on a regular extinguished item, and so do the torch / lantern once placed.

@realguyman
Copy link
Owner Author

@definitelynotklip As of release 0.13.5 a CraftTweaker script is no longer needed for the flint and steel recipes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants