• 0

    posted a message on [Plugin] Thors Hammer
    I havn't posted a mod in a while, but I just made this plugin, the point of the plugin is to spawn lightning with thors hammer! (a diamond axe) The Hammer has a range of 200 blocks!


    Download


    Crafting:

    Thors Hammer:

    "






    HOW TO USE

    Just click (either right, or left) anywhere on the ground, and lightning will appear!

    COMMANDS
    /thor - gives you thors hammer



    PERMISSIONS

    thor.hammer - allows the player to type /thor and use the diamond-axe


    INSTALLATION



    1. Download the plugin
    2. Extract the plugin from Thor Plugin.zip
    3. Stop server
    4. Drag Thor.jar into plugins folder
    5. Start/reload server
    6. Enjoy!
    MORE INFO:
    Any bugs? Comment them and I will fix them!
    Any suggestions? comment them and I might add them!
    Need help with the plugin? PM me.
    Posted in: Minecraft Mods
  • 0

    posted a message on How To Build A Bukkit Plugin{message plugin}
    Quote from Shockwave317»

    okay what is the error? if there is no error are you registering each command in your plugin.yml?

    Nvm, I fixed it.
    Posted in: Technical Help
  • 0

    posted a message on How To Build A Bukkit Plugin{message plugin}
    Quote from Miner_Fil»

    Worst Code i have Ever Seen. I am a Bukkit Developer by the way and your code is Messy. I will clean it up for you my friend.

    Fixed Code:
    package me;
    import java.security.PublicKey;
    import java.util.logging.Logger;
    import org.bukkit.command.Command;
    import org.bukkit.command.CommandSender;
    import org.bukkit.plugin.PluginDescriptionFile;
    import org.bukkit.plugin.java.JavaPlugin;

    public class Donniecraft extends JavaPlugin {
    public final Logger logger = Logger.getLogger("minecraft");
    Public Static Donniecraft plugin;

    public void onDisable() {
    PluginDescriptionFile pdffile = this.getDescription();
    this.logger.info(PdfFile.getname + "Has Been Disabled!")
    }

    public void onEnable() {
    PluginDescriptionFile pdffile = this.getDescription();
    this.logger.info(PdfFile.getname + "Virsion" pdffile.getVersion() + "Has Been Enabled!") }

    public boolean OnCommand (CommandSender sender, Command cmd, String label, String[] args) { player player = (Player) sender; Player targetPlayer = Bukkit.getPlayer(args[0]); You will need to enter the Player and make the message appear as the player Wrote. It's gonna be Difficult for a Not So Good coder like you.
    if(cmd.getName().equalsIgnoreCase)("SendMe")
    player.sendmessage (chatcolor BLUE + "Message Sent!"); return false } }
    You must really be Bad at Coding! Watch Tutorials on Youtube if you want to Learn

    Hey, I just started making plugins again, and I am having a problem adding more than one command, this is my code:


    @SuppressWarnings("deprecation")
    public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args){
    Player player = (Player) sender;
    if(cmd.getName().equalsIgnoreCase("ThoR")){
    String Thor = "Thors Hammer";
    ItemStack myItem = new ItemStack(Material.DIAMOND_AXE);
    ItemMeta im = myItem.getItemMeta();
    im.setDisplayName(Thor);
    myItem.setItemMeta(im);
    player.sendMessage(ChatColor.RED+ "You have been given Thors hammer, click to spawn lightning and kill everything around you! range is 200!");
    getServer().broadcastMessage(ChatColor.DARK_AQUA+ "BEWARE! Someone has been given the Thor hammer!");
    player.getInventory().addItem(new ItemStack(Material.DIAMOND_AXE));
    player.damage(5);
    if(cmd.getName().equalsIgnoreCase("cmds")){
    player.sendMessage(ChatColor.BLUE+ "Thor help: Commands: ===_=/Thor: Gives you thors hammer.=_=== ===_=/Thor Help: Lists these commands=_===");

    }
    return true;
    }
    return true;
    }

    That's just the commands part, I need help with it though, like I said, I am new to this. When I try to type the command "cmds" it just doesn't say anything
    Posted in: Technical Help
  • 0

    posted a message on [Tutorial] Bukkit Plugin Development
    Looks great, but could you do some text tutorials also?
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on Minecraft Trivia Quiz
    I scored 100% on my second try, and 91% on my first.
    Posted in: Discussion
  • 0

    posted a message on Creeper Apocalypse?
    32 days D: I could do better irl xD I would just be like "boom!" "creepers removed from da game" that simple..I would survive infinate days, but ya, 32 is what is said, I am mad D:< Why not 42? xD
    Posted in: Discussion
  • 0

    posted a message on [1.6.x/1.7.x] Let's Code a Forge Mod! ~ [SRC & Video] (Updated 1/30/2015)
    Ok, seems I found the boss class, I am beginning to understand how to create a custom boss, although this is kind of strange.
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on [1.6.x/1.7.x] Let's Code a Forge Mod! ~ [SRC & Video] (Updated 1/30/2015)
    Nice tutorial, I would suggest, if you can, add a custom boss tutorial, also a vehicle tutorial would be really cool. Also, I can't wait for that crops tutorial, I havn't been able to find a good tutorial on plants/crops anywhere. Also, I may be able to help you make the text turorials? I know how to make a quite simple Inventory Item (i.e. Backpack, purse etc.), and a few more complicated things lol. Meanwhile I will be expeiremening with minecraft code, messing around, trying to figure out how to code a custom bow and stuff.
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on Minecraft Java Teacher
    Hm... I guess I could teach you some basics, if you want proof of a slightly complicated mod, you can see this mod: http://www.planetminecraft.com/mod/solar-system-mod-v001-beta-wip-modloader/ I am currently adding a dimension, as well as updating. I have Skype, just check my profile for my username. I am willing to be patient, and I have some time, again, I can only teach you the basics, as I am a bad teacher, so getting into advanced code would be a disaster, so I can teach you some basics of minecraft modding, and then give you a good java tutorial.
    Posted in: Modification Development
  • 0

    posted a message on Village Schoolhouses (Revised and Rebalanced!)
    Nice, I may make this mod, but one question: Would you want me to add the bell? The bell would be kind of hard, but not impossible.
    Posted in: Suggestions
  • 0

    posted a message on Magma Blocks
    Nice, pretty good idea, 80% support
    Posted in: Suggestions
  • 0

    posted a message on Popgalops Beginner-Advanced Modloader Modding Tutorials (Taking requests)
    Quote from the115

    I was wondering, is it possible to update the code on how to make a crop?



    Well, you only have to change a few things, me and my friend figured it out, and now its working :D
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on Popgalops Beginner-Advanced Modloader Modding Tutorials (Taking requests)
    You should update ALL of these to 1.5.2/1.6.1/1.6.2 when you can! :DAlso you should add a vehicle tutorial if you ever get the chance [i know it is really hard, but just saying, it would be AWESOME]
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on Minecraft Blender Rig – show off your skins in style!
    hey, i just wanted to say, this is really awesome, and i was wondering if you were ever gonna update it.
    Posted in: Skins
  • 0

    posted a message on gabe4356's Modding Tutorial [Blocks, Grenades, Items, etc.] [1.5.2, 1.6.x] [modloader & Forge] [taking requests]
    WELCOME TO GABE4356'S MODDING TUTORIALS!
    _________________________________________

    Here i will be teaching you how to mod minecraft! this post will frequently be updated, adding more tutorials, more bug fixes, and being updated!







    SETTING UP YOUR WORKSPACE

    Video tutorial can be found here





    First you must download eclipse from here
    download MCP from here
    and download modloader from here
    now extract all of those folders
    install modloader but DO delete MEDE-INF!!!!
    drag all the .minecraft files into jars in MCP [the one with modloader installed]
    drag server jar 1.5.2 into jars folder in MCP
    launch decompile.bat in in MCP
    open up eclipse
    click File>Switch workspace>and chose eclipse in MCP
    Eclipse will now restart, this is fine
    your done!

    Modloader:
    [spoiler]
    code:
    [spoler]
    [spoiler]
    BLOCKS

    To make a block first click on client>src>net.minecraft.src
    click File new class, name it mod_<your mod name>
    and copy and paste this code:

    package net.minecraft.src;
    public class mod_test extends BaseMod {
    public static final Block test = new Block(161, Material.ground).setUnlocalizedName("testblock.png").setHardness(5).setCreativeTab(CreativeTabs.tabBlock);
    
    
    public String getVersion()
    {
    return "1.5.2";
    }
    
    public void load()
    {
    
    ModLoader.registerBlock(test);
    ModLoader.addName(test, "Test Block");
    
    
    }
    }


    [spoiler]
    [spoiler]
    BASIC ITEMS


    put this code in your load method in your mod class:

    ModLoader.addName(itest, "Item Test");


    put this towards to the top of the mod class, near the other "public static final's"

    public static final Item itest = new Item(5004).setCreativeTab(CreativeTabs.tabMaterials).setUnlocalizedName("itest.png");


    [spoiler]
    [spoiler]
    BIOMES

    put this in towards the top of your mod_class

    BiomeGenTest Test = new BiomeGenTest(23);


    put this in your load method

    ModLoader.addBiome(Test);



    create a new class called BiomeGen<YourBiomeName> and paste this code

    package net.minecraft.src;
    public class BiomeGenTest extends BiomeGenBase {
    
    protected BiomeGenTest(int par1)
    {
    super (par1);
    this.theBiomeDecorator.treesPerChunk = -999;
    this.theBiomeDecorator.flowersPerChunk = 4;
    this.theBiomeDecorator.grassPerChunk = 1;
    this.fillerBlock=(byte)Block.blockGold.blockID;
    this.topBlock=(byte)Block.blockDiamond.blockID;
    this.biomeName="Test Biome";
    }
    }





    [spoiler]
    [spoiler]
    BLOCK THAT GIVES OFF LIGHT

    all you have to do is add this line of code to the public static final part of your block

    .setLightValue(50)




    [spoiler]
    [spoiler]
    GRENADE

    add this line of code to your mod_class

    public static final Item grenade = new ItemGrenade(1037).setUnlocalizedName("grenade").setCreativeTab(CreativeTabs.tabCombat);


    paste this in your load method

    ModLoader.addName(grenade, "Grenade");


    create a new class called ItemGrenade and paste this code

    package net.minecraft.src;
    public class ItemGrenade extends Item{
    public ItemGrenade(int par1){
    super(par1);
    this.maxStackSize = 64; //maximum size in a stack
    this.setUnlocalizedName("grenade"); //icon
    }
    public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer){
    if (!entityplayer.capabilities.isCreativeMode){
    --itemstack.stackSize; //removes one when right clicked if not in creative
    }
    if (!world.isRemote){
    world.spawnEntityInWorld(new EntityGrenade(world, entityplayer)); //spawns the grenade entity
    }
    
    return itemstack;
    }
    }


    create a new class named EntityGrenade and paste this code

    package net.minecraft.src;
    public class EntityGrenade extends EntityThrowable{
    public EntityGrenade(World par1World){
    super(par1World);
    }
    public EntityGrenade(World par1World, EntityLiving par2EntityLiving){
    super(par1World, par2EntityLiving);
    }
    public EntityGrenade(World par1World, double par2, double par4, double par6){
    super(par1World, par2, par4, par6);
    }
    protected void onImpact(MovingObjectPosition par1MovingObjectPosition){
    if (par1MovingObjectPosition.entityHit != null){
    par1MovingObjectPosition.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), 0);
    }
    if (!this.worldObj.isRemote){
    explode(); //explodes the grenade
    }
    if (!this.worldObj.isRemote){
    this.setDead();
    }
    }
    private void explode(){
    if(!exploded){
    exploded = true;
    worldObj.createExplosion(this, posX, posY, posZ, 4.0F, true); //spawns explosion
    }
    }
    boolean exploded;
    }



    [spoiler]
    [spoiler]
    ORE GENERATION

    so this is very simple, just paste this into your load method

    public void generateSurface(World world, Random random, int chunkX, int chunkZ)
    {
    Random randomGenerator = random;
    int rarity = 30; //set the rarity of the ore
    for (int i = 0; i < 10; i++)
    {
    int randPosX = chunkX + randomGenerator.nextInt(20);
    int randPosY = random.nextInt(40);
    int randPosZ = chunkZ + randomGenerator.nextInt(20);
    (new WorldGenMinable(mod_test.oreTest.blockID, 8)).generate(world, random, randPosX, randPosY, randPosZ); //replace mod_<your mod name> and .<your block> instead of mod_test. and .oreTest
    }
    }



    hover over Random and click import

    Your ore will now generate!!!



    [spoiler]
    [spoiler]

    HOW TO MAKE CRAFTING RECIPIES

    just replace the blocks to the blocks you want

    ModLoader.addRecipe(new ItemStack(Block.oreDiamond, 1), new Object [] {"###", "#%#", "#*#", Character.valueOf('#'), Item.redstone, Character.valueOf('%'), Block.Test, Character.valueOf('*'),Block.blockRedstone});


    if you want to use your own block or item for crafting or any other purpose then you just do mod_<your mod name>.<your item/block name> instead of Block/Item.<item/Block name> for example:

    mod_MoreBimesMod.computerchip});



    [spoiler]
    [spoiler]

    HOW TO MAKE SMELTING RECIPIES

    just replace the item names, with whatever you the name of your item or anything is.

    ModLoader.addSmelting(Item.redstone.itemID, new ItemStack (Block.blockGold, 1), 1.0F);

    [spoiler]
    [spoiler]

    FOOD

    just replace it with the correct names

    this goes up in the public static final area

    public static final Item testFood = new ItemFood(5000,4,true).setUnlocalizedName("testFood").setCreativeTab(CreativeTabs.tabFood);


    the unlocalized Name is the texture name, in "(5000,4,true)" the 4 means the amount of hearts it heals, in half hearts, so 20 would be the entire hunger bar as 0 is none.

    put this in your load method

    ModLoader.addName(testFood,"Test Thing");


    sets the name of the item
    [spoiler]





    I am taking requests, so just comment on what i should add next, or vote on the poll!


    MORE COMMING SOON!!!!! [really soon]
    Posted in: Mapping and Modding Tutorials
  • To post a comment, please .