Skip to content

Commit

Permalink
Clovers
Browse files Browse the repository at this point in the history
  • Loading branch information
miyucomics committed Jul 6, 2024
1 parent 41e0f99 commit dd9370a
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 8 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ key = "mod_version"

[tool.hatch.metadata.hooks.gradle-properties]
dependencies = [
{ package="hexdoc-hexcasting", op="~=", py-version="1.0.dev20", key="hexcastingVersion" },
{ package="hexdoc-hexcasting", op="~=", py-version="1.0.dev20", key="hexcasting_version" },
]

[tool.hatch.metadata.hooks.gradle-properties.optional-dependencies]
Expand Down Expand Up @@ -115,4 +115,4 @@ reportUnusedClass = "warning"
reportUnusedExpression = "warning"
reportUnusedFunction = "warning"
reportUnusedImport = "warning"
reportUnusedVariable = "warning"
reportUnusedVariable = "warning"
2 changes: 1 addition & 1 deletion src/main/java/miyucomics/hexical/registry/HexicalItems.kt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ object HexicalItems {
ModelPredicateProviderRegistry.register(SMALL_LIVING_SCROLL_ITEM, Identifier("aged")) { stack: ItemStack, _: ClientWorld?, _: LivingEntity?, _: Int -> if (stack.orCreateNbt.getBoolean("aged")) 1f else 0f }
ModelPredicateProviderRegistry.register(MEDIUM_LIVING_SCROLL_ITEM, Identifier("aged")) { stack: ItemStack, _: ClientWorld?, _: LivingEntity?, _: Int -> if (stack.orCreateNbt.getBoolean("aged")) 1f else 0f }
ModelPredicateProviderRegistry.register(LARGE_LIVING_SCROLL_ITEM, Identifier("aged")) { stack: ItemStack, _: ClientWorld?, _: LivingEntity?, _: Int -> if (stack.orCreateNbt.getBoolean("aged")) 1f else 0f }
ModelPredicateProviderRegistry.register(CONJURED_STAFF_ITEM, Identifier("sprite")) { stack: ItemStack, _: ClientWorld?, _: LivingEntity?, _: Int -> stack.orCreateNbt.getFloat("sprite") }
ModelPredicateProviderRegistry.register(CONJURED_STAFF_ITEM, Identifier("sprite")) { stack: ItemStack, _: ClientWorld?, _: LivingEntity?, _: Int -> stack.orCreateNbt.getFloat("sprite") / 10 }
ModelPredicateProviderRegistry.register(CONJURED_COMPASS_ITEM, Identifier("angle"), CompassAnglePredicateProvider(CompassTarget { _: ClientWorld?, stack: ItemStack?, player: Entity? ->
if (player != null && stack != null && stack.hasNbt()) {
val nbt = stack.nbt!!
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
{
"parent": "minecraft:item/handheld_rod",
"textures": {
"layer0": "hexical:item/conjured_staff/staff"
"layer0": "hexical:item/conjured_staff"
},
"overrides": [
{
"predicate": {
"sprite": 0.5
"sprite": 0.1
},
"model": "hexical:item/conjured_staff_clover"
},
{
"predicate": {
"sprite": 0.2
},
"model": "hexical:item/conjured_staff_handbell"
},
{
"predicate": {
"sprite": 1
"sprite": 0.3
},
"model": "hexical:item/conjured_staff_key"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "hexical:item/conjured_staff_clover"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "hexical:item/conjured_staff/key"
"layer0": "hexical:item/conjured_staff_handbell"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "hexical:item/conjured_staff/handbell"
"layer0": "hexical:item/conjured_staff_key"
}
}
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit dd9370a

Please sign in to comment.