Jump to content

Recommended Posts

Posted (edited)

By the way, the forum doesn't support signatures well. They are not displayed under your posts. And if you did change your "about me" it is not visible on your profile.

 

Just post the link in this thread.

Edited by Draco18s

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted
  On 10/10/2019 at 10:57 PM, Draco18s said:

By the way, the forum doesn't support signatures well.

Expand  

I think it does. They just limit it a bit. You can turn off viewing them, turn yours off, or if you are on mobile they dont appear unless you have your browser running in desktop mode.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted
  On 10/10/2019 at 11:24 PM, Animefan8888 said:

You can turn off viewing them, turn yours off

Expand  

I have literally been unable to find this setting every time I've looked for it.

Even just now.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted
  On 10/11/2019 at 4:11 AM, Draco18s said:

I have literally been unable to find this setting every time I've looked for it.

Even just now.

Expand  

It's in the same place you edit your signature.
image.thumb.png.186dcfda504b297a977e3e73562d7f04.png

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted

That would do it, thanks. I've been looking for that for...well, years.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

So I tried getting some help from the furnace classes with the fuel and output slots; but now when I try and access the GUI of my machine, my game doesn't crash; however instead, nothing happens and I get an error saying about an unresolved compilation problem and that the constructor "ContainerShardFuser(InventoryPlayer, TileEntityShardFuser)" is undefined, which I don't know what that means.

  Reveal hidden contents

I'm also aware that there's errors with the textures of my machine, as it just appears as a null block atm; but I wanna focus on fixing this first (probably has something to do with my block not being an everyday 6 sided block. While the tutorial I was following and the furnace code is for a normal 6 sided block). Was looking fine before I started making the functions of the block.

 

Here's the code for my mod: https://github.com/DistinctSoul/SoulForgery/tree/DistinctSoul-SoulForgery

Or if you have signatures enabled, you can also find the code for my mod there.

Posted
  On 10/11/2019 at 7:58 PM, Distinct Soul said:

"ContainerShardFuser(InventoryPlayer, TileEntityShardFuser)" is undefined, which I don't

Expand  

Take a look at your Containers constructor. Your TileEntityShardFuser is not an IInventory(nor should it be). Change your constructor to receive your TileEntity.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted
  On 10/11/2019 at 9:49 PM, Distinct Soul said:

"Change your constructor to receive your TileEntity" 

Expand  

Look at your Container's constructor. By receive I mean change the parameter to accept your TileEntity.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted

So like this?

private final TileEntityShardFuser tileShardFuser;
	private int fuseTime, totalFuseTime, chargeTime, currentChargeTime;
	
	public ContainerShardFuser(InventoryPlayer playerInventory, TileEntityShardFuser tileShardFuser) {
		this.tileShardFuser = tileShardFuser;
		
		this.addSlotToContainer(new Slot(tileShardFuser, 0, 56, 23));
		this.addSlotToContainer(new Slot(tileShardFuser, 1, 56, 47));
		this.addSlotToContainer(new SlotShardFuserFuel(tileShardFuser, 2, 17, 47));
		this.addSlotToContainer(new SlotShardFuserOutput(playerInventory.player, tileShardFuser, 3, 118, 35));

However, now my 'new Slot"s come up with an error saying that they want to do something with IInventory.

Posted

Yes, because to use an ItemStackHandler, you need to use SlotItemHandler, not Slot.

 

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted
  On 10/12/2019 at 4:14 PM, Distinct Soul said:

Do I make them extend SlotItemHandler instead of Slot?

Expand  

Yes.

For example, here's my output slot:

https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/hardlib/api/internal/inventory/SlotOutput.java

 

Speaking of, if you don't want hoppers (and other machines) pushing items into your output slot, you'll need two ItemStackHandlers:

https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/harderores/entity/SifterTileEntity.java#L40-L41

One of which wraps around the other:

https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/hardlib/api/internal/inventory/OutputItemStackHandler.java

So that internally you can insert, but you only expose the wrapper to other systems.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted
  On 10/12/2019 at 5:38 PM, Distinct Soul said:

Will this code work for 1.12?

Expand  

There is a difference between 1.14 and 1.12. You don't use LazyOptional you just access your IItemHandler(ItemStackHandler) directly. LazyOptional is a wrapper around capability values in future versions IE it could contain a value or it could not.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted

Alright, I believe I did that right as placing a hopper on any side of the machine, and then putting items into it, transfers the items into the input slots of the machine; though, I never actually tested what happened before as it never came across my mind. Now I need help trying to solve the main problem, getting the machine to actually work, I'm really clueless on this.

Posted
  On 10/12/2019 at 8:49 PM, Distinct Soul said:

I'm really clueless on this.

Expand  

Check the input slots if there is a recipe and if its result will be able to fit in the output slots. Count ticks until the recipe is completed then remove the input items and add to the output. It's not hard. It's just logical if A do a if B do b.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted

Then what's this doing then?

  Reveal hidden contents

 

Posted
  On 10/12/2019 at 10:08 PM, Distinct Soul said:

Then what's this doing then?

Expand  

A lot of convoluted stuff trying to get it to work. Here is what you should do to debug this. Your IDE should have a debug mode. This lets you stop code execution an go line by line through your code. If you don't know how to use this already you should look it up and learn it. It is extremely powerful tool. Step through your code and find logic errors. It looks like you might have several or even a single if statement that is incorrect.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted

Alright, so it turns out just redoing the entire check conditions was easier and was able to solve the problem; and now thanks to that, my machine finally functions properly! However, I still have a null block as my machines texture. A full null block as well, even though my machine isn't a full 6 sided block. It was fine before I started doing the tile entity stuff and so on; although I think it's because I also changed some stuff with facings in it's block class. I tried swapping the facing and active statements over; but that didn't fix it. I have looked at the error code in the log when loading the game; but I don't get what it wants me to do and where the problem exactly lies:

  Reveal hidden contents

I have tried searching for the solution elsewhere; but other peoples solutions didn't work for me.

Again, here's my classes and their code: https://github.com/DistinctSoul/SoulForgery/tree/DistinctSoul-SoulForgery

Posted (edited)
  On 10/13/2019 at 4:30 PM, Distinct Soul said:
[16:54:13] [main/ERROR] [FML.TEXTURE_ERRORS]:   domain soulforgery is missing 1 texture
[16:54:13] [main/ERROR] [FML.TEXTURE_ERRORS]:     domain soulforgery has 1 location:
[16:54:13] [main/ERROR] [FML.TEXTURE_ERRORS]:       mod soulforgery resources at C:\Minecraft\Created Mods\SoulForgery\bin
[16:54:13] [main/ERROR] [FML.TEXTURE_ERRORS]: -------------------------
[16:54:13] [main/ERROR] [FML.TEXTURE_ERRORS]:     The missing resources for domain soulforgery are:
[16:54:13] [main/ERROR] [FML.TEXTURE_ERRORS]:       textures/items/shard_fuser.png
Expand  

As well as a MissingVariantException:

 

"active=false, facing=north"

is not the same as

"active=false,facing=north"

 

This is why Forge variants exist, but if you're going to use vanilla, you have to match vanilla exactly.

Edited by Draco18s

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted (edited)

Now for some reason Minecraft is looking for my textures in it's domain:

[19:37:25] [main/ERROR] [FML.TEXTURE_ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
[19:37:25] [main/ERROR] [FML.TEXTURE_ERRORS]: The following texture errors were found.
[19:37:25] [main/ERROR] [FML.TEXTURE_ERRORS]: ==================================================
[19:37:25] [main/ERROR] [FML.TEXTURE_ERRORS]:   DOMAIN minecraft
[19:37:25] [main/ERROR] [FML.TEXTURE_ERRORS]: --------------------------------------------------
[19:37:25] [main/ERROR] [FML.TEXTURE_ERRORS]:   domain minecraft is missing 2 textures
[19:37:25] [main/ERROR] [FML.TEXTURE_ERRORS]:     domain minecraft has 3 locations:
[19:37:25] [main/ERROR] [FML.TEXTURE_ERRORS]:       unknown resourcepack type net.minecraft.client.resources.DefaultResourcePack : Default
[19:37:25] [main/ERROR] [FML.TEXTURE_ERRORS]:       unknown resourcepack type net.minecraft.client.resources.LegacyV2Adapter : FMLFileResourcePack:Forge Mod Loader
[19:37:25] [main/ERROR] [FML.TEXTURE_ERRORS]:       unknown resourcepack type net.minecraft.client.resources.LegacyV2Adapter : FMLFileResourcePack:Minecraft Forge
[19:37:25] [main/ERROR] [FML.TEXTURE_ERRORS]: -------------------------
[19:37:25] [main/ERROR] [FML.TEXTURE_ERRORS]:     The missing resources for domain minecraft are:
[19:37:25] [main/ERROR] [FML.TEXTURE_ERRORS]:       textures/blocks/shard_fuser_top.png
[19:37:25] [main/ERROR] [FML.TEXTURE_ERRORS]:       textures/blocks/shard_fuser.png
[19:37:25] [main/ERROR] [FML.TEXTURE_ERRORS]: -------------------------
[19:37:25] [main/ERROR] [FML.TEXTURE_ERRORS]:     No other errors exist for domain minecraft
[19:37:25] [main/ERROR] [FML.TEXTURE_ERRORS]: ==================================================
[19:37:25] [main/ERROR] [FML.TEXTURE_ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=

 

Nvm, just figured out why. My 'shard_fuser_active.json' for my model for some reason was using minecraft to find my shard fuser texture files. Probably did that on accident and never realised until now.

Edited by Distinct Soul
Found the solution
Posted (edited)

Well now there's just 2 small problems left. I would like to understand better on how to create the 'cook' progress meter. My 'cook' progress meter isn't appearing at all. I have tried messing around with it for a little bit, and I've also tried comparing the furnace GUI class coordinates with where it is on the furnace GUI texture; but I just can't seem to figure it out at all.

 

Actually nvm again, it turns out I just forget to add my 'totalFuseTime' case to my getField method. Don't know how I missed that. Well now the only problem I have left with my machine is that when rejoining the world when any of that machine is already placed down, they will automatically set their-selves facing north.

 

Nvm a third time, I also just fixed that issue. Well, I just want to let everyone know who contributed to fixing the problems with my machine and the base of my mod, that I'm really grateful for it. I've had this idea of making a mod for Mc for a long time now, and whenever I make something that works in-game, I get this sense of accomplishment that makes me happy, and without people like you, none of this would probably have been possible. I know that I'm gonna encounter more problems along the way; but I just wanted to say, thank you all for helping me out.

Edited by Distinct Soul
Found the solution

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements




×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.