
Dizzlepop12
Members-
Posts
41 -
Joined
-
Last visited
Everything posted by Dizzlepop12
-
Custom sun texture not being rendered / aligned properly
Dizzlepop12 replied to Dizzlepop12's topic in Modder Support
bump? i stepped through the code and can't find the problem. Edit: The celestial angle was wrong and I was actually looking at the moon and not the sun. Oops -
I have a custom sun for one of my dimensions, but instead of the texture being positioned in the center, it's positioned in the corner and only shows a portion of the full texture. I'm somewhat familiar with GL11 rendering, but this is something that I can't quite figure out, and I've looked over it multiple times. Here's a screenshot: https://imgur.com/bPDuxvs SkyRenderer: https://github.com/TheSlayerMC/Journey-1.12/blob/master/main/java/net/journey/dimension/BoilSkyRenderer.java Resource Location: https://github.com/TheSlayerMC/Journey-1.12/tree/master/main/resources/assets/journey/textures/environment Any help is greatly appreciated.
-
I'm pretty new to using the debugger. I set it up in my SkyRenderer class where I think it should go, and I'm not sure where I go from here. In the console, I keep getting this error: [11:31:24] [main/ERROR] [minecraft/Minecraft]: ########## GL ERROR ########## [11:31:24] [main/ERROR] [minecraft/Minecraft]: @ Post render [11:31:24] [main/ERROR] [minecraft/Minecraft]: 1281: Invalid value But I'm not sure if it has any relation to the SkyRenderer class. Here's where my debugger is: debugger
-
Generating Block on Surface Not Working
Dizzlepop12 replied to Justin_Perry's topic in Modder Support
You use the WorldGenPumpkin class as a reference for your own worldgen class, but replace the pumpkins with the block that you want. Or, add a block to your constructor so you can use any block without creating a new class. -
bump?
-
I have a custom sun for one of my dimensions, but it appears as a gigantic purple square in the sky instead of the texture that it's bound to. Not sure what the problem is, but the resource location is correct and I can't find any reason why is shouldn't be rendering. Any suggestions? SkyRenderer: https://github.com/TheSlayerMC/Journey-1.12/blob/master/main/java/net/journey/dimension/BoilSkyRenderer.java#L120 Resource Location: https://github.com/TheSlayerMC/Journey-1.12/tree/master/main/resources/assets/journey/textures/environment
-
So I'm having trouble with registering the biomes for my dimensions. Each dimension only has one biome, but each of them generates in the overworld instead of only generating in their respective dimensions, which they correctly generate in. I used this method to register my biomes, but after some research I found it to be the incorrect way to register dimension biomes, but it's the proper way to register overworld biomes. I guess the proper way is to subscribe an IForgeRegistry event that registers the individual biomes like this: @SubscribeEvent public static void registerBiomes(IForgeRegistry<Biome> iForgeRegistry) { IForgeRegistry<Biome> registry = iForgeRegistry; registry.registerAll(BIOME_1, BIOME_2...) } However, when I use this instead, the biomes don't get registered at all. Any help?
-
That's because I started with the EntityCharredKnife class first as a test, the rest of the knife entity classes are older versions and don't have the same code. If you look at the EntityCharredKnife class, it's not abstract and it does contain the correct constructor, and that's the one I tested it with.
-
I'm trying to create a throwable item that sticks in the ground and can be picked up, like an arrow. However, when I right click the item in-game, it catches an exception, saying that the constructor that I'm calling in my Item class doesn't exist in my entity class, even though it does. Any help? Log: https://pastebin.com/yw3i0wsq Entity class: https://github.com/TheSlayerMC/Journey-1.12/blob/86e5e7f2b7c3c6c7975d9e0b48e33e4a64a1c20b/main/java/net/journey/entity/projectile/EntityCharredKnife.java Item class: https://github.com/TheSlayerMC/Journey-1.12/blob/86e5e7f2b7c3c6c7975d9e0b48e33e4a64a1c20b/main/java/net/journey/items/ItemThrowableArrow.java Item registry: https://github.com/TheSlayerMC/Journey-1.12/blob/master/main/java/net/journey/JourneyItems.java#L1462 Example of a throwable item that does work: Entity class: https://github.com/TheSlayerMC/Journey-1.12/blob/master/main/java/net/journey/entity/projectile/EntityCorbaPiercer.java Item class: https://github.com/TheSlayerMC/Journey-1.12/blob/master/main/java/net/journey/items/ItemPiercer.java
-
Yep. These are the main areas where the biome is supposed to be registered and mobs are set to spawn in the specific dimension: https://github.com/TheSlayerMC/Journey-1.12/blob/master/main/java/net/journey/dimension/terrania/WorldProviderTerrania.java#L18 https://github.com/TheSlayerMC/Journey-1.12/blob/master/main/java/net/journey/dimension/DimensionHelper.java#L124 https://github.com/TheSlayerMC/Journey-1.12/blob/master/main/java/net/journey/dimension/DimensionHelper.java#L218
-
After porting from 1.8.9 to 1.12.2, it's apparent that something has changed with dimension biomes. Each of my custom dimensions only has one biome in it, but apparently it's setting the biome to plains instead of the specified dimension biome, which is causing overworld mobs to spawn and no modded mobs to spawn. Any ideas? All help is greatly appreciated. Dimension example: https://github.com/TheSlayerMC/Journey-1.12/tree/master/main/java/net/journey/dimension/terrania Dimension registry: https://github.com/TheSlayerMC/Journey-1.12/blob/master/main/java/net/journey/dimension/DimensionHelper.java
-
I have a pretty strange issue with rendering custom logs for my mod. I didn't have the logs orientable in the older versions of the mod because it's pretty tricky stuff to be honest, but I have it working for the most part in 1.12.2. One problem, however, is that there is no breaking sound or breaking particles for the block, which is really strange to me. When you break it, it basically just disappears. The second problem is that the block isn't rendering its texture at all, even though it renders without the log orientation. All help is appreciated. Log class: https://github.com/TheSlayerMC/Journey-1.12/blob/c09bdcb75a365e932535d1ec824ae75c5a0ebc3d/main/java/net/slayer/api/block/BlockModLog.java
-
So now it no longer crashes, but the only log variants that generate are the eucalog and sizzlerlog types. In addition to this, the trees in the Euca dimension that are supposed to use the eucalog type are generating with the sizzerlog type, like it's completely random and it's not applying the variant specified. All variants show up in the creative inventory, though.
-
I have a strange problem when creating a new world. I recently changed all my tree logs to use block variants instead of being individual blocks, and it worked out at first but now it crashes. Any ideas? Crash: https://pastebin.com/nsXbmrNx EnumType class: https://github.com/TheSlayerMC/Journey-1.12/blob/master/main/java/net/journey/util/enums/EnumTypeLogs.java Tree class: https://github.com/TheSlayerMC/Journey-1.12/blob/master/main/java/net/journey/dimension/corba/gen/trees/WorldGenCorbaMediumTree.java From what I can tell, it can't apply the 'corbalog' variant to the block for some reason, but it can apply 'euca' and 'sizzler'. Any ideas?
-
Right, but I meant he should know that he needs to add a constructor to his class because that's one of the first things modding tutorials teach you.
-
Need help with 1.12 ICapability changes
Dizzlepop12 replied to Dizzlepop12's topic in Modder Support
Took a look at it, seems much less complicated than I thought but it's still stressing me out. Is there a src out there for a mod that adds something similar? -
you just gotta create / fix your constructor in ItemBase bubby. the constructor is what you're calling in your ModItems, that's why you put some lil' parenthesis with the quotation marks bubby, and since there's no string parameter in your constructor you're getting an error. this should be one of the first things that mod tutorials teach you, so I'm not sure why you're having a problem. post your ItemBase class
-
I'm trying to get a mana bar to function properly after updating to 1.12, but the main class is riddled with errors due to capabilities being changed a lot since 1.8.9. Here's the mana class: https://github.com/TheSlayerMC/Journey-1.12/blob/master/main/java/net/journey/client/server/DarkEnergyBar.java I didn't touch anything, this is the same code from the 1.8.9 version. It worked almost flawlessly in 1.8.9, but ICabilityProvider changed and the methods that I need to save and load NBT data no longer exist within that class, and there's no longer "registerExtendedProperties()" and "getExtendedProperties()" within the EntityPlayer class. All help is appreciated.
-
Custom tree won't generate / grow under certain conditions
Dizzlepop12 replied to Dizzlepop12's topic in Modder Support
That's exactly what I was thinking, but I don't know what else would be preventing it from generating. -
I have a very strange problem. I have a custom tree that's supposed to generate in the desert, but it doesn't generate. If I immediately plant the sapling and grow it when I spawn, no matter what biome I'm in, it'll generate. However, if I leave the spawn area it turns into air - no tree structure or anything, just air. I checked my world generator class, my tree structure class, the sapling class, everything, yet I can't figure this out. All help is greatly appreciated. Git Repo Sapling Class World Gen Registries My best guess is that the sapling class isn't detecting the meta variant correctly, so it's setting all the blocks as air instead of generating the structure, but I don't get why it's doing this.