Jump to content

H_SerhatY

Members
  • Posts

    73
  • Joined

  • Last visited

Everything posted by H_SerhatY

  1. I'm solved the problem, I'm deleted everything. Because this forum is not for people like me.
  2. Hello, everybody. I'm making a lot of tools for my mod and these tools includes 50 different types of axe. But all of my axe have the same attack damage. package com.H_SerhatY.mstm.objects.tools; import com.H_SerhatY.mstm.Main; import com.H_SerhatY.mstm.init.ItemInit; import com.H_SerhatY.mstm.util.IHasModel; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.ItemAxe; import net.minecraft.item.Item.ToolMaterial; public class ToolAxe extends ItemAxe implements IHasModel { public ToolAxe(String name, ToolMaterial material) { super(material, 6.0F, -3.2F); setUnlocalizedName(name); setRegistryName(name); setCreativeTab(CreativeTabs.TOOLS); ItemInit.ITEMS.add(this); } @Override public void registerModels() { Main.proxy.RegisterItemRenderer(this, 0, "inventory"); } } I have this code for my axe. What should I do? (I don't have any coding experience, only I follow the tutorials in YouTube. Therefore, please specify in a way that I can understand.)
  3. Well, if I want to make smelting recipes with .json files, how can I do it? (I need to say, I don't have any coding experience, please describe it for me.)
  4. Hello, everybody. For a few days, I'm making an update to my mod. And I want to make my crafting recipes in the code, without using .json files. How can I make it?
  5. Hello. If you want to make a list for 1.13 tutorials, I make a list. - Development Environment - Main Mod Class - Proxies - Custom Items - Custom Blocks - Language File - Custom Creative Tab - Custom Tools - Custom Armors - Crafting and Smelting Recipes - Foods - Crops - Ore Gen - Ore Dictionary - Mobs(Standart Models) - Mobs(Custom Models) - Custom Workbench - Custom Furnace - Custom Chest - Special Tools(for example, a sword that drops mob heads, an axe that drops trees completely, etc.) - Special Armors(for example, a helmet that gives Night Vision, boots that gives Speed, etc.) - Customizable Tools(like Tinkers' Construct)
  6. Okey. Maybe I need to start with basic things. What I know: - Making Items - Making Blocks - Making Tools - Making Armors But I can't select anything basic except this ones. Because there is no basic things except this ones.
  7. I make custom version of BlockWorkbench. But I can't be sure doing it right. package com.H_SerhatY.MoreStrenghtenedToolsMod.blocks; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.block.state.IBlockState; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.InventoryPlayer; import net.minecraft.init.Blocks; import net.minecraft.inventory.Container; import net.minecraft.inventory.ContainerWorkbench; import net.minecraft.stats.StatList; import net.minecraft.util.EnumFacing; import net.minecraft.util.EnumHand; import net.minecraft.util.math.BlockPos; import net.minecraft.util.text.ITextComponent; import net.minecraft.util.text.TextComponentTranslation; import net.minecraft.world.IInteractionObject; import net.minecraft.world.World; public class MSTMWorkbench extends Block { protected MSTMWorkbench() { super(Material.IRON); this.setCreativeTab(CreativeTabs.DECORATIONS); } /** * Called when the block is right clicked by a player. */ public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ) { if (worldIn.isRemote) { return true; } else { playerIn.displayGui(new MSTMWorkbench.InterfaceCraftingTable(worldIn, pos)); playerIn.addStat(StatList.CRAFTING_TABLE_INTERACTION); return true; } } public static class InterfaceCraftingTable implements IInteractionObject { private final World world; private final BlockPos position; public InterfaceCraftingTable(World worldIn, BlockPos pos) { this.world = worldIn; this.position = pos; } /** * Get the name of this object. For players this returns their username */ public String getName() { return "mstm_workbench"; } /** * Returns true if this thing is named */ public boolean hasCustomName() { return false; } /** * Get the formatted ChatComponent that will be used for the sender's username in chat */ public ITextComponent getDisplayName() { return new TextComponentTranslation(Blocks.CRAFTING_TABLE.getUnlocalizedName() + ".name", new Object[0]); } public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn) { return new ContainerWorkbench(playerInventory, this.world, this.position); } public String getGuiID() { return "mstm:workbench"; } } } @Cadiboo
  8. Now, I need to make four classes? Or three?
  9. I'm looked at this but I can't find the GuiWorkbench, I find only thing related, GuiCrafting. Edit: Oh, it's VERY HARD. At least, I'm seeing it's VERY HARD.
  10. Correct. It's a normal crafting table texture. Now I'm going to make a block and take the codes from Minecraft's workbench. Edit: I find the BlockWorkbench and ContainerWorkbench but I can't find the GuiWorkbench.
  11. Hello. I want to make a crafting table for my mod items. How can I do it? Note: I don't know anything about that.
  12. I look the mod list, and there is 5 mod. Minecraft, MCP, FML, MC Forge and my mod. I understand this now. We don't need to use the sources file.
  13. Now I don't need to put the sources file in my mods folder?
  14. I don't understand anything.
  15. Hello. I build my mod but there is two files named "modid-1.0.jar" and "modid-1.0-sources.jar". Which file will be used in mods folder?
  16. Thank you. Before I say, I have problem with commas.
  17. [18:03:50] [main/ERROR] [FML]: Parsing error loading recipe mstm:emerald_boots com.google.gson.JsonParseException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 6 column 6 path $.pattern[2] at net.minecraft.util.JsonUtils.gsonDeserialize(JsonUtils.java:439) ~[JsonUtils.class:?] at net.minecraft.util.JsonUtils.fromJson(JsonUtils.java:485) ~[JsonUtils.class:?] at net.minecraftforge.common.crafting.CraftingHelper.lambda$loadRecipes$22(CraftingHelper.java:707) ~[CraftingHelper.class:?] at net.minecraftforge.common.crafting.CraftingHelper.findFiles(CraftingHelper.java:821) ~[CraftingHelper.class:?] at net.minecraftforge.common.crafting.CraftingHelper.loadRecipes(CraftingHelper.java:667) ~[CraftingHelper.class:?] at java.util.ArrayList.forEach(Unknown Source) [?:1.8.0_181] at net.minecraftforge.common.crafting.CraftingHelper.loadRecipes(CraftingHelper.java:619) [CraftingHelper.class:?] at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:742) [Loader.class:?] at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:329) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.init(Minecraft.java:581) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:421) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_181] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_181] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_181] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_181] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_181] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_181] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_181] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_181] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:25) [start/:?] Caused by: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 6 column 6 path $.pattern[2] at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1559) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.checkLenient(JsonReader.java:1401) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:560) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:414) ~[JsonReader.class:?] at com.google.gson.internal.bind.TypeAdapters$29.read(TypeAdapters.java:730) ~[TypeAdapters$29.class:?] at com.google.gson.internal.bind.TypeAdapters$29.read(TypeAdapters.java:739) ~[TypeAdapters$29.class:?] at com.google.gson.internal.bind.TypeAdapters$29.read(TypeAdapters.java:714) ~[TypeAdapters$29.class:?] at com.google.gson.internal.bind.TypeAdapters$35$1.read(TypeAdapters.java:910) ~[TypeAdapters$35$1.class:?] at net.minecraft.util.JsonUtils.gsonDeserialize(JsonUtils.java:435) ~[JsonUtils.class:?] ... 23 more This is the error. And it's giving same error for 6 recipes. { "type": "minecraft:crafting_shaped", "pattern": [ "E E", "E E", ], "key": { "E": { "item": "minecraft:emerald" } }, "result": { "item": "mstm:emerald_boots", "count": 1 } } This is the class. What can I do?
  18. I don't want anything. I only want, you will be go out from my threads and don't reply to me. Because I'm going to be hate from modding.
  19. I don't understand, you are true. And I thinked that again, I don't need to make a mod. I don't need to be a developer. I don't need this technology. I don't need to use computer. I don't need internet. I only need to work for quiz. Okey. If you are happy, don't reply this. And if you are happy, don't reply this too. @Animefan8888
  20. OKEY. LEAVE ME ALONE LIKE THAT, OKEY? I WANT TO MAKE THAT AND I DON'T WANT TO WAIT, MAN! YOU ARE DON'T UNDERSTAND ME!
  21. Okey, what can I use? A lot of codes that I don't know?
  22. I don't using MCreator. I'm using Eclipse. I only say, can I apply codes from MCreator to Eclipse.
  23. I have an idea. If I make an random item in MCreator with enchantment, and I look at this item's code, can I apply these codes to Eclipse?
×
×
  • Create New...

Important Information

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