Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

gmod622

Members
  • Joined

  • Last visited

Everything posted by gmod622

  1. Thanks! Literally just fixed it as soon as you commented! Thanks for your time regaurdless!
  2. Hey all! So I've ran into an error im quite stuck on.. This is a SeedFood Item When I plant my crop, it crashes the game, here is the log: Here is the lines that it speicifly gets crashed on: (SeedFood) Here is my registration: (ModBlocks) Here is the item registration: (ModItems) Here is crop class: lastly the two jsons item: { "parent": "item/generated", "textures": { "layer0": "plentifulmisc:items/plentifulmisccheese" } } blockstate: Lastly a picture of my assets: http://prntscr.com/d6ye1l
  3. okay: so now i kinda know whats the problem, just dont know how to fix it.. So I can manually make a resource location for the item and it will work, so im guessing it has to do something with: @Override public void registerItemModel(Item item) { PlentifulMisc.proxy.registerItemRenderer(item, 0, "pmcheese"); } Because this worked: ModelLoader.setCustomModelResourceLocation(cheese, 0, new ModelResourceLocation(cheese.getRegistryName(), "inventory"));
  4. Okay, after much tinkering, I'm still left with issues that I have no clue what the problem would be: First off: My block texture doesn't load in hand, however when placed it is shown. Here is the json for it: Secondly all of my textures, except the one I manually assigned due to it being a SeedFood. They are all registered and have the correct names, the log isnt outputting anything. So I'm stuck. Here is my ItemBase, which is used to register the item: next is the item itself, there are multiple that are broken, but they most likely will have the same problem: here is the 'Register Item Model' Provider: here is the Common Proxy & Client, in the same order: Next, the json for the item: Mod items: Lastly, my main class w/ reference My assets: http://prntscr.com/d6x2hy Am trying to put this in a github so you guys can more easily see what's going on. Thanks for your time.
  5. Okay, seemed to fix it.. Updated to the LASTEST version of forge. Textures arent loading, but names and mcmod.info seemed to. Will figure out textures, or atleast try to
  6. Okay made new instance and still have the glitch: One thing I found was the mc.info says its missing, even though its clearly there: http://prntscr.com/d6up4c
  7. oh and my updated resources: http://prntscr.com/d6tk2k while updating, mc didnt recongize that it did... its still trying to look for the old location...
  8. package com.lambda.PlentifulMisc.info; public class Reference { public static final String MODID = "plentifulmisc"; public static final String VERSION = "0.0.1"; }
  9. package com.lambda.PlentifulMisc.main; import com.lambda.PlentifulMisc.block.ModBlocks; import com.lambda.PlentifulMisc.info.Reference; import com.lambda.PlentifulMisc.item.ModItems; import com.lambda.PlentifulMisc.tab.PMCreativeTab; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.SidedProxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; @Mod(modid = Reference.MODID, version = Reference.VERSION) public class PlentifulMisc { @SidedProxy(serverSide = "com.lambda.PlentifulMisc.main.CommonProxy", clientSide = "com.lambda.PlentifulMisc.client.ClientProxy") public static CommonProxy proxy; @Mod.Instance(Reference.MODID) public static PlentifulMisc instance; public PMCreativeTab creativeTab; @EventHandler public void preInit(FMLPreInitializationEvent event) { creativeTab = new PMCreativeTab(); ModBlocks.load(event); ModItems.load(event); } @EventHandler public void init(FMLInitializationEvent event){ } @EventHandler public void postInit(FMLPostInitializationEvent event){ } }
  10. how would I make sure that it is? EDIT: Found it, yeah it is..
  11. Hey all! So all my textures broke and Its saying that it cant find the file, however, following its path.. Its there. So im stuck. Okay! So now after making another instance, im left with it not being able to find the mcmod.info: http://prntscr.com/d6up4c here is my log: and here is a screenshot of my assets: http://prntscr.com/d6mtd7 here is how I'm registering the textures: client proxy ModItems ItemCheese ItemBase another note: Even my language file doesnt find them.
  12. Thanks!! After this rewrite will add this to everything!
  13. Added, So what does the Registry Name even do in comparison to unlocalized name? EDIT: I'm going to create a new project and redo my entire mod. Everything is just jumbled and inefficient. Will repost when done. Thanks for the help so far.
  14. Just got finished creating the block, how would I go about texturing it? .json and where to put the files: here are some classes that could help: soil class my registry Also, how could I make it so when I right click on a peice of dirt > into a peice of fertile soil?
  15. So how would I get what I'm right clicking on, and to check if its a plant or not? I have somewhat of an idea on how to update the ticks more often. EDIT: Maybe I could create some new soil? I just found some source code with how to update ticks of a block. Maybe I could look into that?
  16. Well taken from example: the Watering can, however, I want it so that right clicking the plant (Only CROPS) will constantly tick it, until it hits stage 7(the max stage). I dont want the item to be like bone meal, just flat right increasing the stage, I want it to increase how fast it will grow. Maybe I could use the bonemeal for reference, but instead of using it multiple times, just use it once and slowly increas the stage? However, I cannot seem to find the bonemeal class? Thanks!
  17. Hey all! So I was wondering how would you have ticks go faster on a plant when you right click it with an item. I know the basis, but I have no clue on how to 'fast forward' ticks.
  18. Hmm... Looking through the log and not seeing anything. Also, now my item isn't in any creative tabs anymore? EDIT: It just randomly started working??? All i did was change the method back to ROCKCRESS = new register(... odd for sure..
  19. Okay, ModelLoader.setCustomModelResourceLocation(ROCKCRESS, 0, new ModelResourceLocation(PMReference.MODID + ":" + "pmrockcress", "inventory")); This didn't seem to work..
  20. New to 1.10, how would you go about applying the texture. The ol' .resourcelocation isn't there anymore.
  21. Sorry mb, was doing that then I went to eat and forgot :^)
  22. Hey! So I'm having this problem with a crop that uses the food it creates, as the seed. However, I tried going about registering the texture, but have no luck. The crop displays correctly, not the item. ModItems (Where the Item is registered and given the texture) ItemModelProvider Finally, my Client Proxy Here is my json screenshot of my paths: http://prntscr.com/d6irrq
  23. By ModelsHandler, do you mean just a JSON? I'm pretty sure this JSON will work out for a crop, or is there something more I need?
  24. Seems like it doesn't like how its calculating which way its facing: These two functions is where the first null spits out; The code that I jumped inside of was: if (facing == EnumFacing.UP && playerIn.canPlayerEdit(pos.offset(facing), facing, stack) && state.getBlock().canSustainPlant(state, worldIn, pos, EnumFacing.UP, this) && worldIn.isAirBlock(pos.up()))

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.