-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fbffaa3
commit 149a0f8
Showing
9 changed files
with
114 additions
and
4 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
src/generated/resources/.cache/c622617f6fabf890a00b9275cd5f643584a8a2c8
This file contains 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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
// 1.20.1 2023-10-12T22:09:59.3296691 Languages: en_us | ||
8b0152e07cd1a1ee30bf67cc31642c7f52bea792 assets/armourandtoolsmod/lang/en_us.json | ||
// 1.20.1 2023-10-16T08:43:51.7417297 Languages: en_us | ||
e9fb8de4e52cfdc1f2fca0cb36fbfb0c1d6ca5ed assets/armourandtoolsmod/lang/en_us.json |
This file contains 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 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
26 changes: 26 additions & 0 deletions
26
...n/kotlin/io/github/realyusufismail/armourandtoolsmod/core/init/EnchantmentCategoryInit.kt
This file contains 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,26 @@ | ||
/* | ||
* Copyright 2023 RealYusufIsmail. | ||
* | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* | ||
* you may not use this file except in compliance with the License. | ||
* | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.github.realyusufismail.armourandtoolsmod.core.init | ||
|
||
import io.github.realyusufismail.armourandtoolsmod.items.hammer.HammerItem | ||
import net.minecraft.world.item.enchantment.EnchantmentCategory | ||
|
||
object EnchantmentCategoryInit { | ||
val HAMMER = EnchantmentCategory.create("hammer") { item -> item is HammerItem } | ||
} |
This file contains 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
35 changes: 35 additions & 0 deletions
35
src/main/kotlin/io/github/realyusufismail/armourandtoolsmod/core/init/PotionsInit.kt
This file contains 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,35 @@ | ||
/* | ||
* Copyright 2023 RealYusufIsmail. | ||
* | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* | ||
* you may not use this file except in compliance with the License. | ||
* | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.github.realyusufismail.armourandtoolsmod.core.init | ||
|
||
import io.github.realyusufismail.armourandtoolsmod.ArmourAndToolsMod | ||
import net.minecraft.world.item.alchemy.Potion | ||
import net.minecraftforge.registries.DeferredRegister | ||
import net.minecraftforge.registries.ForgeRegistries | ||
import thedarkcolour.kotlinforforge.forge.ObjectHolderDelegate | ||
import thedarkcolour.kotlinforforge.forge.registerObject | ||
|
||
object PotionsInit { | ||
val POTION: DeferredRegister<Potion> = | ||
DeferredRegister.create(ForgeRegistries.POTIONS, ArmourAndToolsMod.MOD_ID) | ||
|
||
// WORTHY_POTION has no effect, it just an indication that the potion is worthy to use mjolnir | ||
public val WORTHY_POTION: ObjectHolderDelegate<Potion> = | ||
POTION.registerObject("worthy_potion") { Potion() } | ||
} |
This file contains 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 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
28 changes: 28 additions & 0 deletions
28
...ain/kotlin/io/github/realyusufismail/armourandtoolsmod/enchantment/SkyForgeEnchantment.kt
This file contains 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,28 @@ | ||
/* | ||
* Copyright 2023 RealYusufIsmail. | ||
* | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* | ||
* you may not use this file except in compliance with the License. | ||
* | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.github.realyusufismail.armourandtoolsmod.enchantment | ||
|
||
import io.github.realyusufismail.armourandtoolsmod.core.init.EnchantmentCategoryInit | ||
import net.minecraft.world.entity.EquipmentSlot | ||
import net.minecraft.world.item.enchantment.Enchantment | ||
|
||
/** Once applied to a hammer gives you the ability to fly. */ | ||
class SkyForgeEnchantment : | ||
Enchantment( | ||
Rarity.VERY_RARE, EnchantmentCategoryInit.HAMMER, arrayOf(EquipmentSlot.MAINHAND)) {} |