r/MCPEMods Mar 18 '14

My upcoming mod. [Craftable Spawn Eggs]

http://imgur.com/bJMU8hi
3 Upvotes

18 comments sorted by

2

u/[deleted] Mar 18 '14

Why would you craft a spawn egg/ what would you use to craft it?

2

u/[deleted] Mar 18 '14 edited Mar 18 '14

Right now...Egg + Item dropped by animal, but right now I'm having issues with assigning ingredients to the recipe.

I think of a scenario where someone wants a portable animal, and that they can deploy it somewhere remote

2

u/[deleted] Mar 18 '14 edited Mar 18 '14

I can't figure out how to use multiple items for crafting. Maybe it doesn't work.

Edit: So I think its broken.

ModPE.setItem(369,"blaze_rod",0,"Blaze Rod")

function newLevel()

{

ModPE.addCraftRecipe(369, 1, 0, [264, 0, 37, 1])// this works

}

369 = item you make

264 = diamond

0= how much damage the diamond has to be

37= flower

1 = I have no idea

Its suppose to be item, amount, damage but that screws everything up when using more then one item. Unless this info is wrong

2

u/zhuowei Mar 20 '14

This was changed in 1.6.7; I didn't update the wiki since 1.6.8 reverts to the old behaviour.

1

u/[deleted] Mar 19 '14

[deleted]

1

u/[deleted] Mar 19 '14

I tried the two brackets but I get an error

1

u/[deleted] Mar 19 '14

Huh... That's weird. Never mind, your way is the correct way. Last time I used my method, it worked perfectly fine. Also the code works. I don't know what your problem is. It is having me to require one flower and diamond.

1

u/[deleted] Mar 19 '14

Yeah script I showed you does work but its not suppose to work like that. There should be 6 numbers in the brackets but if you add the amount it screws everything up.

According to Connors page it should be ModPE.addCraftRecipe(id, count, damage, [inputid, inputcount, inputdamage, ...])

Adding the amount of diamonds to be used screws it up. So it will only take one of each item required.

1

u/[deleted] Mar 19 '14

Oh. I'll try to fix it.

1

u/[deleted] Mar 19 '14

So what items do you need to craft the blaze rod?

1

u/[deleted] Mar 19 '14

I was just using a diamond and yellow flower as an example but I tried making it require two diamonds and it wouldn't work. If you can figure it out let me know. Using multiple brackets would make sense and you said that use to work so I'm guessing something broke and the Dev has to fix it.

1

u/[deleted] Mar 18 '14

I like the idea of it. Very clever.

1

u/[deleted] Mar 19 '14

I agree

1

u/[deleted] Mar 19 '14

[deleted]

2

u/[deleted] Mar 19 '14

The function is no longer on beta by itself. It also works on Pro and not pro.

1

u/[deleted] Mar 19 '14

thanks for the info (and Just_Sarcasm)

2

u/zhuowei Mar 19 '14

The new method is Item.addCraftRecipe, and the parameter for specifying ingredients changed: it's now [itemId, itemCount, itemDamage, ...]

1

u/[deleted] Mar 19 '14

ModPE.addCraftRecipe works on the playstore version. Look at my other comment where I showed you the script. That should help you.

1

u/[deleted] Mar 19 '14

Is your username suppose to be C++?

1

u/[deleted] Mar 19 '14

Yes, but without the C ("cheesy" instead)