Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.12] can I rely on GameRegistry crafting?


Socratic_Phoenix
 Share

Recommended Posts

As I understand it, 1.12 recipes should primarily be done through JSON, however, due to the nature of my mod, this isn't possible. I have to have at least one custom IRecipe implementation. The problem is, this implementation is not a generic recipe, and would only be initialized once. Therefore, it doesn't make sense to use JSON to declare a single recipe with no properties. Therefore, my question is, can I continue to rely on registering the recipe in GameRegistry/CraftingManager, or can I expect those methods to be removed/changed? Also (since IRecipe is now a registerable thing), would it be better to register this recipe in a RegistryEvent (is there one for recipes?)?

Edited by Socratic_Phoenix

Developer of Randores (adds 256^3 ores to the game) and Arcane Bags (adds ridiculous storage with ridiculous crafting recipes).

I know Java pretty well... So yeah...

Quote

This is where I'd put an inspirational and/or clever quote, but I can't think of one right now...

This is the output of the totally, 100% working compiler for my programming language, Planet9:

Beginning Compilation...
Failed compilation!
planet9.compiler.error.CompilationException: Compiler not yet implemented
	at planet9.compiler.Compiler.compile(Compiler.java:39)
	at planet9.compiler.app.CompilerApp.main(CompilerApp.java:147)

 

Link to comment
Share on other sites

You can't use a GamRegistry, as it doesn't exist.

A GameRegistery though, sure.

  • Like 1

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

4 minutes ago, Draco18s said:

You can't use a GamRegistry, as it doesn't exist.

A GameRegistery though, sure.

I'm not even sure what happened there... My keyboard is being weird. Anyway, thanks!

Developer of Randores (adds 256^3 ores to the game) and Arcane Bags (adds ridiculous storage with ridiculous crafting recipes).

I know Java pretty well... So yeah...

Quote

This is where I'd put an inspirational and/or clever quote, but I can't think of one right now...

This is the output of the totally, 100% working compiler for my programming language, Planet9:

Beginning Compilation...
Failed compilation!
planet9.compiler.error.CompilationException: Compiler not yet implemented
	at planet9.compiler.Compiler.compile(Compiler.java:39)
	at planet9.compiler.app.CompilerApp.main(CompilerApp.java:147)

 

Link to comment
Share on other sites

1 hour ago, Socratic_Phoenix said:

Therefore, it doesn't make sense to use JSON to declare a single recipe with no properties. 

Yes, actually it does.

Why special case shit when your recipe can be {"type": "my:custom_recipe"}

DONE!

SO HARD!

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Patreon: http://www.patreon.com/lexmanos
Paypal: http://paypal.me/LexManos

BitCoin: 1Q8rWvUNMM2T1ZfDaFeeYQyVXtYoeT6tTn

Link to comment
Share on other sites

2 hours ago, LexManos said:

Yes, actually it does.

Why special case shit when your recipe can be {"type": "my:custom_recipe"}

DONE!

SO HARD!

Oh... It's that simple? May as well follow convention then... Thanks

Developer of Randores (adds 256^3 ores to the game) and Arcane Bags (adds ridiculous storage with ridiculous crafting recipes).

I know Java pretty well... So yeah...

Quote

This is where I'd put an inspirational and/or clever quote, but I can't think of one right now...

This is the output of the totally, 100% working compiler for my programming language, Planet9:

Beginning Compilation...
Failed compilation!
planet9.compiler.error.CompilationException: Compiler not yet implemented
	at planet9.compiler.Compiler.compile(Compiler.java:39)
	at planet9.compiler.app.CompilerApp.main(CompilerApp.java:147)

 

Link to comment
Share on other sites

You *SHOULD* try and generic out your recipe so that others can use it or its more configurable. But yes some things are just that simple. 

Doing it via JSON only increases compatibility and configurability.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Patreon: http://www.patreon.com/lexmanos
Paypal: http://paypal.me/LexManos

BitCoin: 1Q8rWvUNMM2T1ZfDaFeeYQyVXtYoeT6tTn

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • Hello There! We are back today with some more Super Craft Bros and this time it's spooky edition! I just want to clarify there is nothing spooky about this it's just us in Halloween skins playing spooky themed maps. There are some pretty funny moments in this video that I know you guys are gonna love! I hope you all enjoy this video and if you did please consider subscribing and while you are at it give the video a like!  
    • Can you send the debug file from the logs folder?
    • So I'm making a custom container but I get the following error when I right click the block [20:28:58] [Render thread/WARN]: Failed to create screen for menu type: ewanmod:rune_pedestal code is here: https://pastebin.com/6g0E2p93
    • I have been following every solution I can from other threads, but nothing has seemed to work so far. My graphics card is a GTX 1650 as well, if that's the problem.  Here is my Launcher Log: https://pastebin.com/0EduJiS9 And here is the report from the 'latest' file in the logs: https://pastebin.com/CsiVmhWS Any sort of help would be much obliged 
    • Ok so what am I supposed to do cause for now there isn't any mod but I'm gonna add mods on the server when it's gonna work. I removed all the mods on my side and on the server and it didn't worked. Maybe my server.properties isn't correct ? #Minecraft server properties #Thu Oct 21 18:17:44 EDT 2021 spawn-protection=16 max-tick-time=60000 query.port=25565 generator-settings= sync-chunk-writes=true force-gamemode=false allow-nether=true enforce-whitelist=false gamemode=survival broadcast-console-to-ops=true enable-query=false player-idle-timeout=0 text-filtering-config= difficulty=easy spawn-monsters=true broadcast-rcon-to-ops=true op-permission-level=4 pvp=true entity-broadcast-range-percentage=100 snooper-enabled=true allow-cheats=true level-type=biomesop hardcore=false enable-status=true enable-command-block=true max-players=20 network-compression-threshold=256 resource-pack-sha1= max-world-size=29999984 function-permission-level=4 rcon.port=25575 server-port=25565 server-ip= spawn-npcs=true allow-flight=false level-name=Serveur view-distance=10 resource-pack= spawn-animals=true white-list=false rcon.password= generate-structures=true max-build-height=256 online-mode=true level-seed= prevent-proxy-connections=false use-native-transport=true enable-jmx-monitoring=false enable-rcon=false rate-limit=0 motd=Bienvenue dans le serveur de PatateDouce45
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.