Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

yusufgamer

Members
  • Joined

  • Last visited

  1. yusufgamer replied to knoxi's topic in Modder Support
    @knoxiwhat was the fix
  2. Getting the item to recognise the texture so a mix of both
  3. I’m struggling to deal with the textureing of shields. I have the current code https://github.com/RealYusufIsmail-Mc-Mods/Armour-and-Tools-Mod/blob/main/src/main/kotlin/io/github/realyusufismail/armourandtoolsmod/core/init/ItemInit.kt#L235 but I don’t get how to make the texturing of the shield work. Like link with it the shield json
  4. I have the current code https://github.com/RealYusufIsmail-Mc-Mods/Armour-and-Tools-Mod/blob/main/src/main/kotlin/io/github/realyusufismail/armourandtoolsmod/core/init/ItemInit.kt#L235 but I don’t get how to make the texturing of the shield work. Like link with it the shield json.
  5. I have the current code when i try to generate it it says Model at :builtin/entity does not exist. How would i get ride of the : private fun shield(block: Block, item: Item) { val name = item.name getBuilder(name) // "builtin/entity" .parent( // need to remove minecraft: somehow ModelFile.ExistingModelFile( ResourceLocation("", "builtin/entity"), existingFileHelper)) .guiLight(BlockModel.GuiLight.FRONT) .texture("particle", "block/${block.bName}") .transforms() .transform(ItemDisplayContext.THIRD_PERSON_RIGHT_HAND) .rotation(0f, 90f, 0f) .translation(10f, 6f, -4f) .scale(1f, 1f, 1f) .end() .transform(ItemDisplayContext.THIRD_PERSON_LEFT_HAND) .rotation(0f, 90f, 0f) .translation(10f, 6f, 12f) .scale(1f, 1f, 1f) .end() .transform(ItemDisplayContext.FIRST_PERSON_RIGHT_HAND) .rotation(0f, 180f, 5f) .translation(-10F, 2F, -10F) .scale(1.25f, 1.25f, 1.25f) .end() .transform(ItemDisplayContext.FIRST_PERSON_LEFT_HAND) .rotation(0f, 180f, 5f) .translation(-10F, 0F, -10F) .scale(1.25f, 1.25f, 1.25f) .end() .transform(ItemDisplayContext.GUI) .rotation(15F, -25F, -5F) .translation(2F, 3F, 0F) .scale(0.65f, 0.65f, 0.65f) .end() .transform(ItemDisplayContext.FIXED) .rotation(0F, 180F, 0F) .translation(-4.5F, 4.5F, -5F) .scale(0.55F, 0.55F, 0.55F) .end() .transform(ItemDisplayContext.GROUND) .rotation(0F, 0F, 0F) .translation(2F, 4F, 2F) .scale(0.25F, 0.25F, 0.25F) .end() .end() .override() .predicate(mcLoc("blocking"), 1f) .model(getExistingFile(mcLoc("item/$name"))) .end() shieldBlock(block, item) } private fun shieldBlock(block: Block, item: Item) { val name = item.name + "_blocking" getBuilder(name) .parent(ModelFile.UncheckedModelFile(ResourceLocation("builtin/entity"))) .guiLight(BlockModel.GuiLight.FRONT) .texture("particle", "block/${block.bName}") .transforms() .transform(ItemDisplayContext.THIRD_PERSON_RIGHT_HAND) .rotation(45F, 135F, 0F) .translation(3.51F, 11F, -2F) .scale(1F, 1F, 1F) .end() .transform(ItemDisplayContext.THIRD_PERSON_LEFT_HAND) .rotation(45F, 135F, 0F) .translation(13.51F, 3F, 5F) .scale(1F, 1F, 1F) .end() .transform(ItemDisplayContext.FIRST_PERSON_RIGHT_HAND) .rotation(0F, 180F, -5F) .translation(-15F, 5F, -11F) .scale(1.25f, 1.25f, 1.25f) .end() .transform(ItemDisplayContext.FIRST_PERSON_LEFT_HAND) .rotation(0F, 180F, -5F) .translation(-15F, 5F, -11F) .scale(1.25f, 1.25f, 1.25f) .end() .transform(ItemDisplayContext.GUI) .rotation(15F, -25F, -5F) .translation(2F, 3F, 0F) .scale(0.65f, 0.65f, 0.65f) .end() .end() }
  6. I am having an issue where when I mine it an ore nothing is dropped and it takes a long time even though it should be mined quickly as it meant to be like a redstone ore. I have the bootable for it and I am using the right tool. My code : https://github.com/RealYusufIsmail-Mc-Mods/Armour-and-Tools-Mod/blob/armour/src/main/kotlin/io/github/realyusufismail/armourandtoolsmod/core/init/BlockInit.kt#L46
  7. How would i add the redstone ore effect to any ore. so far I have val RUBY_ORE = registerSmeltAbleBlock( "ruby_ore", ItemInit.RUBY, BlockBehaviour.Properties.copy(Blocks.REDSTONE_ORE) .requiresCorrectToolForDrops() .randomTicks() .lightLevel(litBlockEmission(10))) but I don't get the redstone effect
  8. fixed. Caused by the koltin enum system. I had name for getName instead of oreName which gave you the enum name
  9. at this part ``` String s1 = String.format(java.util.Locale.ROOT, "%s:textures/models/armor/%s_layer_%d%s.png", domain, texture, (usesInnerModel(slot) ? 2 : 1), type == null ? "" : String.format(java.util.Locale.ROOT, "_%s", type)); ``` The name of the armour piece is in caps for some reason
  10. I get this error when i try to put an armour set I created but I don't understand what the error means as the ruby textures are named correctly and doubled checked this. https://github.com/RealYusufIsmail-Mc-Mods/Armour-and-Tools-Mod/tree/armour/src/main/resources/assets/minecraft/textures/models/armor
  11. I keep getting this error and have no idea how to fix it. I have tired for about one day but managed to fix another issue which coincided with this one but no luck here. My error log : https://gist.github.com/RealYusufIsmail/b2278cdad3b09e74df638482cfe8ea05 My code : https://github.com/RealYusufIsmail-Mc-Mods/Armour-and-Tools-Mod/blob/recipe/src/main/kotlin/io/github/realyusufismail/armourandtoolsmod/core/blocks/armour/CustomArmourCraftingTableScreen.kt
  12. Thank you. Will see if i can do this.
  13. I tried creating my own RecipeBookType enum class RecipeBookTypeInit { ARMOUR_CRAFTING; /** Returns the recipe book type for this container. */ fun get(): RecipeBookType { return RecipeBookType.create(name.lowercase().replace("_", "")) } } But when i run the game click on my custom crafting table gui it crashes and i get an out of bond exception java.lang.ArrayIndexOutOfBoundsException: Index 4 out of bounds for length 4 at java.util.EnumMap.get(EnumMap.java:244) ~[?:?] {} at net.minecraft.stats.RecipeBookSettings.isOpen(RecipeBookSettings.java:30) ~[forge-1.19.3-44.1.0_mapped_parchment_2022.12.18-1.19.3-recomp.jar:?] {re:classloading} at net.minecraft.stats.RecipeBook.isOpen(RecipeBook.java:69) ~[forge-1.19.3-44.1.0_mapped_parchment_2022.12.18-1.19.3-recomp.jar:?] {re:classloading} at net.minecraft.client.gui.screens.recipebook.RecipeBookComponent.isVisibleAccordingToBookData(RecipeBookComponent.java:162) ~[forge-1.19.3-44.1.0_mapped_parchment_2022.12.18-1.19.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.gui.screens.recipebook.RecipeBookComponent.tick(RecipeBookComponent.java:240) ~[forge-1.19.3-44.1.0_mapped_parchment_2022.12.18-1.19.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at io.github.realyusufismail.armourandtoolsmod.core.blocks.armour.CustomArmourCraftingTableScreen.containerTick(CustomArmourCraftingTableScreen.kt:79) ~[main/:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.gui.screens.inventory.AbstractContainerScreen.tick(AbstractContainerScreen.java:631) ~[forge-1.19.3-44.1.0_mapped_parchment_2022.12.18-1.19.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.lambda$tick$39(Minecraft.java:1830) ~[forge-1.19.3-44.1.0_mapped_parchment_2022.12.18-1.19.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.gui.screens.Screen.wrapScreenError(Screen.java:530) ~[forge-1.19.3-44.1.0_mapped_parchment_2022.12.18-1.19.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.tick(Minecraft.java:1829) ~[forge-1.19.3-44.1.0_mapped_parchment_2022.12.18-1.19.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.runTick(Minecraft.java:1123) ~[forge-1.19.3-44.1.0_mapped_parchment_2022.12.18-1.19.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.run(Minecraft.java:718) ~[forge-1.19.3-44.1.0_mapped_parchment_2022.12.18-1.19.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.main.Main.run(Main.java:212) ~[forge-1.19.3-44.1.0_mapped_parchment_2022.12.18-1.19.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.main.Main.main(Main.java:51) ~[forge-1.19.3-44.1.0_mapped_parchment_2022.12.18-1.19.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {} at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] {} at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {} at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] {} at net.minecraftforge.fml.loading.targets.ForgeClientUserdevLaunchHandler.lambda$launchService$0(ForgeClientUserdevLaunchHandler.java:25) ~[fmlloader-1.19.3-44.1.0.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) ~[modlauncher-10.0.8.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) ~[modlauncher-10.0.8.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) ~[modlauncher-10.0.8.jar:?] {} at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) ~[modlauncher-10.0.8.jar:?] {} at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) ~[modlauncher-10.0.8.jar:?] {} at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) ~[modlauncher-10.0.8.jar:?] {} at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) ~[modlauncher-10.0.8.jar:?] {} at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) ~[bootstraplauncher-1.1.2.jar:?] {} In there error it refers to CustomArmourCraftingTableScreen recipeBookComponent. Do i need to create my own? CustomArmourCraftingTableScreen full code : https://github.com/RealYusufIsmail/Armour-and-Tools-Mod/blob/1.19.3-1.0.0.alpha.5/src/main/kotlin/io/github/realyusufismail/armourandtoolsmod/core/blocks/armour/CustomArmourCraftingTableScreen.kt

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.