Limit search to available items
Book Cover
E-book
Author Hunt, Andrew, 1964- author.

Title Learn to program with Minecraft plugins : create flaming cows in Java using CanaryMod / Andy Hunt ; edited by Brian P. Hogan
Edition Second edition
Published [Frisco, TX] : Pragmatic Programmers, [2014]
©2014

Copies

Description 1 online resource (1 volume) : illustrations
Series The pragmatic programmers
Pragmatic programmers.
Contents Cover; Table of Contents; Acknowledgments; Start Here; Who This Book Is For; Getting Started; Swimming in the Deep End; Getting Help; Conventions; 1. Command Your Computer; Use the Command Line; Move Around in File Directories; Start at the Desktop; Common Commands; Next Up; 2. Add an Editor and Java; Install an Editor to Write Code; Install the Java Programming Language; If the Java Command Is Not Found; Other Reasons It Might Not Work; Install the Minecraft Client and Server; Next Up; 3. Build and Install a Plugin; Plugin: HelloWorld; Configure with Canary.inf
Build and Install with build.shUsing EZPlugin; Next Up; 4. Plugins Have Variables, Functions, and Keywords; Keep Track of Data with Variables; Plugin: BuildAHouse; Plugin: Simple; Organize Instructions into Functions; Use a for Loop to Repeat Code; Use an if Statement to Make Decisions; Compare Stuff with Boolean Conditions; Use a while Loop to Repeat Based on a Condition; Next Up; 5. Plugins Have Objects; Everything in Minecraft Is an Object; Why Bother Using Objects?; Combine Data and Instructions into Objects; Plugin: PlayerStuff; Next Up; 6. Add a Chat Command, Locations, and Targets
How Does Minecraft Know About Your Plugin?Plugin: SkyCmd; Handle Chat Commands; Use Minecraft Coordinates; Find Nearby Blocks or Entities; Plugin: LavaVision; Next Up; 7. Use Piles of Variables: Arrays; Variables and Objects Live in Blocks; Plugin: CakeTower; Use a Java Array; Plugin: ArrayOfBlocks; Use a Java ArrayList; Plugin: ArrayAddMoreBlocks; Next Up; 8. Use Piles of Variables: HashMap; Use a Java HashMap; Keep Things Private or Make Them Public; Plugin: NamedSigns; Next Up; 9. Modify, Spawn, and Listen in Minecraft; Modify Blocks; Plugin: Stuck; Modify Entities; Spawn Entities
Plugin: FlyingCreeperListen for Events; Plugin: BackCmd; Check Permissions; Next Up; 10. Schedule Tasks for Later; What Happens When?; Put Code in a Class by Itself; Make a Runnable Task; Schedule to Run Later; Schedule to Run Once, or Keep Running; Plugin: CowShooter; Next Up; 11. Use Configuration Files and Store Game Data; Use a Configuration File; Plugin: SquidBombConfig; Store Game Data in a Database; Plugin: LocationSnapshot; Plugin: BackCmd with Save; Next Up; 12. Keep Your Code Safe; Install Git; Remember Changes; An Easy Undo; Visit Multiple Realities; Back Up to the Cloud
Share CodeNext Up; 13. Design Your Own Plugin; Have an Idea; Gather Your Materials; Lay Them Out; Try Each Part; Knit It All Together; Just the Beginning; A1. How to Read Error Messages; Java-Compiler Error Messages; Canary Server Error Messages; A2. How to Read the Canary Documentation; Canary JavaDoc Documentation; Oracle JavaDoc Documentation; The Wiki and Tutorials; A3. How to Install a Desktop Server; The Easy Way: LogMeIn; The Harder Way: By Hand; A4. How to Install a Cloud Server; What Is the Cloud?; Remote Operating Systems; Remote Access; Installing Packages; Installing Java
Summary Annotation The first edition of this book used the Bukkit modding server and library, which was taken down due to a legal dispute in September 2014. This new edition has been completely revised to replace Bukkit with the CanaryMod library. The bestselling, kid-tested book for Minecraft is now updated for CanaryMod! Write your own Minecraft plugins and watch your code come to life with flaming cows, flying creepers, teleportation, and interactivity. Add your own features to the Minecraft game by developing Java code that "plugs in" to the server. You'll manipulate and control elements in the 3D graphical game environment without having to write tons of code or learn huge frameworks. No previous programming experience necessary. Expand your Minecraft experience! You'll learn how to write Java code and build plugins for your own Minecraft servers using the popular Java programming language. This new edition has been completely revised to use the freely-available CanaryMod library. You'll create plugins that can change blocks from air to stone, or spawn cows and creepers. You'll write plugins that react to game events, and even schedule tasks that will run later in the game. Readers from age 9 to 99 will learn how to use variables and functions to build plugins that fling players into the sky, create flying creepers, and of course, shoot flaming cows. Along the way you'll learn real programming using Java, from classes, objects, and data structures (including arrays and hashes) to exception handling and threads. You'll even learn how to back up your code (and go back in time!) using Git, and run your own server at home or in the cloud. A progress bar shows you how far you've come in each chapter, and by the end of the book you'll be able to design and code your own plugins. Put your gaming to good use, and learn real programming skills today. What You Need:A modern PC running the Windows, Mac OS X, or Linux operating systems. The book explains how to download Java, the CanaryMod server and API, and all the tools you'll need
Notes "Version: P1.0 (November 2014)."
Place of publication from publisher's Web site
Bibliography Includes bibliographical references
Notes Print version record
Subject Java (Computer program language)
Minecraft (Game)
Computer programming.
computer programming.
COMPUTERS -- Programming -- General.
Computer programming
Java (Computer program language)
Minecraft (Game)
Form Electronic book
Author Hogan, Biran P., editor
ISBN 1941222943
9781941222942
9781680500424
1680500422