Jump to content

Warren Tode

Members
  • Posts

    61
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Warren Tode

  1. This mod does it, so you could try looking at their code to get an idea of how they do it. Or, just use their mod. https://www.curseforge.com/minecraft/mc-mods/shutup-experimental-settings
  2. The information you're looking for is found here, on Loot Tables: https://minecraft.fandom.com/wiki/Loot_table And here, on Predicates: https://minecraft.fandom.com/wiki/Predicate So specifically, in this case, the Table Bonus is the probability parameters being set for the drops in regards to the Fortune enchantment. Survives explosion sets the probability of getting the block when an explosion occurs within the built in radius. If this isn't set, it's always successful. Not sure what else you need to know, but I'm sure you can find it on those two pages and whatever other links on them.
  3. Is there an official list of commonly used Forge tags posted somewhere that I can make use of for compatibility purposes? I've been looking but so far what I've been able to find has just been random users here and there that have shared what they've seen used most often. I already know to keep my tags as aligned with vanilla as much as possible, but I wanted to know if there was also an official Forge list to be aware of that I could make use of as well before I started making custom tags.
  4. Set up your serializer to read Item Stacks, then use the tags in your Json files. It will convert the tags to items automatically when crafting. Look at my files as an example here: The recipe type: https://github.com/toadie-odie/TodeVillagers/blob/10_glass_kiln_mostly_done/src/main/java/net/warrentode/todevillagers/recipes/GlassblowingRecipe.java Sample Json Recipe File using a tag for an ingredient: https://github.com/toadie-odie/TodeVillagers/blob/10_glass_kiln_mostly_done/src/main/resources/data/todevillagers/recipes/glass_from_glassblowing_sand.json I hope I fully understood what you're trying to do, and if so, I hope this helps.
  5. omg THANK YOU! I figured out how to use the break points and print outs and by doing that I was able to figure out that I had my check for fuel in the slot was placed in the wrong spot/order, so it wasn't firing. I had it nested within the check for matching recipe, when I needed the fuel check to happen first. So that's working exactly the way it's supposed to now. There's still a lot of other things I need to tweak/fix/clean up, but I'm marking this as solved and moving on to tinkering with other stuff for this entity. Again, thank you so much.
  6. To be completely honest, I've never thought to do that. My learning process in all this has been to just simply start over from scratch if I get completely stuck. I suppose in some ways I learn more that way through experimentation but this has been a sticking point for me for some reason. I will be looking into how to set breakpoints and print outputs to hopefully save me some time later down the road. Thank you.
  7. Because the type you need to put into the Json file is "minecraft:crafting_shapeless".
  8. I have a custom furnace with 4 input slots, which I got working correctly to read shaped recipe Json files. I was also able to get the result slot to only allow the player to remove items from it and set the fuel slot so that only fuel items can be placed into it. So all of that is working as intended. Now I'm trying to get it so that it burns the fuel and crafts the recipe when the fuel is burning. I'm using the ForgeHooks.getBurnTime() method, but nothing seems to be happening - or if something is, I don't have it set up correctly for what I need it to do. It looks like it's not actually detecting the fuel since my furnace doesn't consume it and no errors are popping up, which tells me I'm not pointing at the correct thing. Am I misunderstanding what this method does and completely setting it up wrong, or is there something else that I need to be looking at here because I missed something important somewhere? If I need to roll back and start over to make it work, that's fine too. Any insight would be greatly appreciated. https://github.com/toadie-odie/TodeVillagers/blob/08_Kiln_not_taking_fuel/src/main/java/net/warrentode/todevillagers/blocks/entity/GlassKilnBlockEntity.java
  9. Okay, this explains so much! And thank you for taking the time to go into detail on that for me. I now understand why the Json recipe error went away and I get why this other thing is still happening and how it's not a crisis. It's really cool to know that custom recipe book categories are an option now, but one thing at a time. lol There's so much to learn and tinker with over here. I'll bookmark your link for later. I feel like a kid in a candy store. Again, thank you.
  10. It looks like you're using a version of Forge for 1.19.0. If this is the case then you need to also change VILLAGER_PROFESSIONS to PROFESSIONS. Otherwise, upgrade your Forge version to a newer version. Anything for version 1.19.2 will work for the villager code you're using here. Not sure about the rest of your stuff since I haven't worked with code for crops and the like yet, but I'm sure if any of that breaks you can find what you need by cracking open the external libraries. Edit: also make sure your acquirable_job_site.json file is spelled correctly because if it isn't, the villager won't take the job and the game will not kick out an error either.
  11. I am new to modding in Forge, but I've played around with datapacks for quite some time. So I'm fairly comfortable with the whole "mess around and find out" when it comes to Json, but not so much with Java. All month I've been trying to make the warning "[minecraft/ClientRecipeBook]: Unknown recipe category" go away while trying to set up a custom shaped recipe for a custom furnace and not once did I think to actually test it to see if it worked, until I decided to look up what this warning actually meant. I found this old thread here, where it's stated that the warning is normal and unavoidable. So I went back and tested my recipes and turns out they work just fine. I'm super thrilled about the fact my Json recipe files are readable and working, but now I'm wondering why this warning is a normal thing and what exactly does it mean? Is it the same sort of thing that pops up in the IDE telling me that my custom recipe type listed in my custom Json file is unknown?
×
×
  • Create New...

Important Information

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