Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Quaint34

Members
  • Posts

    20
  • Joined

  • Last visited

Everything posted by Quaint34

  1. I am having an issue installing the mdk for forge 1.17.1. I run the gradlew genIntellijRuns command but the gradle is unable to complete the action. It says it doesn't have the 3145728KB for the object heap. I have 310GB free on my C drive. Any idea what could be going on? debug.txt
  2. Updated Code SignTileEntity Registration: public class tileEntityTypeInit <T extends TileEntity> extends net.minecraftforge.registries.ForgeRegistryEntry<TileEntityType<?>>{ public static final DeferredRegister<TileEntityType<?>> ENTITY_TYPE_DEFERRED_REGISTER = DeferredRegister.create( ForgeRegistries.TILE_ENTITIES, SwaysVanilla.modID ); public static final TileEntityType<SignTileEntity> SIGN_TILE_ENTITY_TYPE = ENTITY_TYPE_DEFERRED_REGISTER.register( "sign", TileEntityType.Builder.create(SignTileEntity::new, blockInit.MAGICA_SIGN, blockInit.WALL_MAGICA_SIGN)); } How do I apply the RegistryObjects in the field above? I have tried the .get() method but it doesn't work for some reason. FakeBakery: class FakeBakery extends ModelBakery { private FakeBakery (IResourceManager resourceManager, BlockColors blockColors, IProfiler profiler, int maxMiniMapLvl) { super(resourceManager, blockColors, profiler, maxMiniMapLvl); } static Set<RenderMaterial> Texturesget() { return ModelBakery.LOCATIONS_BUILTIN_TEXTURES; } } How do I apply the Fake Model Bakery to my signs? Block Registration: public static final RegistryObject<Block> MAGICA_SIGN = blockHolder.register("magica_sign", () -> new StandingSignBlock(AbstractBlock.Properties.create(Material.WOOD).doesNotBlockMovement().hardnessAndResistance(1.0F).sound(SoundType.WOOD), ModWoodType.MAGICA)); public static final RegistryObject<Block> WALL_MAGICA_SIGN = blockHolder.register("magica_wall_sign", () -> new WallSignBlock((AbstractBlock.Properties.create(Material.WOOD).doesNotBlockMovement().hardnessAndResistance(1.0F).sound(SoundType.WOOD).lootFrom(Blocks.OAK_SIGN)), ModWoodType.MAGICA)); Item Registration: public static final RegistryObject<Item> MAGICA_SIGN_ITEM = itemHolder.register("magica_sign", () -> new SignItem(new Item.Properties().group(ItemGroup.DECORATIONS), blockInit.MAGICA_SIGN.get(), blockInit.WALL_MAGICA_SIGN.get()));
  3. I have my signs working but the textures do not show in game. I have them properly applied in the jsons but they are invisible and crash the game when placed. I have tried looking at your github but it is a broken link. Could you please guide me through on how to fix this?
  4. Now I am getting an error about the .get method not being able to use static methods. Is this something I should care about? If so what can I do to fix it.
  5. I am currently trying to make custom signs using deferred registries but its not working. The issue I am having is the sign classes do not support registry objects. Does anyone know how I can work around this? Sign Item: public static final RegistryObject<Item> MAGICA_SIGN = itemHolder.register("magica_sign", () -> new SignItem(new Item.Properties().group(ItemGroup.DECORATIONS), blockInit.MAGICA_SIGN, blockInit.WALL_MAGICA_SIGN)); } Sign Blocks: public static final RegistryObject<Block> MAGICA_SIGN = blockHolder.register("magica_sign", () -> new StandingSignBlock(AbstractBlock.Properties.create(Material.WOOD).doesNotBlockMovement().hardnessAndResistance(1.0F).sound(SoundType.WOOD), ModWoodType.MAGICA)); public static final RegistryObject<Block> WALL_MAGICA_SIGN = blockHolder.register("magica_sign", () -> new WallSignBlock((AbstractBlock.Properties.create(Material.WOOD).doesNotBlockMovement().hardnessAndResistance(1.0F).sound(SoundType.WOOD).lootFrom(Blocks.OAK_SIGN)), ModWoodType.MAGICA));
  6. When I updated my mod from 1.15 to 1.16 my saplings broke so I decided to remove them. Recently I have been trying to add the saplings in again but I am not sure what to do. I already know that the register function does not work but I am not sure what to replace it with. What I mean by this is that I am not sure if I should create a Deferred Registry or not. Any help will be greatly appreciated. public class CustomTreeConfig { public static final ConfiguredFeature<BaseTreeFeatureConfig, ?> MAGICA = register("magica", Feature.TREE.withConfiguration((new BaseTreeFeatureConfig.Builder(new SimpleBlockStateProvider(blockInit.MAGICA_LOG.get().getDefaultState()), new SimpleBlockStateProvider(blockInit.MAGICA_LEAVES.get().getDefaultState()), new BlobFoliagePlacer(FeatureSpread.func_242252_a(2), FeatureSpread.func_242252_a(0), 3), new StraightTrunkPlacer(4, 2, 0), new TwoLayerFeature(1, 0, 1))).setIgnoreVines().build())); }
  7. My two buttons have textures applied to them but I'm not sure what I have done wrong. The textures aren't showing up in game.
  8. The methods in the Blocks class have used the same method as what I am using
  9. Minecraft refuses to run because Suppliers can not be cast to Blocks. I have tried making my own class but it didn't work.
  10. I have an issue where my custom sapling has a black background can someone tell me what i have done wrong? If so that would be greatly appreciated.
  11. I'm not quite sure what you mean by define could you please go into further detail?
  12. Have you tried running gradlew --refresh-dependencies yet?
  13. I am having trouble with registering stairs. I have tried copy pasting code from the Blocks class and editing that but it doesn't seem to work. Does anyone know how to fix it? public static final RegistryObject<Block> MAGICA_STAIRS = BLOCK_HOLDER.register("magica_stairs", () -> new StairsBlock(MAGICA_PLANKS.get(), AbstractBlock.Properties.from(Blocks.OAK_PLANKS)));
  14. Please help My Deferred Registries are deprecated and now my blocks and items are "missing" Does anyone know how to fix it? If so that would be greatly appreciated
  15. Wow thanks I will be sure to add those changes and who knows I might give some credit
  16. Here it is please let me know what I am doing wrong mods.toml
  17. Please help! I am relatively new to the modding community and i am working on a 1.15 mod and I have been getting MalformedURLException whenever I try running my mod. I have tried putting in a valid URL and commenting out the displayURL in the mods.toml file but nothing is working. If you could help that will be greatly appreciated. latest.log
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.