FastCraft

FastCraft

138k Downloads

Compatibility - ProRecipes (Tripwire Hooks)

Feeriix opened this issue ยท 25 comments

commented

Still seeing hook recipes with ProRecipes on v0.26.3.
https://snag.gy/bIkhce.jpg

Running PaperSpigot #916

commented

I forgot about this issue, sorry about that.
I don't believe Drepic has gotten around to improving the API. I will contact him about it.
For now, I think your best bet is still to blacklist the hooks.

commented

I added these values and it still shows up, am I doing something wrong?

results:
- ['minecraft:tripwire_hook']
- ['minecraft:tripwire_hook', 'ANY', '{display:{Name:"recipedshapeditem"}}']
commented

Now that the plugin is open source, is there an easy fix?

commented

Sorry that I didn't respond. I believe this should work:

results:
  tripwire hooks: ['minecraft:tripwire_hook']
  ProRecipes shaped: ['minecraft:tripwire_hook', 'ANY', '{display:{Name:"recipedshapeditem"}}']

I started working on re-writing FastCraft because there were some fundamental issues with handling recipes from other plugins. I'm changing how it handles recipes so recipes from other plugins are handled the same way they would be if they were crafted in a crafting table by the player. I can't say when I'll finally be able to release the changes, since I've been really busy with schoolwork, but I will make sure that it handles recipes from ProRecipes correctly.

commented

I just released v0.5, which has compatibility support for ProRecipes. I'm unable to test it, as I haven't purchased the plugin, so could you test the compatibility, and report back?

commented

http://i.imgur.com/480lXmY.png
"Crafting" it will give you the tripwire hook and take the crafting items.
But the recipe is correct, just need the name and correct result.

commented

Now I can see the custom items, but not their custom names.
Console spam: [FastCraftPlus] Can't find item name: ItemStack{AIR x 0}
http://i.imgur.com/ck5JOA8.png
Other than that, it seems to be working perfectly. Good work!

commented

On some recipes, the tripwire hook is there.
http://i.imgur.com/LgMwG9T.png

commented

The spam messages are disabled in this jar:
FastCraftPlus.zip

Is the tripwire hook a custom recipe? Or does that also happen without ProRecipes?

commented

Thanks. The hooks are shadow copies of the custom items with the same ingredient requirements.
Tested without ProRecipes, and they don't show up.

commented

Okay. I think I have an idea what is happening. I'll give you another jar
to test when I have some free time later, or maybe tomorrow.

On Tue, Apr 5, 2016 at 3:43 PM Feeriix [email protected] wrote:

Thanks. The hooks are shadow copies of the custom items with the same
ingredient requirements.
Tested without ProRecipes, and they don't show up.

โ€”
You are receiving this because you commented.

Reply to this email directly or view it on GitHub
#13 (comment)

commented

Can you give this a try?
FastCraftPlus.zip

commented

Names are shown correctly but the tripwire hooks are still there.
http://i.imgur.com/8rPhgQM.png
Only shaped recipes are affected.

commented

I just released v0.12. I'm not sure if it solved the problem, but please give it a try.

commented

This jar will print out a debug message in the console when ProRecipes items show up in the UI. Can you show me the output when the duplicate hooks are showing up?
FastCraftPlus.zip

commented

http://pastebin.com/CHVNSgrQ
Could it be a config issue perhaps?

commented

I think I'm seeing the problem. The hook recipes aren't recipes you registered, but for every recipe you create, a hook recipe is also created with the same ingredients. I'm going to contact the dev about it to figure out exactly what's happening, and how to fix it.

commented

Are you able to craft the tripwire hooks when you click on them?

commented

Yes

commented

The dev of ProRecipes is going to be adding something to the API that will let me hide the tripwire hooks. I'll let you know when I implement the fix.

commented

Any news on this?

commented

The developer has been busy with other things. You can try adding tripwire hooks to the blacklist config for now.

screenshot_2016-05-24-15-54-16

commented

Should be fixed in the latest release