Jump to content

Luke6905

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by Luke6905

  1. Super new to modding and just playing around with creating new dimensions but cant seem to a proper sky with sun, moon and cloud. Only showing plain sky with fog color. Even tried strtaight up duplicating the overworld but still with no successany. No idea what I'm missing? public class PurgatoryModDimension extends ModDimension { @Override public BiFunction<World, DimensionType, ? extends Dimension> getFactory() { return PurgatoryDimension::new; } } /////////////////////////////////////////////////////////////////////////////////////// public class PurgatoryDimension extends OverworldDimension { public PurgatoryDimension(World world, DimensionType dimType) { super(world, dimType); } @Override public boolean isSurfaceWorld() { return false; } } \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ @Mod.EventBusSubscriber(modid= LukesMod.MOD_ID, bus= Mod.EventBusSubscriber.Bus.FORGE) public class ForgeEventBusSubscriber { @SubscribeEvent public static void registerDimensions(final RegisterDimensionsEvent event){ if(DimensionType.byName(LukesMod.PURGATORY_DIM_TYPE) == null) { DimensionManager.registerDimension(LukesMod.PURGATORY_DIM_TYPE, RegistryHandler.PURGATORY_DIM.get(), null , true); } } }
  2. Okay, thank you so much for the help I have it all working now. I was just unfamiliar with all the '@' annotations and how they worked. Making a lot more sense now, cheers.
  3. I have had a look at the docs before coming here, was just getting a bit lost with the whole thing. Ok but what is passing the RegistryEvent into 'registerItems'? I think maybe how I have my classes setup is messing with it a bit
  4. Is this how the model should be registered? ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(Reference.MODID + ":" + item.getItemName(), "inventory")); as for registering the items im unsure as to how to implement the " RegistryEvent.Register<Item> " instead of "ForgeRegistries.ITEMS.register(item);"
  5. ///////// CODE/////////// public class ItemInit { public static ArrayList<esgItem> itemList; public static void init() { itemList = new ArrayList<esgItem>(); itemList.add(new ItemRawNaquadah("raw_naquadah")); itemList.add(new ItemRawNaquadah("raw_naquadria")); itemList.add(new ItemRawNaquadah("raw_trinium")); } public static void register() { // run through and register all items in itemList for (esgItem object: itemList) { registerItem(object); } } public static void registerItem(esgItem item) { ForgeRegistries.ITEMS.register(item); // Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, // new ModelResourceLocation(Reference.MODID + ":" + item.getUnlocalizedName().substring(5), "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(Reference.MODID + ":" + item.getItemName(), "inventory")); } } ///////// MODEL/////////// { "parent": "item/generated", "textures": { "layer0": "esg:items/raw_naquadah" } }
  6. Forge Version [14.21.1.2387] I am having trouble figuring out why my textures are not loading. If I press F3+T in-game the resources reload and the textures display as they should but if i restart the game the textures don't display again. What could be causing this?
×
×
  • Create New...

Important Information

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