
Quaint34
Members-
Posts
20 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
Quaint34's Achievements

Tree Puncher (2/8)
0
Reputation
-
[SOLVED]Unable to run gradlew genIntellijRuns [1.17.1]
Quaint34 replied to Quaint34's topic in ForgeGradle
Ok thanks for the help -
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
-
[1.16.x] How to register custom signs using Deferred Registries?
Quaint34 replied to Quaint34's topic in Modder Support
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())); -
[1.16.x] How to register custom signs using Deferred Registries?
Quaint34 replied to Quaint34's topic in Modder Support
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? -
[1.16.x] How to register custom signs using Deferred Registries?
Quaint34 replied to Quaint34's topic in Modder Support
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. -
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));
-
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())); }
-
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.
-
No i have a lambda statement
-
The methods in the Blocks class have used the same method as what I am using
-
Minecraft refuses to run because Suppliers can not be cast to Blocks. I have tried making my own class but it didn't work.
-
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.
-
I'm not quite sure what you mean by define could you please go into further detail?
-
Have you tried running gradlew --refresh-dependencies yet?
-
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)));