Everything posted by warjort
-
How to create an entity with properties and textures of a block
- Replacement of "getDefaultAttributeModifiers"
Override IForgeItem.getDefaultAttributes(ItemStack) IForgeItem.getAttributesModifiers(EquipmentSlot, ItemStack) in your Item. Its default implementation is to call that deprecated method. The deprecation like other methods on Block and Item is really meant for people trying to call the method, not people overriding/implementing it.- Trying to figure out Ore Generation. Can someone help?
You are hard work. 1) Why are you using the wrong (very old) version of the parchment mappings. https://github.com/liambcode/forge-1.19.2-43.1.30-mdk/blob/4a0dc18dd75269dc419f3c639625ba790ab32c6f/build.gradle#L30 https://parchmentmc.org/docs/getting-started 2) To try to figure out which methods you were using I had to download the mod and load into an ide. Except the code in that repo doesn't compile. So, after many attempts, I am still not looking at the code you are using. Normally I would throw it back to you, since I am obviously not looking at the real code. But... 3) You can't spell minecraft. https://github.com/liambcode/forge-1.19.2-43.1.30-mdk/blob/4a0dc18dd75269dc419f3c639625ba790ab32c6f/src/main/resources/data/debrismod/forge/biome_modifier/add_simple_ancient_debris.json#L3 4) The only placed feature you have configured to go in a biome is using a configuration where it starts at a minimum of y=70 and a maximum of y=0 Can you tell me a number that is bigger than 70 and also less than 0? ๐ https://github.com/liambcode/forge-1.19.2-43.1.30-mdk/blob/4a0dc18dd75269dc419f3c639625ba790ab32c6f/src/main/java/com/liam/debrismod/world/feature/ModPlacedFeatures.java#L20- Trying to figure out Ore Generation. Can someone help?
Not my fault. The information is there. e.g. show me where in the code you are adding your placed feature to a biome. If you make another post that just says "it does not work" I will just ignore you.- Trying to figure out Ore Generation. Can someone help?
And for your next inevitable question, from the earlier link: https://forums.minecraftforge.net/topic/115928-1182-error-trying-to-register-a-custom-feature-based-on-kelpfeature-solved/?do=findComment&comment=512557- Trying to figure out Ore Generation. Can someone help?
This method and the similar one in the placed features class is not being called. So nothing is registered. https://github.com/liambcode/forge-1.19.2-43.1.30-mdk/blob/9d47d3fc63591e8f286d94cf5e1473af644f02e1/src/main/java/com/liam/debrismod/world/feature/ModConfiguredFeatures.java#L35 You are only registering blocks and items. https://github.com/liambcode/forge-1.19.2-43.1.30-mdk/blob/9d47d3fc63591e8f286d94cf5e1473af644f02e1/src/main/java/com/liam/debrismod/DebrisMod.java#L35- [SOLVED] Register BlockEntity in 1.19.2
Add this constructor: public MobKillerBE(BlockPos pos, BlockState state) { this(YourMod.MobKillerBE.get(), pos, state); } Replace YourMod with whatever class you have defined that block entity type You can see something very similar in that tutorial in the section with header "Tile Class" If you want to understand what is going on. Look at the signature of BlockEntityType.BlockEntitySupplier which is the type of the first parameter for Builder.of() It is (BlockPos, BlockState) with no BlockEntityType.- Trying to figure out Ore Generation. Can someone help?
This is the same as your previous thread which was a lot of back and forth to try to get the information out of you to fix a very simple error. It also included you trying to spam me with private messages beyond what is on that thread. https://forums.minecraftforge.net/topic/117995-my-custom-blocks-are-not-dropping-anything-when-mined-help/#comment-519611 Show me where in that repo you are using vertical anchors. Or even any worldgen. I only see tags, recipes and loot tables in your data folder and nothing in your java code. Frankly, you are just too much of a time sink to make trying to help you worthwhile. You either need to up your game or stop wasting people's time. I am inclined to think this isn't real and you are just trolling.- My Minecraft with forge 1.18.2 and mods crash without error
That log is the same as the previous one. This is the support page for curseforge: https://support.curseforge.com/en/support/home As I said before, you need to ask them how to fix it.- Trying to figure out Ore Generation. Can someone help?
your link is a 404 - not found- Rendering part of a block
Look at what tesslateBlock() does. The simple version without ambient occlusion is in pseudo code; initialise the render state from the model and other passed parameters; foreach direction { get the light for that face; get the quads for that face; put the quads with the lighting parameters in the vertex consumer; } do the same for quads that are not attaced to a face; You want to do the same code but only for the faces you want to draw. I have no idea how you would identify which of the extra quads not attached to a face you need to draw unless you know specifics about how the quads were baked.- The game crashed whilst rendering overlay. Could not initialize class org.orecruncher.sndctrl.audio.SoundUtils
Issue with dynamic surroundings. Check you have the latest version then contact the mod author.- Location of a PlacedFeature? [1.19]
The vanilla chunk generator doesn't remember where it places normal features like it does structures or biomes.- ATM7 1.18.2 : Datapacks prevented the world from loading
It is not clear from your description, but I guess from your error message you removed dungeons_arise? If you did, look in kubejs/data/dungeons_arise. The ATM 7 modpack author has overridden the worldgen for this mod. When you uninstall the mod, it still tries to override this data and fails.- findNearestMapStructure always returns null?
Your holder is for the wrong registry. You need to get one from the active server registry. This works for me based on your code: @Mod.EventBusSubscriber(modid = MODID) public class Events { @SubscribeEvent public static void commands(RegisterCommandsEvent event) { event.getDispatcher().register(Commands.literal("blah").executes(Events::blah)); } public static int blah(CommandContext<CommandSourceStack> context) throws CommandSyntaxException { var entity = context.getSource().getEntityOrException(); if (entity instanceof Player player && !player.getLevel().isClientSide()) { ServerLevel level = (ServerLevel) player.getLevel(); // Your code using the builtin regisry which is not used at runtime // HolderSet<Structure> holderset = HolderSet.direct(Structures.JUNGLE_TEMPLE); // Code using the server registry Registry<Structure> registry = level.registryAccess().registryOrThrow(Registry.STRUCTURE_REGISTRY); HolderSet<Structure> holderSet = registry.getHolder(BuiltinStructures.JUNGLE_TEMPLE).map(HolderSet::direct).orElseThrow(); BlockPos pos = player.blockPosition(); Pair<BlockPos, Holder<Structure>> pair = level.getChunkSource().getGenerator().findNearestMapStructure(level, holderSet, pos, 100, false); // This always returns null BlockPos structurepos = pair.getFirst(); int strx = structurepos.getX(); int stry = structurepos.getY(); int strz = structurepos.getZ(); player.displayClientMessage(Component.literal("Location " + Integer.toString(strx) + ", " + Integer.toString(stry) + ", " + Integer.toString(strz) + "!"), (false)); } return 1; } }- Crashing when loading in chunk with boat!
It sounds like that chunk is corrupted? You can post your logs/debug.log to see if there is logged error that can be fixed. But your best solution would be restore the save from a backup.- Crashing when loading in chunk with boat!
It depends on your launcher. This is the first hit using a google search: https://apexminecrafthosting.com/how-to-allocate-more-ram/- Block break event
https://forge.gemwire.uk/wiki/Dynamic_Loot_Modification- Crashing when loading in chunk with boat!
You need to give the game more memory.- My Minecraft with forge 1.18.2 and mods crash without error
I don't see you starting to launch minecraft/forge in that log. Did you restart the launcher after the crash like I told you not to? I do see this error which suggests there is a problem with your forge jar not being installed properly? I believe curseforge has a "repair profile" option that might fix this. Otherwise, you will have to contact curseforge to ask them how to fix it.- My Minecraft with forge 1.18.2 and mods crash without error
I have asked you twice to show the launcher_log.txt If you are using curseforge it is in the curseforge/minecraft/install folder- Failed to run processor
You are still using an old version of java. The latest is build 351 https://www.oracle.com/java/technologies/javase/8all-relnotes.html The ssl trust certificates included in your version have expired.- Failed to run processor
Can't help you if you don't show the new log. We have no psychic powers. Also, post your c:\windows\system32\drivers\etc\hosts - replace c:\windows with wherever you have windows installed- My Minecraft with forge 1.18.2 and mods crash without error
There is nothing in the debug.log, it just stops when loading resource packs. If that really is the full debug.log post your launcher_log.txt - make sure it is from just after the crash, if you restart the launcher it will clear the log. Also check if you have a file beginning hs_err_pid in your minecraft folder from the time of the crash. If you do, don't post the full file, just the first 20 lines.- How do I get a list of players who are currently on a server from the clientside?
We are not a search engine. This is a support forum. Your questions should be about real problems. You not being able to search in your IDE is not a problem for this forum. The class is PlayerTabOverlay. - Replacement of "getDefaultAttributeModifiers"
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.