
yusufgamer
Members-
Posts
29 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
yusufgamer's Achievements

Tree Puncher (2/8)
0
Reputation
-
Getting the item to recognise the texture so a mix of both
-
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
-
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.
-
Auto generate builtin/entity for shiled data gen.
yusufgamer posted a topic in Support & Bug Reports
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() } -
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
-
How to add redstone ore effect to any ore
yusufgamer replied to yusufgamer's topic in Modder Support
Managed to do it. -
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
-
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
-
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
-
Custom RecipeBookType cause game to crash
yusufgamer replied to yusufgamer's topic in Support & Bug Reports
Fixed the issue. -
Custom RecipeBookType cause game to crash
yusufgamer replied to yusufgamer's topic in Support & Bug Reports
Thank you. Will see if i can do this. -
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