SHARE
TWEET

mod_Dragon.java

kman2010 Jun 4th, 2011 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package net.minecraft.src;
  2. // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
  3. // Jad home page: http://www.kpdus.com/jad.html
  4. // Decompiler options: packimports(3) braces deadcode  
  5. import java.util.*;
  6. import java.util.Map;
  7.  
  8. public class mod_Dragon extends BaseMod
  9. {
  10.    
  11.     public mod_Dragon()
  12.     {
  13.       ModLoader.RegisterEntityID(EntityDragon.class, "Dragon", ModLoader.getUniqueEntityId()); // without this code , your mob wont spawn !  
  14.        
  15.       ModLoader.AddSpawn(EntityDragon.class, 3, EnumCreatureType.monster); // this is the spawn rate for exmaple if you put 3 the mobs is very rare to spawn,The EnumCreatureType is what type of mob it is , mobs that you want to spawn in water are "waterCreature", enemies are "monster", and animals are "creature".
  16.     }
  17.    
  18.    // RENDERERS
  19.    public void AddRenderer(Map map)
  20.     {
  21.         map.put(EntityDragon.class, new RenderDragon(new ModelDragon(), 0.5F)); // this one just assign the mob to your game and make it readable, just like RenderManager , the 0.5f is the shadow size of the mob you can make it bigger like 0.8f or smaller like 0.2f
  22.     }
  23.  
  24.     public String Version()
  25.     {
  26.         return "| [1.6.6] Dragons 1.0!"; // Put here anything you like after that it will show up in the modloader logs.
  27.     }
  28.  
  29. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top