• Save
How to build a minecraft mod
Upcoming SlideShare
Loading in...5

How to build a minecraft mod



How to build a minecraft mod

How to build a minecraft mod



Total Views
Views on SlideShare
Embed Views



0 Embeds 0

No embeds


Upload Details

Uploaded via as OpenOffice

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
  • Free Download : http://gg.gg/114bb

    Hey Guyz and girls, Today I am gonna show you perfact tool, Remember This video is old, But the download link with hack is brand new. Its very simple to using this tool and here are some instructions in video. Please REDOWNLOAD. Don't Forget to Comment Subscribe & Rate My Video :)

    Virus Scan :- This file has been scanned with avast! Antivirus. -- Status: FILE IS CLEANN.

    Copyright © 2014. All Rights Reserved
    Are you sure you want to
    Your message goes here
Post Comment
Edit your comment
  • Once you have written the code, you compile it and get classes. The classes get combined to form a Jar file which is basically the plugin itself.

How to build a minecraft mod How to build a minecraft mod Presentation Transcript

  • How to make a Minecraft Mod! Aditya Gupta A Minecrafter
  • How many people play Minecraft?
  • What is Minecraft? Minecraft is a game where you can place and break blocks. You can mine to find raw materials and craft those into usable items. – Tools, weapons, armor – Mobs and monsters – Redstone
  • What is a Mod? ● Mods add/remove/change different parts of the game ● Mods range from making mobs slower to adding a whole new dimension with 50 new items, blocks, and mobs ● Two types of mods: – Client-side – Server-side
  • Examples of Mods ● Singleplayer Commands (SPC) – Adds new commands such as /explode and /spawn ● MCEdit – Makes editing terrain MUCH easier ● Mo Creatures – Adds a whole lot of new mobs
  • What do you need to make a Mod? - To create the mod template To run the server and the mods - - To test the mods To edit your code - - To run Minecraft
  • Steps to make a Mod Step 1: Download and Install Programs Step 2: Create a Sample Plugin Step 3: Download and Start the CraftBukkit Server Step 4: Mod the Server using Bukkit API
  • Plugin Structure
  • Jar Class Java Compiler Class Class Class Java Java Java .yml file
  • Mods that I have made ● MoneyPlugin – Adds money to the game. Also has shops in which you can buy/sell items. An example of a shop would be: Template: Buy/Sell Quantity Item ID # Price
  • Mods that I have made (cont.) ● RandomPlugin – Gives you double the exp when you kill a mob – Bows shoot ghast fireballs
  • A Code Sample @EventHandler public void doubleExp(EntityDeathEvent event) { exp = event.getDroppedExp(); exp = exp*2; event.setDroppedExp(exp); } Variable“exp” is set to itself multiplied by 2 Dropped exp is set to variable “exp” Defines method “doubleExp” Method activates on the death of a mob Variable “exp” is set to the amount of exp dropped
  • A Code Sample (cont.) @EventHandler public void evilBows(EntityShootBowEvent event) throws InterruptedException { Player player; player = (Player) event.getEntity(); player.sendMessage(ChatColor.GREEN + "**RIBBIT**"); event.getEntity().getWorld().spawn(event.getEntity().getEyeLocation(), LargeFireball.class); } Defines method “evilBows” that activates when you shoot an arrow Sets variable “player” to the player who shot the arrow and sends a message to them saying, “**RIBBIT**” Spawns a ghast fireball at the location of the player's head
  • References for Further Information ● https://java4kids.java.net/minecraft- workshop/index.html ● https://java4kids.java.net
  • Any Questions?