Everything posted by warjort
-
[1.18] World/Server specific data. How?
Define how it should determine which "world" to use. Once you know that mechanism, code it into your loot table.
-
How to make a custom slot for your armor in inventory?
Because if every mod tried to do their own thing on this, they would all conflict and none would work when used together.
-
[1.18.2] How to properly add an attribute modifier to an itemstack
Do don't explain what you are trying to do. Try ItemAttributeModifierEvent
-
Cannot Load World List
The debug.log doesn't contain any other information about the error except to confirm that is a java heap issue and the save is "Bing Bong" [30Sep2022 12:58:48.011] [Worker-Main-15/ERROR] [net.minecraft.world.level.storage.LevelStorageSource/FATAL]: Ran out of memory trying to read summary of Bing Bong You can try to add more memory, but I suspect the problem is caused by corrupt data in the save.
-
Netty Epoll Server IO #9/WARN
https://forums.minecraftforge.net/topic/91712-supported-version-directory/
-
I played with mods in minecraft 1.19.2, I go into my world the next day, and it freezes at the loading stage. no crash logs.
This looks dubious. Why are you getting an unsigned payload from what is supposed to be the mojang servers?
-
Some help please
Probably: https://github.com/sp614x/optifine/issues/7103 try without optifine.
-
Duplemod error
Your question is unanswerable.
-
Modded game crash
Your question is unanswerable. It contains no useful information. But if you already know which mod is causing the problem, you should check you have the latest version then contact the mod author.
-
Cannot Load World List
You should also try without optifine. When strange things happen, that is the first candidate as the cause. Usually because it conflicts with other mods.
-
Cannot Load World List
The actual error says you ran out of heap memory. But the real issue is why it should want to allocate so much memory here? The game is trying to read the level summaries for each of your worlds. And one of those worlds has some data that wants to allocate a lot of memory. The most likely cause of this is data corruption. Which may or may not be caused by one of your mods. Since you don't post the debug.log I can't tell you anymore. e.g. which save is causing the problem.
-
[1.18.2] ForgeSlider can't drag , it can only be click
Looks like your issue is because you are in a container screen. If you look at "normal" processing ContainerEventHandler.mouseDragged() It sends the mouse dragged event to the focused widget (if there is one). However, AbstractContainerScreen overrides this method and only considers slots. You are going to have to override it again to put back the processing for your sliders and then call super() if there is no focused slider.
-
Error Loading Mods Correctly (java.lang.NoClassDefFoundError:net/minecraft)
You have invtweaks which is a mod for minecraft 1.16 and you have the version of jade for minecraft 1.18. Neither of these mods will work with minecraft 1.19 The 1.19 version of jade can be found here: https://www.curseforge.com/minecraft/mc-mods/jade/files/all?filter-game-version=1738749986%3a73407
-
Poi Trouble
You don't show the error, or minecraft version or any other useful information. "It keeps on crashing and I can't get it to load" is useless. The github project you posted is incomplete. It has no build.gradle, etc. so we can't build it ourselves to find out the problem you have. GUESSING: I can see a number of obvious problems with your code: 1) https://github.com/Tucky143/Buzz/blob/a03ffc801f439a095e9c272dff6510970543f0e2/src/main/java/com/example/examplemod/villager/ModVillagers.java#L29 Here you are doing instance equality tests for a Holder<PoiType> with a PoiType. This will never be true. 2) https://github.com/Tucky143/Buzz/blob/a03ffc801f439a095e9c272dff6510970543f0e2/src/main/java/com/example/examplemod/villager/ModVillagers.java#L36 That reflection code does nothing. Look at the method you are calling. Although I suspect you can't find it. The signature of the method you are using is for 1.18.x while the above methods you are using in (1) above are the signatures of methods in 1.19.x
-
[1.19.2] drop from block based on BlockStateProperties.AGE_3
Ok I understand the question now, but you don't still show nearly enough information to give you a definitive answer. I can tell you the slab's loot tables doesn't drop different items. It drops different amounts of the same item based on the block state. Here's a simple example where I have changed the redstone lamp to drop either a diamond or an emerald depending upon whether it is lit. Note; * the use of multiple (mutually exclusive) pools * the use of minecraft:inverted to do a kind of else/not logic. data/minecraft/loot_tables/blocks/redstone_lamp.json { "type": "minecraft:block", "pools": [ { "bonus_rolls": 0.0, "rolls": 1.0, "conditions": [ { "block": "minecraft:redstone_lamp", "condition": "minecraft:block_state_property", "properties": { "lit": "true" } } ], "entries": [ { "type": "minecraft:item", "name": "minecraft:diamond" } ] }, { "bonus_rolls": 0.0, "rolls": 1.0, "conditions": [ { "condition": "minecraft:inverted", "term": { "block": "minecraft:redstone_lamp", "condition": "minecraft:block_state_property", "properties": { "lit": "true" } } } ], "entries": [ { "type": "minecraft:item", "name": "minecraft:emerald" } ] } ] }
-
game crashes on startup with epic fight- 18.3.5- this is in java
I don't understand. These are the forge support forums. If you have a problem with the EpicFight mod you need to ask them. We can't fix their mod.
-
How do you create custom tree trunks that look good?
Your link is broken. And this isn't really a forge support question. If you want to know how byg does it, you should ask them, or look at their code. https://github.com/AOCAWOL/BYG/tree/1.19.X/Common/src/main/java/potionstudios/byg/common/world/feature/gen/overworld/trees
-
How to make a custom slot for your armor in inventory?
You shouldn't try to reinvent this. You should use an existing mod that provides an api for this that encourages mod compatibility, e.g. https://www.curseforge.com/minecraft/mc-mods/curios
-
[1.19.2] third party mods crash when in eclipse
Yet another question of yours that lacks the full (any) context of what you are doing, not even the error message. Guess: fg.deobf https://github.com/MinecraftForge/MinecraftForge/blob/515c6082e07abbc5a42580509ab4cfef18968dcc/mdk/build.gradle#L134
-
[1.19.2] drop from block based on BlockStateProperties.AGE_3
Your question is pretty much unanswerable. You don't show all the relevant code and the description of what are doing is very confused/contradictory. I can suggest the following previously asked question since you seem to want to save block properties in your dropped loot? https://forums.minecraftforge.net/topic/116437-1192-saving-blockstate-properties-in-itemstack-and-other-way-around/#comment-514095 https://github.com/misode/mcmeta/blob/data/data/minecraft/loot_tables/blocks/bee_nest.json If you want to do something more complicated than what is provided by vanilla minecraft, you can always write your own LootItem(Conditional)Function and/or LootItemCondition
-
How can you program in a forge mod that the player gets an effect when he wears armour, for example?
All LivingEntityEvents have a getEntity()
-
How to make my stone generate like Andesite, Diorite, Granite? [1.19]
You are using the forge:is_cave biome tag https://github.com/MinecraftForge/MinecraftForge/blob/1.19.x/src/generated/resources/data/forge/tags/worldgen/biome/is_cave.json You probably want a different tag like minecraft:is_overworld https://github.com/misode/mcmeta/blob/data/data/minecraft/tags/worldgen/biome/is_overworld.json
-
[1.18.2] How to make an Enchantment with more than one Enchantment Category?
You need to make 2 different enchantments. Like fire_aspect (weapons) vs flame (bow) or sharpness (weapons) vs power (bow)
-
How to make my stone generate like Andesite, Diorite, Granite? [1.19]
The same way you added a configured feature. You can find docs on this wiki: https://minecraft.fandom.com/wiki/Custom_feature That site contains information about most things in resource packs or datapacks. And here's a website that has generated the vanilla builtin datapacks into json files: https://github.com/misode/mcmeta/tree/data/data/minecraft/worldgen/placed_feature
-
How to make my stone generate like Andesite, Diorite, Granite? [1.19]
Features have 3 levels of abstraction Feature: the thing that does the generation ConfiguredFeature: Feature + Configuration, e.g. how big it is or which BlockStates, etc. PlacedFeature: ConfiguredFeature + placement options, e.g. diamonds go at the bottom of the world
IPS spam blocked by CleanTalk.