Everything posted by Draco18s
-
[1.10.2] Armor Problem
flag is only ever set to true for the chestplate, which when removed, this code is no longer run. Remove this conditional.
-
code problem in 1.12
- code problem in 1.12
Your methods do jack diddly squat. They are empty. They need to not be empty.- [SOLVED][1.11.2] Ore generation per biome
Add breakpoints.- code problem in 1.12
public static void register(IForgeRegistry<Item> registry) { //something goes here maybe? I dunno. Maybe something to register my items? }- [SOLVED][1.12.2]Lose durability on my axe when making wood planks
Touche.- [SOLVED][1.12.2]Lose durability on my axe when making wood planks
if(item instanceof ItemAxe) { //now it works for mod axes too- [SOLVED] [1.12] NoSuchMethodError for getSlotFor
>> No code posted > Help not available- Help with registering item renders
Oh jesus fucking christ on a crutch. Use item.getRegistryName() instead of all of this garbage Also, you have a NullPointerException, which none of the above suggestions will fix. Your problem is here: @EventHandler public void preInit(FMLPreInitializationEvent event) { Utils.getLogger().info("Pre Initialization"); Utils.getLogger().info("Loading Proxies..."); proxy.registerRenders(); } @EventHandler public void Init(FMLInitializationEvent event) { ModItems.init(); ModItems.register(); Utils.getLogger().info("Initialization"); } You're registering your renderers before you ever create your item. Fuck. How are you people this incompetent? Of course you got a NPE, this wasn't even a hard problem to figure out. All you had to do was look at the order in which you were doing things and realize that they were WRONG. On top of that, you should be using the Registry events anyway!- Is the entity a horse?
logger.info("Is debug enabled? " + mc.gameSettings.showDebugInfo);- Is the entity a horse?
Does it work?- Help with registering item renders
1) What is the error? 2) What version of Minecraft are you modding for? 3) Where do you call registerRenders()?- [SOLVED][1.12.2] How to remove vanilla recipes?
Yes- [SOLVED][1.12.2] How to remove vanilla recipes?
Instead of adding a dummy recipe, add a new recipe.- [1.12.2]NBT Packet
Oh gosh, leaving an exercise to the reader about writing in the length of the string first! The horror!- [1.12.2]NBT Packet
The ByteBufUtils are awesome, and definitely a better choice. But in terms of "here's what's in front of me, how can I solve this problem?" I could do it.- [1.12.2]NBT Packet
Knowing two things: 1) How to use my IDE 2) That strings are characters and characters are bytes I worked this out on my own: buf.writeBytes(("this is a string").getBytes());- 1.12.2 adventuring time advancement
You'd have to track them yourself. My suggestion would be to create a new advancement that uses the same system as Adventuring Time, but which has ALL the biomes in it.- code problem in 1.12
Your original code had you trying to register an item named logo. In this code you're trying to register a block named Block1 (which doesn't exist).- Texture wont display 1.11
(I'll point out that Minecraft practices were better than what I was doing before because I was never taught any sort of organizational schema...)- TileEntity with inventory and GUI
Actually, its the items that are 16 pixels. An actual slot graphic is 18x18. The 1 pixel border that gives the slot some "depth" extends beyond the 16x16 bounds. But otherwise you're correct.- How to create a new world?
Here's a hint. You're working in a language that has access to the file system.- net.minecraftforge:Mercurius:1.12
http://files.minecraftforge.net/ is not currently responding- Forums Migration/Upgrade
- code problem in 1.12
You're doing everything wrong. You need to use the Registry events. http://mcforge.readthedocs.io/en/latest/concepts/registries/#registering-things - code problem in 1.12
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.