SlideShare a Scribd company logo
1 of 15
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?

More Related Content

Similar to How to build a minecraft mod

How tomakea gameinunity3d
How tomakea gameinunity3dHow tomakea gameinunity3d
How tomakea gameinunity3d
Dao Tung
 
Getting started with Verold and Three.js
Getting started with Verold and Three.jsGetting started with Verold and Three.js
Getting started with Verold and Three.js
Verold
 
Generating an Android App with Acceleo (Eclipse Summit Europe 2010)
Generating an Android App with Acceleo (Eclipse Summit Europe 2010)Generating an Android App with Acceleo (Eclipse Summit Europe 2010)
Generating an Android App with Acceleo (Eclipse Summit Europe 2010)
mikaelbarbero
 

Similar to How to build a minecraft mod (20)

Lecture2_practice.pdf
Lecture2_practice.pdfLecture2_practice.pdf
Lecture2_practice.pdf
 
Node.js debugging
Node.js debuggingNode.js debugging
Node.js debugging
 
Tales from the Optimization Trenches - Unite Copenhagen 2019
Tales from the Optimization Trenches - Unite Copenhagen 2019Tales from the Optimization Trenches - Unite Copenhagen 2019
Tales from the Optimization Trenches - Unite Copenhagen 2019
 
【Unite 2017 Tokyo】インスタンシングを用いた美麗なグラフィックの実現方法
【Unite 2017 Tokyo】インスタンシングを用いた美麗なグラフィックの実現方法【Unite 2017 Tokyo】インスタンシングを用いた美麗なグラフィックの実現方法
【Unite 2017 Tokyo】インスタンシングを用いた美麗なグラフィックの実現方法
 
【Unite 2017 Tokyo】インスタンシングを用いた美麗なグラフィックの実現方法
【Unite 2017 Tokyo】インスタンシングを用いた美麗なグラフィックの実現方法【Unite 2017 Tokyo】インスタンシングを用いた美麗なグラフィックの実現方法
【Unite 2017 Tokyo】インスタンシングを用いた美麗なグラフィックの実現方法
 
Tools for developing Android Games
 Tools for developing Android Games Tools for developing Android Games
Tools for developing Android Games
 
Lecture 2: C# Programming for VR application in Unity
Lecture 2: C# Programming for VR application in UnityLecture 2: C# Programming for VR application in Unity
Lecture 2: C# Programming for VR application in Unity
 
How tomakea gameinunity3d
How tomakea gameinunity3dHow tomakea gameinunity3d
How tomakea gameinunity3d
 
Getting started with Verold and Three.js
Getting started with Verold and Three.jsGetting started with Verold and Three.js
Getting started with Verold and Three.js
 
Unity3 d devfest-2014
Unity3 d devfest-2014Unity3 d devfest-2014
Unity3 d devfest-2014
 
INTRODUCTION TO THE BBC MICRO_BIT.pptx
INTRODUCTION TO THE BBC MICRO_BIT.pptxINTRODUCTION TO THE BBC MICRO_BIT.pptx
INTRODUCTION TO THE BBC MICRO_BIT.pptx
 
Node.js essentials
 Node.js essentials Node.js essentials
Node.js essentials
 
Software design patterns ppt
Software design patterns pptSoftware design patterns ppt
Software design patterns ppt
 
Softwaredesignpatterns ppt-130430202602-phpapp02
Softwaredesignpatterns ppt-130430202602-phpapp02Softwaredesignpatterns ppt-130430202602-phpapp02
Softwaredesignpatterns ppt-130430202602-phpapp02
 
Game Models - A Different Approach
Game Models - A Different ApproachGame Models - A Different Approach
Game Models - A Different Approach
 
Generating an Android App with Acceleo (Eclipse Summit Europe 2010)
Generating an Android App with Acceleo (Eclipse Summit Europe 2010)Generating an Android App with Acceleo (Eclipse Summit Europe 2010)
Generating an Android App with Acceleo (Eclipse Summit Europe 2010)
 
Deep Learning in Spark with BigDL by Petar Zecevic at Big Data Spain 2017
Deep Learning in Spark with BigDL by Petar Zecevic at Big Data Spain 2017Deep Learning in Spark with BigDL by Petar Zecevic at Big Data Spain 2017
Deep Learning in Spark with BigDL by Petar Zecevic at Big Data Spain 2017
 
Voyage by example
Voyage by exampleVoyage by example
Voyage by example
 
Unity introduction for programmers
Unity introduction for programmersUnity introduction for programmers
Unity introduction for programmers
 
Unity - Essentials of Programming in Unity
Unity - Essentials of Programming in UnityUnity - Essentials of Programming in Unity
Unity - Essentials of Programming in Unity
 

More from Arun Gupta

More from Arun Gupta (20)

5 Skills To Force Multiply Technical Talents.pdf
5 Skills To Force Multiply Technical Talents.pdf5 Skills To Force Multiply Technical Talents.pdf
5 Skills To Force Multiply Technical Talents.pdf
 
Machine Learning using Kubernetes - AI Conclave 2019
Machine Learning using Kubernetes - AI Conclave 2019Machine Learning using Kubernetes - AI Conclave 2019
Machine Learning using Kubernetes - AI Conclave 2019
 
Machine Learning using Kubeflow and Kubernetes
Machine Learning using Kubeflow and KubernetesMachine Learning using Kubeflow and Kubernetes
Machine Learning using Kubeflow and Kubernetes
 
Secure and Fast microVM for Serverless Computing using Firecracker
Secure and Fast microVM for Serverless Computing using FirecrackerSecure and Fast microVM for Serverless Computing using Firecracker
Secure and Fast microVM for Serverless Computing using Firecracker
 
Building Java in the Open - j.Day at OSCON 2019
Building Java in the Open - j.Day at OSCON 2019Building Java in the Open - j.Day at OSCON 2019
Building Java in the Open - j.Day at OSCON 2019
 
Why Amazon Cares about Open Source
Why Amazon Cares about Open SourceWhy Amazon Cares about Open Source
Why Amazon Cares about Open Source
 
Machine learning using Kubernetes
Machine learning using KubernetesMachine learning using Kubernetes
Machine learning using Kubernetes
 
Building Cloud Native Applications
Building Cloud Native ApplicationsBuilding Cloud Native Applications
Building Cloud Native Applications
 
Chaos Engineering with Kubernetes
Chaos Engineering with KubernetesChaos Engineering with Kubernetes
Chaos Engineering with Kubernetes
 
How to be a mentor to bring more girls to STEAM
How to be a mentor to bring more girls to STEAMHow to be a mentor to bring more girls to STEAM
How to be a mentor to bring more girls to STEAM
 
Java in a World of Containers - DockerCon 2018
Java in a World of Containers - DockerCon 2018Java in a World of Containers - DockerCon 2018
Java in a World of Containers - DockerCon 2018
 
The Serverless Tidal Wave - SwampUP 2018 Keynote
The Serverless Tidal Wave - SwampUP 2018 KeynoteThe Serverless Tidal Wave - SwampUP 2018 Keynote
The Serverless Tidal Wave - SwampUP 2018 Keynote
 
Introduction to Amazon EKS - KubeCon 2018
Introduction to Amazon EKS - KubeCon 2018Introduction to Amazon EKS - KubeCon 2018
Introduction to Amazon EKS - KubeCon 2018
 
Mastering Kubernetes on AWS - Tel Aviv Summit
Mastering Kubernetes on AWS - Tel Aviv SummitMastering Kubernetes on AWS - Tel Aviv Summit
Mastering Kubernetes on AWS - Tel Aviv Summit
 
Top 10 Technology Trends Changing Developer's Landscape
Top 10 Technology Trends Changing Developer's LandscapeTop 10 Technology Trends Changing Developer's Landscape
Top 10 Technology Trends Changing Developer's Landscape
 
Container Landscape in 2017
Container Landscape in 2017Container Landscape in 2017
Container Landscape in 2017
 
Java EE and NoSQL using JBoss EAP 7 and OpenShift
Java EE and NoSQL using JBoss EAP 7 and OpenShiftJava EE and NoSQL using JBoss EAP 7 and OpenShift
Java EE and NoSQL using JBoss EAP 7 and OpenShift
 
Docker, Kubernetes, and Mesos recipes for Java developers
Docker, Kubernetes, and Mesos recipes for Java developersDocker, Kubernetes, and Mesos recipes for Java developers
Docker, Kubernetes, and Mesos recipes for Java developers
 
Thanks Managers!
Thanks Managers!Thanks Managers!
Thanks Managers!
 
Migrate your traditional VM-based Clusters to Containers
Migrate your traditional VM-based Clusters to ContainersMigrate your traditional VM-based Clusters to Containers
Migrate your traditional VM-based Clusters to Containers
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 

How to build a minecraft mod

  • 1. How to make a Minecraft Mod! Aditya Gupta A Minecrafter
  • 2. How many people play Minecraft?
  • 3. 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
  • 4. 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
  • 5. 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
  • 6. 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
  • 7. 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
  • 10. 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
  • 11. Mods that I have made (cont.) ● RandomPlugin – Gives you double the exp when you kill a mob – Bows shoot ghast fireballs
  • 12. 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
  • 13. 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

Editor's Notes

  1. 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.