mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-25 06:24:37 +00:00
Slime islands
This commit is contained in:
1 parent
1a584a74f2
commit
48c3288b8f
37 files changed
+170
-389
No files matched your search
@@ -25,11 +25,13 @@ import net.minecraft.util.EnumMovingObjectType;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.chunk.Chunk;
|
||||
import net.minecraftforge.event.Event.Result;
|
||||
import net.minecraftforge.event.Event;
|
||||
import net.minecraftforge.event.ForgeSubscribe;
|
||||
import net.minecraftforge.event.entity.living.LivingDeathEvent;
|
||||
import net.minecraftforge.event.entity.living.LivingDropsEvent;
|
||||
import net.minecraftforge.event.entity.living.LivingHurtEvent;
|
||||
import net.minecraftforge.event.entity.living.LivingSpawnEvent;
|
||||
import net.minecraftforge.event.entity.player.BonemealEvent;
|
||||
import net.minecraftforge.event.entity.player.FillBucketEvent;
|
||||
import net.minecraftforge.event.world.ChunkDataEvent;
|
||||
import net.minecraftforge.fluids.FluidStack;
|
||||
@@ -214,7 +216,7 @@ public class TEventHandler
|
||||
{
|
||||
if (stack.itemID >= 4096)
|
||||
return false;
|
||||
|
||||
|
||||
Block block = Block.blocksList[stack.itemID];
|
||||
if (block != null)
|
||||
{
|
||||
@@ -497,6 +499,22 @@ public class TEventHandler
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Bonemeal */
|
||||
|
||||
|
||||
@ForgeSubscribe
|
||||
public void bonemealEvent (BonemealEvent event)
|
||||
{
|
||||
if (!event.world.isRemote)
|
||||
{
|
||||
if (event.ID == TContent.slimeSapling.blockID)
|
||||
{
|
||||
if (TContent.slimeSapling.boneFertilize(event.world, event.X, event.Y, event.Z, event.world.rand, event.entityPlayer))
|
||||
event.setResult(Event.Result.ALLOW);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Ore Dictionary */
|
||||
@ForgeSubscribe
|
||||
@@ -865,6 +883,75 @@ public class TEventHandler
|
||||
Smeltery.addMelting(new ItemStack(evt.Ore.itemID, 2, evt.Ore.getItemDamage()), TContent.metalBlock.blockID, 9, 500, new FluidStack(TContent.moltenElectrumFluid,
|
||||
TConstruct.ingotLiquidValue));
|
||||
}
|
||||
|
||||
/*else if (evt.Name == "nuggetIron")
|
||||
{
|
||||
Smeltery.addMelting(new ItemStack(evt.Ore.itemID, 2, evt.Ore.getItemDamage()), TContent.metalBlock.blockID, 3, 450, new LiquidStack(TContent.liquidMetalStill.blockID,
|
||||
TConstruct.ingotLiquidValue / 9, 0));
|
||||
}
|
||||
|
||||
ores = OreDictionary.getOres("nuggetCopper");
|
||||
for (ItemStack ore : ores)
|
||||
{
|
||||
Smeltery.addMelting(new ItemStack(ore.itemID, 2, ore.getItemDamage()), TContent.metalBlock.blockID, 3, 450, new LiquidStack(TContent.liquidMetalStill.blockID,
|
||||
TConstruct.ingotLiquidValue / 9, 2));
|
||||
}
|
||||
|
||||
ores = OreDictionary.getOres("nuggetTin");
|
||||
for (ItemStack ore : ores)
|
||||
{
|
||||
Smeltery.addMelting(new ItemStack(ore.itemID, 2, ore.getItemDamage()), TContent.metalBlock.blockID, 5, 175, new LiquidStack(TContent.liquidMetalStill.blockID,
|
||||
TConstruct.ingotLiquidValue / 9, 3));
|
||||
}
|
||||
|
||||
ores = OreDictionary.getOres("nuggetNaturalAluminum");
|
||||
for (ItemStack ore : ores)
|
||||
{
|
||||
Smeltery.addMelting(new ItemStack(ore.itemID, 2, ore.getItemDamage()), TContent.metalBlock.blockID, 6, 250, new LiquidStack(TContent.liquidMetalStill.blockID,
|
||||
TConstruct.ingotLiquidValue / 9, 4));
|
||||
}
|
||||
|
||||
ores = OreDictionary.getOres("nuggetNickel");
|
||||
for (ItemStack ore : ores)
|
||||
{
|
||||
Smeltery.addMelting(new ItemStack(ore.itemID, 2, ore.getItemDamage()), TContent.metalBlock.blockID, 0, 400, new LiquidStack(TContent.liquidMetalStill.blockID,
|
||||
TConstruct.ingotLiquidValue / 9, 17));
|
||||
}
|
||||
|
||||
ores = OreDictionary.getOres("nuggetLead");
|
||||
for (ItemStack ore : ores)
|
||||
{
|
||||
Smeltery.addMelting(new ItemStack(ore.itemID, 2, ore.getItemDamage()), TContent.metalBlock.blockID, 0, 400, new LiquidStack(TContent.liquidMetalStill.blockID,
|
||||
TConstruct.ingotLiquidValue / 9, 18));
|
||||
}
|
||||
|
||||
ores = OreDictionary.getOres("nuggetSilver");
|
||||
for (ItemStack ore : ores)
|
||||
{
|
||||
Smeltery.addMelting(new ItemStack(ore.itemID, 2, ore.getItemDamage()), TContent.metalBlock.blockID, 0, 400, new LiquidStack(TContent.liquidMetalStill.blockID,
|
||||
TConstruct.ingotLiquidValue / 9, 19));
|
||||
}
|
||||
|
||||
ores = OreDictionary.getOres("nuggetPlatinum");
|
||||
for (ItemStack ore : ores)
|
||||
{
|
||||
Smeltery.addMelting(new ItemStack(ore.itemID, 2, ore.getItemDamage()), TContent.metalBlock.blockID, 0, 400, new LiquidStack(TContent.liquidMetalStill.blockID,
|
||||
TConstruct.ingotLiquidValue / 9, 20));
|
||||
}
|
||||
|
||||
ores = OreDictionary.getOres("nuggetInvar");
|
||||
for (ItemStack ore : ores)
|
||||
{
|
||||
Smeltery.addMelting(new ItemStack(ore.itemID, 2, ore.getItemDamage()), TContent.metalBlock.blockID, 0, 400, new LiquidStack(TContent.liquidMetalStill.blockID,
|
||||
TConstruct.ingotLiquidValue / 9, 21));
|
||||
}
|
||||
|
||||
ores = OreDictionary.getOres("nuggetElectrum");
|
||||
for (ItemStack ore : ores)
|
||||
{
|
||||
Smeltery.addMelting(new ItemStack(ore.itemID, 2, ore.getItemDamage()), TContent.metalBlock.blockID, 0, 400, new LiquidStack(TContent.liquidMetalStill.blockID,
|
||||
TConstruct.ingotLiquidValue / 9, 22));
|
||||
}*/
|
||||
}
|
||||
|
||||
public void unfuxOreDictionary ()
|
||||
@@ -874,7 +961,7 @@ public class TEventHandler
|
||||
{
|
||||
PatternBuilder.instance.registerMaterial(ore, 2, "Wood");
|
||||
}
|
||||
|
||||
|
||||
ores = OreDictionary.getOres("ingotCopper");
|
||||
for (ItemStack ore : ores)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user