mirror of
https://github.com/GTNewHorizons/Tainted-Magic.git
synced 2026-11-26 06:43:06 +00:00
Flyte Charm, new materials, cleanup
This commit is contained in:
1 parent
c386c3fb6d
commit
b3c86af7e9
25 files changed
+401
-90
No files matched your search
@@ -184,20 +184,6 @@ public class TaintedMagicEventHandler
|
||||
@SubscribeEvent
|
||||
public void onCrafting (ItemCraftedEvent event)
|
||||
{
|
||||
if (event.crafting == new ItemStack(ItemRegistry.ItemWandCap, 1, 0))
|
||||
{
|
||||
EntityItem ent = event.player.entityDropItem(new ItemStack(ConfigItems.itemEldritchObject, 1, 3), 0);
|
||||
ent.motionY += randy.nextFloat() * 0.05F;
|
||||
ent.motionX += (randy.nextFloat() - randy.nextFloat()) * 0.1F;
|
||||
ent.motionZ += (randy.nextFloat() - randy.nextFloat()) * 0.1F;
|
||||
}
|
||||
if (event.crafting == new ItemStack(ItemRegistry.ItemWandRod, 1, 0))
|
||||
{
|
||||
EntityItem ent = event.player.entityDropItem(new ItemStack(ConfigItems.itemEldritchObject, 1, 3), 0);
|
||||
ent.motionY += randy.nextFloat() * 0.05F;
|
||||
ent.motionX += (randy.nextFloat() - randy.nextFloat()) * 0.1F;
|
||||
ent.motionZ += (randy.nextFloat() - randy.nextFloat()) * 0.1F;
|
||||
}
|
||||
if (event.crafting.getItem() == ItemRegistry.ItemMaterial && event.crafting.getItemDamage() == 5) giveResearch(event.player);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user