Everything posted by warjort
-
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.
-
Object did not get ID it asked for. (1.18.2)
You are not registering your worldgen properly. See: https://forums.minecraftforge.net/topic/115928-1182-error-trying-to-register-a-custom-feature-based-on-kelpfeature-solved/?do=findComment&comment=512366
-
render overlay while trying to add resourcepack on minecraft 1.18.2
You have an error in your kubejs script:
-
Creation of simple geiger counter
Look at how the compass works, in particular CompassItem.inventoryTick() NOTE: inventoryTick() happens on both the client and the server Playing sounds is explained in the "Sounds" section here: https://forge.gemwire.uk/wiki/Main_Page
-
Creative Mode check
Minecraft.getInstance().player.isCreative() Although depending upon what you are doing, you might want to use cameraEntity instead of player (for if the user is spectating another player)?
-
I cant use forge
https://johann.loefflmann.net/en/software/jarfix/index.html
-
1.19 Player rotation issue
@Mod.EventBusSubscriber(modid = MOD_ID, value = Dist.CLIENT) public class ClientEvents { @SubscribeEvent public static void camera(ViewportEvent.ComputeCameraAngles event) { event.setRoll(180f); } }
-
[1.18.2] connecting to server after disconnecting for any reason gives error first time then timeouts after
As was said above. The error says one of your mods has badly coded network code. The error does not say which one. The only way to find it, is to experiment with removing mods until you find the problem mod. (Backup your world before removing mods). NOTE: I am assuming you are still getting the same error after doing your update, because you don't post an updated log.
-
how to check if a player is holding a specific item
https://forums.minecraftforge.net/topic/117139-how-can-you-program-in-a-forge-mod-that-the-player-gets-an-effect-when-he-wears-armour-for-example/
-
Forge 1.19 Keep Durability when upgrading Tool in Crafting Table
There is no way to change the NBT of an item crafted in the crafting table. Well there is, but it is not intended behaviour, glitchy and only works in some circumstances. ๐ If you want this kind of thing you need to write your own "crafting table" where you can control what gets put in the result slot. I think you are confusing your requested behaviour with the IForgeItem.getRemainingItem() behaviour. Where you can change the item used in the crafting recipe. e.g. turning a lava bucket into an empty bucket, or damaging a tool used in crafting Or maybe you are thinking of the "hardcoded" repair processing in the anvil?
-
Poi Trouble
I am not seeing your reported crash with that repo. Maybe because that code is more than 3 weeks old and so is not the code you are actually using? I am seeing you not registering any attributes for an entity: because you are not using EntityAttributeCreationEvent So I still can't answer your question. You need to post a version of that repo that reproduces the problem and/or post the debug.log with the error.
-
Help when I press "runClient" it says "Caused by: java.lang.NullPointerException: Registry Object not present: angelmod:ophanim"
You can't call RegistryObject.get() during mod initialization. It defeats the whole point. Use this to learn why: https://forge.gemwire.uk/wiki/Main_Page In particular the "Stages of Mod Loading" and "Registration" sections.
-
How can I make custom animations for entities?
You might also consider using a mod like this one: https://github.com/bernie-g/geckolib/wiki
-
Minecraft Forge - MC 1.19.2 43.1.32 installs 43.1.30
You know you can click "installations" at the top of the screen to view and edit all your installed profiles?
-
Unable to complete inital Forge setup due to Java error
If the installer log you posted is the complete file, it looks like your install didn't complete properly. There should be a message at the bottom of the file saying it finished. Try reinstalling and make sure it tells you it completed successfully.
-
Minecraft Forge - MC 1.19.2 43.1.32 installs 43.1.30
According to your log it is installing 43.1.32, e.g. You should also have something in C:\Users\monte\AppData\Roaming\.minecraft\versions\1.19.2-forge-43.1.32
-
Minecraft Forge - MC 1.19.2 43.1.32 installs 43.1.30
I just tried this. It works fine for me. Post the log that appears alongside the installer jar (same name with a .log on the end) when you install things.
-
How can I make custom animations for entities?
You know you are talking yourself with all these questions about blockbench models/animations? These are the forge support forums. You want the blockbench support forums or discord. Also note these forums are for support. They are not teaching/tutorial forums. We answer specific and focused questions, we don't write your mod for you.
IPS spam blocked by CleanTalk.