-
Posts
157 -
Joined
-
Last visited
Converted
-
Gender
Male
-
Location
Belgium
-
Personal Text
Kweh! Master
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
Torojima's Achievements
Creeper Killer (4/8)
15
Reputation
-
my main mod class starts like this: @Mod(BuildHelperMod.MODID) public class BuildHelperMod { .... that should register the modid correctly, or not? The static MODID in the main class is only for using the name everywhere with only one position to define the string.
-
My recipes are creating a parsing error. For example: 19:21:07.311 game [19:21:07] [Render thread/ERROR] [minecraft/RecipeManager]: Parsing error loading recipe buildhelper:arrowwand_item 19:21:07.311 game com.google.gson.JsonSyntaxException: Unknown item 'buildhelper:arrowwand_item' I have just updated my mod from 1.18.2 to 1.19.2. Thus the asset files are still as they had been used in 1.18.2. My my recipe file with path/file name: resources/data/buildhelper/recipes/arrowwand_item.json has this content: { "type": "crafting_shaped", "pattern": [ " B", " - ", "D " ], "key": { "B":{ "item": "minecraft:bow" }, "-":{ "tag": "forge:rods/wooden" }, "D": { "item": "minecraft:diamond" } }, "result": { "item": "buildhelper:arrowwand_item" } } the item is registered like this: @Mod.EventBusSubscriber(bus=Mod.EventBusSubscriber.Bus.MOD) public static class RegistryEvents { @SubscribeEvent public void register(RegisterEvent registerEvent) { registerEvent.register(ForgeRegistries.Keys.ITEMS, helper -> { helper.register(new ResourceLocation(MODID, ItemArrowWand.NAME), new ItemArrowWand(new Item.Properties().stacksTo(1).tab(CreativeModeTab.TAB_TOOLS))); // -- snip -- more lines for all the other wands registred the same way } ); LOGGER.info("Torojima's Buildhelper Items registered."); } } MODID is public static final String MODID = "buildhelper"; in the mod main class, and the registered name is public static final String NAME = "arrowwand_item"; from the item class ... I have a number of items with similar recipe files and registries ... all with the same error. I'm at a loss where the mismatch is happening
-
I am trying to implement conditional recipes and therefore would like to create a class implementing IRecipeFactory. But in the latest forge I can not find this interface anymore. Any pointers where it went? Or if it is not present any more if and how it has been replaced?
-
???
-
That would be what I have in mind I haven't found anything regarding this in the docs. Do you have some pointers where I can find out how to do this?
-
really? yes, recipes are only in existence when the json file is created. What I have done is creating json files for recipes. This should be the default. But I want to give the users the opportunity to disable the recipes by a config file entry... anyway ...
-
is there a way to disable recipes of mod items? Thus having a boolean (that ultimately can be stored in the mods config) that will decide if an items recipe will be enabled. I was thinking of making certain items of my mod only available in creative or by directly creating it instead of creating it by crafting.
-
[solved][1.13.2] how to change item icons at run time?
Torojima replied to Torojima's topic in Modder Support
Thank you the property override works perfectly and after I recognised the models subfolder is called "item" instead of "items" like all the other subfolders, also the model json files have been found -
How do i make a block colorable exactly like the leather-armour?
Torojima replied to Drachenbauer's topic in Modder Support
I am still convinced a book is much better in the long run than any video. in a book you can mark pages with postits for later reference stop and exercise the learned yourself jump back and forth to your hearts content in seconds have the book next to your computer and using the monitor to actually doing what is described in the book reading it offline, for example sitting in the garden (ok, not very good right now in middle of Europe ) Videos are good for collecting a first impression, but in my experience, you'll need more than that. For example ... a book... If you don't want to pay the full price, buy a used book (rebuy.de, booklooker.de or ebay.de). Still I think you'll find many good books in your local library (they still a think in Germany, they are fully governmental subsidised and you will find a lot of good books, not only for programming, but everything else, including fiction.... read a book!). Last, but not least, if you can buy a computer, you can buy a book for 20 bucks. Invest in your future... I like the "Head First" approach, so look for "Head First Java" or in German "Java von Kopf bis Fuß". You will get it on amazon.de in the used section for 20 bucks ... -
[solved][1.13.2] how to use forge ore dictionary in recipes?
Torojima replied to Torojima's topic in Modder Support
oh, of course, I didn't think of that!! And aaargh, it changed from wood to wooden -
How do i make a block colorable exactly like the leather-armour?
Torojima replied to Drachenbauer's topic in Modder Support
My daughter (12) is using scratch to program a little cozmo robot and the Lego robotics system ... Everybody is hyping this scratch stuff over the horizon ... I am not convinced it is much more than a toy. It will give some rather shallow insights into programming, but will not teach anything about programming structures. Neither functional, nor object oriented ... Yes, it is possible to create some impressive stuff using scratch. I have seen a complete PID controller programmed in scratch, holding a Lego Robot on two wheels in the upright position. The script is completely mind bending, but it can be done. Nevertheless, the ppl doing that have used their deep understanding of programming and PID controllers received before playing with scratch, to do so @Draco18s Hehe, your analogy is splendid, I love it Edit.: second life is still a thing? I thought it died a well deserved death ages ago? -
How do i make a block colorable exactly like the leather-armour?
Torojima replied to Drachenbauer's topic in Modder Support
indeed, the link is for buying a book. There are other books and I have merely linked the first one I came across ... You could also went to the local Library and read one for free ... Yes there are as well free Java tutorials in the world wide web ... I am very confused you have not searched for them yourself at this point?! -
[Solved] [1.13.2] Logo image not showing in mods
Torojima replied to xerca's topic in Modder Support
btw, now that you've mentioned this, I think I had put the logoFile entry at first also beneath the [[mod]] entry and was puzzled why id didn't work. Only then I checked with the forge mods.toml (I am trying to remember why I have checked with the forge mods.toml in the first place) ... This actually could be a bug in the example mod ... -
How do i make a block colorable exactly like the leather-armour?
Torojima replied to Drachenbauer's topic in Modder Support
@Drachenbauer I think you have to start with something like this: https://www.amazon.de/Programmieren-lernen-mit-Java-Programmieranfänger/dp/3836256053/ref=sr_1_4?keywords=java+kurs&qid=1552152714&s=gateway&sr=8-4 I presume from your nick and your posts, you're more familiar with German than English ... (no, I won't get any bonus from other ppl clicking on the link) Modding is not just clicking some bits of code together copied (aka stolen) from other ppl, but intrinsic understanding programming as a craft. If you do not, you will not be successful with any kind of more sophisticated mod. This does not imply by any means others will not help you with their code samples. Just check one of the threads I had started earlier in this forum where I've discussed torch placement. There another modder basically told me "I am doing it like this" in two lines of code. I checked what the lines are doing, converted to my needs and implemented them into my code. My code is openly available on gitHub, like so many other mods sources. I encourage everybody to check it out and learn from it, like I like to read other modders codes to better understand what's going on. But I would not plainly copy their code, nor would I be very happy when other ppl are coping my code... So, your course of action would be - learn programming - learn Java - understand forge (at least a bit, I still are puzzled about it every now and then ;D) - start modding -
In 1.12.x there had been an minecraft vanilla class ItemMeshDefinition to define variable render icons based on whatever decision made in a method getModelLocation. This could be registered in public void onRegisterModels(ModelRegistryEvent event) using ModelBakery.registerItemVariants and ModelLoader.setCustomMeshDefinition. ItemMeshDefinition is no longer present in the Minecraft source and I don't think it's just a name change. I didn't find any respective class in the mc source. So, my question is how to create items with variable icons in 1.13.2? Does anybody has a pointer towards a respective doc or tutorial?