You are browsing as a guest. Sign up (or log in) to start making projects!

34m 27s logged

In the ModItems Java class, I set up a registry for the custom item. First, we create a differed register using “GodBoxMod” which is the custom mod file. Second, use an arrow function to register the item as an object in the game. Third, eventbus is a function that ensures the item is in the game. In the GodBoxMod file (the custom mod file), I added the custom item to the creative tab. Small tasks included (mostly code that took one line): registering the eventbus which is the event of the custom item, set the texture for the custom item in a custom json file, set the title of the custom item (seen in the game) in a custom json file.

0
4

Comments 0

No comments yet. Be the first!