-
Posts
1830 -
Joined
-
Last visited
-
Days Won
12
Everything posted by DavidM
-
How do i make forge tell me all missing registries ?
DavidM replied to Misadique's topic in Support & Bug Reports
I believe that missing registry warnings are also recorded in the debug.log. -
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.
-
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.
-
@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.
-
How did you determine whether it is working? The event is firing fine in my workspace.
-
The part of the code where you actually play the sound...
-
None of the code you posted is relevant to playing the sound. Please post more of your code.
-
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?
DavidM replied to superminerJG's topic in Modder Support
Please don’t post copy-pasta code like this in the future. Others will just copy it without learning anything. -
Don’t use MCreator. If you want to mod please learn Java and do it properly.
-
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.
-
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
DavidM replied to Babelincoln1809's topic in Modder Support
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. -
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.
-
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.
-
Just pass an instance of IItemTier to your item.
-
[1.15.2] Disable vanilla experience bar without affecting other mods
DavidM replied to squidlex's topic in Modder Support
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. -
Note that if you are just looking to create one IItemTier implementation then there is no point in using an enum.
-
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).
-
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
DavidM replied to kornfan6589's topic in Support & Bug Reports
The problem might be caused by other mods. If you haven’t tested this without mods then there is nothing much Forge can do. -
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).