Code Monkey home page Code Monkey logo

bushwhacker's Introduction

BushWhacker

Adds a custom sword to minecraft, called the "Bush Whacker". Custom model and texture created in BlockBench. Next step is implementing the sword's mechanics, firstly to break grass blocks in an area around the player, hence the name. Once I think of other cool mechanics, I'll add those too.

BushWhackerMod.java

Main driver class of the mod. Calls the RegistryInit method to register the mod's new item.

BushWhackerIT.java

A new Minecraft object of type SwordItem must be instantiated with an object of type IItemTier. IItemTier is an abstract Minecraft class that I implement in BushWhackerIT. I used an enum so I could make seperate defined instances if I decide to add more swords/tools.

RegistryHandler.java

Does the brunt of the work in this mod. Creates a DeferredRegister for items, attatches it to the event bus, then creates the actual SwordItem while registering it. Efficient, huh? DeferredRegister is the preferred method for registering modded items/blocks, but don't ask me why. Causes the least issues with registration and with other mods.

BushModelLoader.java

Will be used to load the sword's model from a .OBJ file. Not finished, and not something I know how to do yet. The documentation is next to nonexistent considering the mod is built in Forge 1.16.3, the very newest version of Minecraft & of the Forge API.

bushwhacker's People

Contributors

carltonduke avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.