Everything posted by warjort
-
Maximum allowable capability data size, and how concerned do I need to be about it?
See for example BlockItem.canFitInsideConstainerItem() or ShulkerBoxBlockEntity.canPlaceItemThroughFace() for how this recursion is stopped for shulker boxes. There are a number of different "hidden" limits on saved/networked data. The most notable is java's DataOutput.writeUTF() limit of 65535 for a String (really half that since String characters can be 2 bytes). You probably won't run into any of these of limits unless you are not being sensible.
-
[Solved]Cannot get config value before config is loaded.
Configs are not available during mod initialisation. You access configs during Common/ClientSetup and later. https://forge.gemwire.uk/wiki/Stages_of_Modloading
-
when i use the mowzies mobs ice crystal my world freezes and crash in my mod pack pls help
Issue with mowziesmobs, contact the mob author.
-
[1.18.2] Game crashes on 0% while trying to create a world
Download the correct version of optifine for the version of forge you are using.
-
How to deal with mirrored recipes?
Create and register your own subclass of ShapedRecipe/Serializer and override the Recipe.matches() to not do the mirrored check. Example from a different thread that overrides the assemble() instead of matches() https://github.com/Choonster-Minecraft-Mods/TestMod3/blob/f171406e5ab59ac33e43c19a76109b584cfefe4c/src/main/java/choonster/testmod3/world/item/crafting/recipe/ShapedArmourUpgradeRecipe.java
-
Linking item and capability
https://forge.gemwire.uk/wiki/Capabilities/Attaching
-
[1.18.2] My game is crashing on start up and i cant figure out which mod is causing it.
You are missing the AutoRegLib mod.
-
[1.18.2] Adding Recipe Type To Crafting Table
Your Recipe needs to extends CraftingRecipe look at RecipeType.CRAFTING used by CraftingMenu.
-
Server crashing with 0xc0000005 error
This is a crash in the java virtual machine, you need to report it on the link suggested: http:// https://bugreport.java.com/bugreport/crash.jsp
-
Increase arrow entity speed and bow draw speed.
I think your problem is caused by the ClientBoundSetEntityMotionPacket which clamps the maximum delta at +/- 3.9d Obviously, the same clamp doesn't happen to the real data on the server so there is an inconsistency.
-
[1.19.2] How to create the screen warp effect like the vanilla nether portal effect
Not my area of expertise, but it looks like the NetherPortal code is "spread out". First you have NetherPortalBlock.entityInside() that sets the isInsidePortal flag for the entity. Then you have LocalPlayer.handleNetherPortalClient() that controls the timer. The timer is then used in GameRenderer.render() for renderConfusionOverlay(), GameRenderer.renderLevel() and (Forge)Gui.renderPortalOverlay() I'll leave it you to decide how much of this you can reuse. The latter is what you should be overriding for your overlay, see for example: https://forums.minecraftforge.net/topic/115993-how-to-remove-the-sight-cross-in-the-center-of-the-screen/#comment-512655 except you want VanillaGuiOverlay.PORTAL and to actually draw something, not just cancel the event.
-
Increase arrow entity speed and bow draw speed.
Try setting arrow.hasImpulse = true after you change the velocity. If you look at ServerEntity.sendChanges() that should cause it to send an update packet instead of waiting 20 ticks (the arrow's updateInterval).
-
[1.19.2] make custom mesh drooped items fall through ¿ is posible to detect when chicken drop's an egg
Eggs are item entities, they don't take fall damage. Block(Behaviour).entityInside() if you don't have a full block.
-
1.19.2 Server crashing due to Exception in server tick loop (FORGE)
Looks like an issue with the apoli mod, contact the mod author.
-
How to get All Woods and their Planks?
Enough. You need to spend more than 5 minutes researching this. Instead of expecting us to write your mod for you. e.g. look at how the 2x2 crafting grid works in InventoryMenu
-
How to get All Woods and their Planks?
You need to use the RecipeManager serverLevel.getServer().getRecipeManager() to find the Crafting(Shapeless)Recipe for the logs you have (assuming there is one). That is the only thing that associates logs with planks.
-
How to get All Woods and their Planks?
(Re)read what I wrote above about recipes.
-
How to get All Woods and their Planks?
That's for you to decide. "blah" is a placeholder for your code. 🙂 You could also replace the .forEach() with .stream().toList() or .iterator() if you are not familiar with consumer iteration.
-
[1.19.2] on block use() know if player has in hand mi custome_block or is empty
Block.asItem() assuming your block has a registered BlockItem
-
How to get All Woods and their Planks?
The way to get the list for all logs (including modded logs) is: ForgeRegistries.ITEMS.tags().getTag(ItemTags.LOGS).forEach(item -> blah); and similar for ItemTags.PLANKS But there is no association between the 2 lists except for that provided by the recipes.
-
Slot which can be asset only by player
Simply override the extractItem() for your IItemHandler to disallow/ignore extraction from that slot. See for example SidedInvWrapper used by the furnace that only allows extraction from a slot according to the side of the block.
-
FORGE 1.19.2 Creating World Error
Download the correct version of journeymap for 1.192 https://www.curseforge.com/minecraft/mc-mods/journeymap/files/all?filter-game-version=1738749986%3a73407
-
1.18.2 minecraft forge server
Use java 17
-
Minecraft crash
Probably https://github.com/sp614x/optifine/issues/7103
-
1.19.2 - Terrablender failed to load (Forge)
Your terrablender config file is broken. If you don't have a backup and don't know how to fix it, you can delete the file and it should recreate it with default values.
IPS spam blocked by CleanTalk.