-
Posts
1830 -
Joined
-
Last visited
-
Days Won
12
Everything posted by DavidM
-
Subscribe to RenderWorldLastEvent and do your render there. Look at how snowball does its rendering; they are similar in drawing the sprite to face the camera.
-
Using the default file browser to look for hidden files is not a good idea. Use your command line and do a recursive search instead.
-
You do have control over it. Just rm it from the terminal.
-
You will have to create a custom IRecipe implementation for that. Check out the documentation on that. The EnchantmentUtils (or is it EnchantmentHelper) class might also contain some useful functions.
-
Anyway to make a mob do damage through itemInteractionForEntity?
DavidM replied to Babelincoln1809's topic in Modder Support
Override Item#onEntityInteract (probably spelt differently; use your IDE to find it) and damage the LivingEntity given there. -
How would you use damaged or enchanted items in custom recipes on 1.12.2?
DavidM replied to Cornpop's topic in Modder Support
1.12 is no longer supported on these forums due to its age. Please update to a modern version of Minecraft to receive support. -
1.15.2 forge server crash Exception in server tick loop
DavidM replied to AmpArts's topic in Support & Bug Reports
NightConfig is what Forge use for its config system. It is not from a separate mod. -
1. Why did you cut out the bottom part of the log? 2. 1.12.2 is no longer supported on these forums. Please update to a modern version of Minecraft (1.14 and above) to receive support.
-
[Solved][1.14.4] Adding Potion Effects to Armor Sets
DavidM replied to Sauuuuucey's topic in Modder Support
Slots not being empty != the player is wearing the specified armor piece. -
[1.15.2] Check offline player's advancements on client side
DavidM replied to ZekNikZ's topic in Modder Support
You cannot, unless the mod is also installed on the server, in which case you should use packets. -
Where to get started making more complex block models [1.15.2]
DavidM replied to MistaOmega's topic in Modder Support
Ah sorry! I somehow forgot to push to remote for quite a while. Anyways, here is the blockstate file. (Note that by item_pipe I meant the model of the pipe that transfers item, as opposed to the item model of a pipe) In addition, SixWayBlock can handles almost everything about the blockstate and collision boxes of a block that can connect to 6 directions (i.e. pipes). Check out the vanilla chorus plant for usage. -
Where to get started making more complex block models [1.15.2]
DavidM replied to MistaOmega's topic in Modder Support
I previously made some pipes in one of my test mods here. They can’t transfer items at the moment, but the models and connection to other pipes/inventories are functional. Check out the block state file for it, which used the multipart feature of the model system. -
“Research” in this context means searching (as opposed to asking). The proper method of finding a solution is as follow: 1. Use Google/any relevant method of searching in the specific topic. 2. If step 1 yields no results, ask other people. The reason why step 1 precedes step 2 is it doesn’t require other people’s attention/time. If everyone asks trivial questions/questions that has been asked numerous times before, then the forums would be flooded by the same question. This would take up other forum members/staffs’ time, making people who are really in need of the forum unable to find help.
-
If I understood correctly, you are looking for Direction#getOpposite. Unfortunately, I am having difficulties understanding you due to your grammatical inaccuracy. Please try rephrasing.
-
In that case your graphic card might not support OpenGL.
-
[1.15.2] Custom Shield Renderer Showing Default Textures
DavidM replied to weiblecr's topic in Modder Support
Your texture does not exist, at least not the way you are expecting. You need to stitch the texture to the place where you told the game to look in (AtlasTexture.LOCATION_BLOCKS_TEXTURE). You need to stitch the texture onto the texture atlas. -
what software do i use to develop mods for 1.15.2
DavidM replied to Aflac's topic in Support & Bug Reports
Follow one of the tutorials suggested above. I would recommend this one: https://cadiboo.github.io/tutorials/1.15.2/forge/, as it goes through the setting up of the workspace. I personally use Eclipse for modding, but most Java IDEs that support Gradle should work fine. You can even mod with a text editor if you want (I definitely wouldn't recommend it though). Java is quite structurally and syntactically different from Python and Lua (and HTML isn't a programming language), but if you are familiar with programming concepts then you should be good to go. -
[SOLVED] [1.15.2] Replace Block/TileEntity with another Block/TileEntity
DavidM replied to Ozone's topic in Modder Support
The "flatten the code" is meant for different blocks. Previously due to the ID limit, mod authors commonly associate different types of item to the same ID (i.e. different colored cobblestone, or vanilla's different colored wool). These should be flattened and separated into different block registry entries. However this is not the case in your case. Your two blocks are similar to the off and on state of redstone lamp, and your two blocks functions similarly (can be done with a single tile entity). It sounds like the only difference between the two blocks is the texture of the block, which would be easier to manage with block state properties. -
[SOLVED] [1.15.2] Replace Block/TileEntity with another Block/TileEntity
DavidM replied to Ozone's topic in Modder Support
Instead of swapping blocks, you should use block state properties. -
What do you mean by “overriding something”?
-
Get the unit vector of the entity to the destination and scale that by the desired speed, then move the entity by that amount.
-
To what extent is Minecraft multi-threaded?
DavidM replied to Jipthechip's topic in Minecraft General
Depending on the game type of the server, it may be more up to how server plugins are written rather than the game itself (i.e. mini game servers rely heavily on the performance of the mini game plugins). As for optimizing the game itself, projects like Spigot provide tweaked server jars that might improve server performance. -
To what extent is Minecraft multi-threaded?
DavidM replied to Jipthechip's topic in Minecraft General
Except that would break every world interaction as well as cause a ton of concurrency issues. Adding more threads doesn’t mean the game would be faster and better; threading is not a magical solution to all performance issues. Threading should only be used if the routine to be put on another thread makes sense to be on another thread (i.e. make the checking for update routine separate from the main game thread, or separate the render thread from the game logic thread (not Minecraft specific)). It is not as simple as totalTimeUsed / threadCount = actualTimeUsed.