Skip to content

Create uranium power capability#736

Open
medsal15 wants to merge 3 commits into
lunar-sway:mainfrom
medsal15:uranium-capability
Open

Create uranium power capability#736
medsal15 wants to merge 3 commits into
lunar-sway:mainfrom
medsal15:uranium-capability

Conversation

@medsal15
Copy link
Copy Markdown
Contributor

Creates a capability for uranium power, working just like Neoforge's EnergyStorage capability. Also converts minestuck machines to use it instead of UraniumPowered.

Additionally removes the hardcoded fuel value for Raw Uranium by making it data-driven. The datamap is similar to furnace fuels, and includes the Uranium Block for 10 times the fuel.

Includes a few helpful additions, such as:

  • MachineUraniumHandler which is a pre-made uranium power handler.
  • UraniumPower.getUraniumPower which returns the uranium power of a given item stack and UraniumPower.hasUraniumPower which checks if it exists.
  • UraniumPowerSlot which replaces some InputSlots and only allows items that can provide uranium power.

UraniumPowered can be entirely removed if needed, but is only marked as deprecated because my mod uses it.

@Dweblenod Dweblenod added the enhancement New feature or request label May 13, 2026
@Dweblenod
Copy link
Copy Markdown
Member

Ooh quality! Shouldnt the uranium block only be 9 times as powerful?

@medsal15
Copy link
Copy Markdown
Contributor Author

I chose 10 times to be similar to coal and coal blocks, which smelt 8 and 80 items respectively.

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

Successfully merging this pull request may close these issues.

2 participants