Everything posted by DavidM
-
How do i make forge tell me all missing registries ?
I believe that missing registry warnings are also recorded in the debug.log.
-
[1.15.2]How to sync variable in TE?
You are still doing this. Don't do this on the client, as it does nothing (well it might do something, but definitely not what you are expecting). Only send a packet to update your tile entity if the angle changes. Don't do it every tick. If the angle is not unpredictable and only change as part of an animation, send a packet to the client when the animation starts and handle the animation on the client side.
-
Setting Harvest Tool and Harvest level [1.15.2]
Pass in a ToolType to harvestTool. E.g. ToolType.AXE. Harvest level Is just an integer. I believe it is something like 0: wood, 1: stone tools, 2: iron tools, 3: diamond tools.
-
[1.15.2]How to sync variable in TE?
@Override public void onDataPacket(NetworkManager net, SUpdateTileEntityPacket pkt) { super.onDataPacket(net, pkt); readFromNBT(pkt.getNbtCompound()); BlockState state = this.world.getBlockState(this.pos); this.world.notifyBlockUpdate(this.pos, state, state, 3); } World#notifyBlockUpdate is used to notify a block update, not actually update the block on the client side. All you have to do is to read data packet in onDataPacket.
-
Knockback event
How did you determine whether it is working? The event is firing fine in my workspace.
-
Unable to play empty soundEvent
The part of the code where you actually play the sound...
-
Unable to play empty soundEvent
None of the code you posted is relevant to playing the sound. Please post more of your code.
-
Creating stumps in minecraft
Subscribe to BlockBreakEvent (might be spelt wrong; the event representing the player’s breaking a block) and check if the block broken is 1) a log 2) directly above a dirt. If yes then replace that block with your stump block.
-
[1.15.2] How do I create a crafting recipe which damages an item?
Please don’t post copy-pasta code like this in the future. Others will just copy it without learning anything.
-
Ink Pet Mod! [BETA VERSION]
Don’t use MCreator. If you want to mod please learn Java and do it properly.
-
How to exactly use IItemTier [1.15.2]
Threads on these forums don't close after the problem has been solved. Instead, you can prepend "[Solved]" to the title of this thread to notify other people that this problem has been solved.
-
HOW TO UNINSTALL FORGE
I understand that people might want to remove Forge for whatever reason, but deleting the launcher has nothing to do with Forge. Doing so would delete the Launcher of Minecraft, not Forge. Forge versions are located under the versions folder under your game directory.
-
Resetting a value to it's original value
Items are singleton. You can't edit the field directly and expect it to only reflect on one of the ItemStack. Use an event subscriber and subscribe to the event that resembles player attacking entity instead.
-
trying to increase my ram, will it give me more fps on minecraft?
It is not a feature-related problem. If you learn programming in the future, you will realize why creating mods with MCreator (and mod makers in general) is a bad idea. The reasons of this has been repeated at least 100 times on this forum. Do a forum search if you are interested in finding out why.
-
trying to increase my ram, will it give me more fps on minecraft?
Please don't use that abomination. MCreator would fail you immediately once you decide to do more than "add a custom stick item into the game".
-
How to exactly use IItemTier [1.15.2]
An instance of a class implementing IItemTier is also an instance of IItemTier. In terms of class hierarchy as OOP concept, class and interface are treated the same way. Phrases such as “instance of” and “superclass of” apply to both classes and interfaces.
-
How to exactly use IItemTier [1.15.2]
Just pass an instance of IItemTier to your item.
-
[1.15.2] Disable vanilla experience bar without affecting other mods
I don’t think there is any other ways. There might be ways such as replacing rendering class regarding the overlay, but not without breaking even more mods. However Mine and Slash shouldn’t make all overlays rendered during the rendering of the experience bar. It is a problem on their side. You can submit a PR or open an issue addressing this on their GitHub.
-
How to exactly use IItemTier [1.15.2]
Note that if you are just looking to create one IItemTier implementation then there is no point in using an enum.
- .
-
trying to increase my ram, will it give me more fps on minecraft?
That's good. However such effect varies heavily on setup may not happen on all devices. USB RAM is always significantly slower than normal. I wouldn't recommend any YouTube videos on the topic. Your best bet is to learn modding and update them yourself (make sure to contact the author for permission).
-
trying to increase my ram, will it give me more fps on minecraft?
It probably won’t. From a system’s perspective, RAM is used as runtime memory storage mainly due to its high speed compared to disk. Turning disk storage into VRAM defies this purpose. Yes, doing this will allow you to load large resource packs that was previously too large for your allocated memory, but expect the FPS to drop by 4-5 times even when not using resource packs (given that your game actually applies the extra “memory”). Unless you are doing stuff like data science, and want to, say, load larger batches of data at a time, then there is no point in using USB as RAM.
-
End Portal not always teleporting to correct location
The problem might be caused by other mods. If you haven’t tested this without mods then there is nothing much Forge can do.
-
trying to increase my ram, will it give me more fps on minecraft?
Turning USB into RAM would be extremely slow and inefficient. I don’t expect it to increase your computer’s gaming performance.
-
[1.14] Stop Rendering
If you are just looking for a way to AFK in Hypixel SkyBlock (as indicated by the picture) then there are mods out there that disables the client rendering at all (even the window itself). However, If you want to make a general mod for disabling parts of the rendering, you need to use reflection to change certain aspects like the WorldRenderer (as TGG mentioned above), or unbind renderers from TEs if you want to disable TESRs from rendering while keeping world rendering the same. You might want to check out https://github.com/davidmaamoaix/StopRender (the code is for 1.12.2, but the concept haven’t change much).
IPS spam blocked by CleanTalk.