Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# ⛏Create: Ore Deposits

**An addon for the [Create](https://modrinth.com/mod/create) mod**

This mod aims to add drills and deposits to allow for a more fair way to get large quantities of materials.

> **This mod is a work in progress.** Many features are uncompleted, unbalanced, placeholders, or entirely subject to change/removal.
>
> **THIS IS NOT READY FOR SURVIVAL PLAY**

---

## TODO

### Drill System
- [ ] Heat tooltip
- [ ] Tip type tooltip
- [ ] Lubricant tooltip
- [ ] Coolant tooltip
- [ ] Temperature affects tip durability
- [ ] Deposits require matching tip type
- [ ] Crafting recipes for drills and tips

### Fluids
- [ ] Tiered lubricants
- [ ] Tiered coolants

### Refinement
- [ ] Unprocessed ore items
- [ ] Refining recipe tree

### World & Polish
- [ ] Worldgen for ore deposits
- [ ] Textures & models
- [ ] Ponder scenes

---

## Contributing

This project is still "early" in development. Any contributions like textures, features, or even just balancing is GREATLY appreciated.
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ data object CreateOreDeposits {
}

private fun registerDataMapTypes(event: RegisterDataMapTypesEvent) {
event.register(CreateOreDepositsDataMaps.HARDNESS_DATA)
event.register(CreateOreDepositsDataMaps.DEPOSIT_DATA)
event.register(CreateOreDepositsDataMaps.COOLING_FACTOR_DATA)
event.register(CreateOreDepositsDataMaps.LUBRICANT_FACTOR_DATA)
}

@SubscribeEvent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,6 @@ data object Config {
internal val _baseTemperature: ModConfigSpec.DoubleValue =
builder.defineInRange("baseTemperature", 293.0, -Double.MAX_VALUE, Double.MAX_VALUE)
inline val baseTemperature: Float get() = _baseTemperature.get().toFloat()

@PublishedApi
internal val _dampening: ModConfigSpec.DoubleValue = builder.defineInRange("dampening", 0.008, 0.0, Double.MAX_VALUE)
inline val dampening: Float get() = _dampening.get().toFloat()

@PublishedApi
internal val _scale: ModConfigSpec.DoubleValue = builder.defineInRange("scale", 1.0, 0.0, Double.MAX_VALUE)
inline val scale: Float get() = _scale.get().toFloat()
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,19 @@ import net.minecraft.world.level.storage.loot.providers.number.ConstantValue

object CreateOreDepositsBlocks {

val EXAMPLE_DEPOSIT: BlockEntry<Block> = REGISTRATE.block("example_deposit", ::Block)
.initialProperties(SharedProperties::stone) // Specify your custom tab
.simpleItem()
.register()


val DRILL_BLOCK: BlockEntry<DepositDrillBlock> = REGISTRATE.block("deposit_drill", ::DepositDrillBlock)
.initialProperties(SharedProperties::stone)
.properties { it.mapColor(MapColor.PODZOL).noOcclusion() }
.transform(axeOrPickaxe())
.onRegister(movementBehaviour(DrillMovementBehaviour()))
.onRegister { b -> BlockStressValues.IMPACTS.register(b) { 4.0 } }
.onRegister { b -> BlockStressValues.IMPACTS.register(b) {100.0} }
.item()
.transform(customItemModel())
.register()

// TEMP LOOT VALUES, CHANGE LATER.
// Deposits
val EXAMPLE_DEPOSIT: BlockEntry<Block> = registerDepositGuaranteed("example_deposit", Blocks.STONE, Items.NETHERITE_BLOCK)
val COAL_ORE_DEPOSIT: BlockEntry<Block> = registerDeposit("coal_ore_deposit", Blocks.COAL_ORE, Items.COAL, 3f, 0.8f)
val IRON_ORE_DEPOSIT: BlockEntry<Block> = registerDepositSingleRoll("iron_ore_deposit", Blocks.IRON_ORE, Items.RAW_IRON, 0.8f)
val GOLD_ORE_DEPOSIT: BlockEntry<Block> = registerDepositSingleRoll("gold_ore_deposit", Blocks.GOLD_ORE, Items.RAW_GOLD, 0.6f)
Expand Down
Loading
Loading