-
Notifications
You must be signed in to change notification settings - Fork 5
Processing Tree Implementation and fix for #22 #21
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
Merged
EpicVon2468
merged 11 commits into
Create-Civilization:1.21.1
from
starpanda24825:1.21.1
Jun 28, 2026
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
23540ad
added DEPOSIT_DATA, two recipes, and textures
starpanda24825 ed77d73
updated processing tree, new items+fluids added, fully tested and fun…
starpanda24825 9235d88
added new textures, fixed custom block models, added new blockstates
starpanda24825 55d3747
???
starpanda24825 c248b63
more textures + completed processing tree + updated lootTables
starpanda24825 53fdb60
recipe file restructure
starpanda24825 ae2cf02
recipe polishing + balancing
starpanda24825 787e4b3
cast block pickup by hand+wrench_pickup, armour testing
starpanda24825 b06938e
Stop tracking bin/ and .vscode/ build/editor artifacts
starpanda24825 af2ac48
fluid bug fix, issue #22
starpanda24825 4221ef3
small voxel() helper function
starpanda24825 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
.../java/com/createcivilization/create_ore_deposits/registry/block/entries/cast/CastBlock.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| package com.createcivilization.create_ore_deposits.registry.block.entries.cast | ||
|
|
||
| import net.minecraft.core.BlockPos | ||
| import net.minecraft.world.level.BlockGetter | ||
| import net.minecraft.world.level.block.Block | ||
| import net.minecraft.world.level.block.state.BlockState | ||
| import net.minecraft.world.phys.shapes.CollisionContext | ||
| import net.minecraft.world.phys.shapes.Shapes | ||
| import net.minecraft.world.phys.shapes.VoxelShape | ||
|
|
||
| class CastBlock(properties: Properties) : Block(properties) { | ||
|
|
||
| override fun getShape( | ||
| state: BlockState, | ||
| level: BlockGetter, | ||
| pos: BlockPos, | ||
| context: CollisionContext | ||
| ): VoxelShape = SHAPE | ||
|
|
||
| companion object { | ||
| private fun voxel(value: Int): Double = value / 16.0 | ||
|
|
||
| private val SHAPE: VoxelShape = Shapes.box(voxel(3), voxel(0), voxel(5), voxel(13), voxel(3), voxel(11)) | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...m/createcivilization/create_ore_deposits/registry/item/CreateOreDepositsArmorMaterials.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| package com.createcivilization.create_ore_deposits.registry.item | ||
|
|
||
| import net.minecraft.core.Holder | ||
| import net.minecraft.resources.ResourceLocation | ||
| import net.minecraft.sounds.SoundEvents | ||
| import net.minecraft.world.item.ArmorItem | ||
| import net.minecraft.world.item.ArmorMaterial | ||
| import net.minecraft.world.item.crafting.Ingredient | ||
|
|
||
| import java.util.EnumMap | ||
|
|
||
| data object CreateOreDepositsArmorMaterials { | ||
|
|
||
| const val STEEL_DURABILITY: Int = 30 | ||
|
|
||
| @JvmField | ||
| val STEEL: Holder<ArmorMaterial> = Holder.direct( | ||
| ArmorMaterial( | ||
| EnumMap<ArmorItem.Type, Int>(ArmorItem.Type::class.java).apply { | ||
| put(ArmorItem.Type.BOOTS, 2) | ||
| put(ArmorItem.Type.LEGGINGS, 5) | ||
| put(ArmorItem.Type.CHESTPLATE, 7) | ||
| put(ArmorItem.Type.HELMET, 2) | ||
| put(ArmorItem.Type.BODY, 7) | ||
| }, | ||
| 9, | ||
| SoundEvents.ARMOR_EQUIP_DIAMOND, | ||
| { Ingredient.of(CreateOreDepositsItems.STEEL_INGOT.get()) }, | ||
| listOf(ArmorMaterial.Layer(ResourceLocation.withDefaultNamespace("netherite"))), | ||
| 1.5f, | ||
| 0.0f | ||
| ) | ||
| ) | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.