Search In
• More options...
Find results that contain...
Find results in...

# RegistryEvent for IRecipe in 1.13.2

## Recommended Posts

In 1.12.2 this has worked to get the event for IRecipe

```@SubscribeEvent
public void recipe(RegistryEvent.Register<IRecipe> e) {

}```

But this doesn`t work dany more.

So my question is how is the new way?

##### Share on other sites

Its probably not added in yet. There's a reason its called a beta.

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.

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

##### Share on other sites

Use JSON recipes.

##### Share on other sites

3 hours ago, diesieben07 said:

Use JSON recipes.

I know that. But I wanted to replace an existing recipe like in this post:

##### Share on other sites

No mod needed to change recipes:

## Join the conversation

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

×   Pasted as rich text.   Restore formatting

Only 75 emoji are allowed.

×   Your previous content has been restored.   Clear editor

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

×

• ### Posts

• You know you could just do the second if statement, right? Think about it. If the second one is true, the first one MUST be true. The vanilla code is then wrapped in an if-else that checks for flint and steel or fire charges, and a final else-return-super.
• What. Gross. First off, you could just loop ax = -1; ax <= 1 (same for y and z) and then use BlockPos.add(ax, ay, az) Or you could use the static method in the BlockPos class to get all blocks in range and iterate over the resulting collection (the MCP name was getAllInBox).   Older code, but example of the latter: https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/harderores/EventHandlers.java#L121
• I added this.registerDefaultState(this.defaultBlockState().setValue(UNSTABLE, Boolean.valueOf(false)) .setValue(POWER, 4)); to the constructor right after the super, but nothing has seemed to change.
• you never register the defaultState in the constructor of your block
• I have a custom TNT block which is meant to increase its power by 1 whenever given gunpowder, and I tried to make it put its power in a property instead of just a variable so I'd save, but nothing seems to change despite everything else working correctly. I know the explosion size changes correctly as it worked previously before using properties, and the only thing I've really done since it stopped working was add properties. Block class:   TNT entity class   Properties class:

• 3
• 4
• 3
• 7
• 6
• ### Who's Online (See full list)

×

• #### Activity

×
• Create New...