Everything posted by Draco18s
-
[1.12.2] Canceling item placement when rightclicking on a block and rendering issues
I...am not sure what kind of trouble you're having. Maybe you should post your code, even if its something you tried, but didn't work. This is not a vanilla or Forge supplied method.
-
[1.14.4] how to make a gui progress bar?
You need to synchronize the data to the client.
-
(SOLVED)[1.14.4] Crash upon adding assets folder
i.e. "read your damned errors." The error tells you what's wrong. There are invalid characters in your paths. The file its looking for might not exist, but there are still invalid characters in the path to that file.
-
[1.14.4] how to make a gui progress bar?
That happens to be the maximum time: https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/harderores/entity/SifterTileEntity.java#L90 Timer gets set to 40 and it counts down (values like this one being more as "abort, wait for valid inputs")
-
(SOLVED)[1.14.4] Crash upon adding assets folder
Learn to read yer gawd damned errors.
-
[1.14.4] how to make a gui progress bar?
Wow, what a surprise. So am I. See this line here? Notice that this executes even when isRemote is true? That's because the client utilizes the same logic the server uses to update the smelting arrow. https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/harderores/client/gui/SifterGuiContainer.java#L46 https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/harderores/entity/SifterTileEntity.java#L182
-
[1.14.4] how to make a gui progress bar?
As I've started on a number of occasions: Nothing prevents you from performing the cooking operation on the client, provided you synchronize the test of the data when appropriate.
-
[1.14.4] Is graphical mod customization supported?
You should notice that the hasConfigUI() there is based on mi.getModConfig() returning true and mi is a ModInfo instance, which is populated from toml content.
-
Mods server
I am pretty sure you need to run the server once (with Forge) for Forge to create the mods folder. Note that (last I checked) there are two start server .bat files, one will start the server without Forge. You don't want that one.
-
[1.14.4] Is graphical mod customization supported?
Take a look at this (already merged) PR: https://github.com/MinecraftForge/MinecraftForge/pull/6208
-
Implementing Fluids in 1.14.4
Darn
-
[1.14] Custom armor with vanilla repair items
"Void" is the return type of a method. That thing is called a "method" and when it does not have a return, its return type is "void." import net.minecraft.item.Items; https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/harderfarming/HarderFarming.java#L31
-
[1.14] Custom armor with vanilla repair items
Items.IRON_INGOT?
-
How to add Thaumcraft ascpects to items? 1.12.2
https://github.com/Azanor/thaumcraft-api
-
[1.14-newer] deprecated method onBlockActivated
Really. public boolean onBlockActivated(World worldIn, PlayerEntity player, Hand handIn, BlockRayTraceResult hit) { return this.getBlock().onBlockActivated(this, worldIn, hit.getPos(), player, handIn, hit); } public void onBlockClicked(World worldIn, BlockPos pos, PlayerEntity player) { this.getBlock().onBlockClicked(this, worldIn, pos, player); }
-
Implementing Fluids in 1.14.4
Last time I fiddled around with fluids, they had a density property, and if you lowered that enough (I don't remember how low, but probably less than zero) it would flow up automatically. Old, old code: https://github.com/Draco18s/HarderStuff/blob/master/src/main/java/com/draco18s/hazards/UndergroundBase.java#L97
-
[1.14.4] Tile entity is missing a mapping.
You should still use an ObjectHolder. There is no reason to assign the field yourself.
-
[1.12.2] Smooth Velocity for Client-Side Entity
You realize that this entity you've created on the client side basically is a ghost, right? Nothing you do will ever show up on any other client's view of what you're doing. Placing a block "on" the armor stand won't take that block out of your inventory, etc.
-
[1.12.2] Item's texture not appearing, showing pink-black missing texture with the item's name and #inventory
I told you the directory name was wrong. The file-not-found exception tells you exactly where it was looking.
-
[1.14.4] Tile entity is missing a mapping.
Use ObjectHolder
-
[1.14.4] world.setLightFor is missing?
Minecraft's lighting mechanics are going to make that difficult. But in theory you can create an air block (no collision, hitbox, or model) that causes light to drop extra fast.
-
[1.12.2] Item's texture not appearing, showing pink-black missing texture with the item's name and #inventory
I can't verify that you have the file correctly named and in the correct location as you haven't shared that information. All I can tell you is that it currently is not correct.
-
Open Command Block GUI When Right-Clicking on Entity???
You don't show where this tileentity is coming from, but odds are either it doesn't exist (is null) or isn't a tileentity.
-
[1.14.4] get item out slot of lazyoptional<IItemHandler>?
Get stack Insert item Set stack (probably not clean code, however; looking at it made me wonder if I could have written it better) Extract item Get slot limit
- [1.12.2] Item's texture not appearing, showing pink-black missing texture with the item's name and #inventory
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.