Everything is finally done. I read through a lot of open-source code, looking for things similar to what I'm doing. It's been a pretty big week, a lot has happened. All the textures on my tile entity now work, from the GUI to the item model to the in-game block model. Earlier this week, I implemented temporary potion effects, based off of some code from the Talismans 2 mod. The hard part was figuring out how to target the player, but I realized I could set a variable using the value passed to a different method; the one that says who activated the block. I later figured out, with help from a question someone asked on the Minecraft Forge Forums, how to directly change the player stats themselves. These changes only lasted until death, so I needed to find a way to re-implement them every so often. A separate question asked on GitHub helped me with performing a function every tick. There was a small problem with calling the function on a player that had died, so I found a way to re-set the player variable. Finally, I managed to add another, small buff for getting rid of hunger. One last source I forgot to cite earlier, TheGreyGhost on GitHub showed me a little bit about how to manipulate a tile entity through his tutorials.
|
Quinn Buratynski
I am in 10th grade, and intend to make a Minecraft mod. ArchivesCategories |