Jump to content

Recommended Posts

Posted

Hey there,

 

So, I've been modding for 4 years, off and on... but I realized, I cant really do a lot.. my knowledge seems limited when it comes to Minecraft... I look at code from botaina or mods like this. I really, don't.. understand.. stand.. *A LOT*...

 

So my questions is.. How would I learn these things..? Tessellations , TEs, Guis, etc..

 

Should I just spend a month studying, looking though the default classes, forge, other mods... etc?

 

Maybe there is a better way?

 

Thanks,

 

Relatively new to modding.

Currently developing:

https://github.com/LambdaXV/DynamicGenerators

Posted

Just like with everything related to programming: you learn it by doing it.

 

Some blocks in Minecraft are composed of multiple things. Take for example the furnace: it is a

Block

, it has a

TileEntity

, it has a

Container

and a

Gui

. The

Block

can be rotated in 4 directions and has an on/off state.

 

So start for example with making a faster furnace. That will cover a lot of stuff for you.

 

Now I'm not saying the furnace does it in the best way possible, as it isn't. It uses 2

Blocks

while the on/off state could be stored in metadata.

 

So try to mimic something from vanilla, and then change it. If you have issues, make a thread on the forum and we will help if we can.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted

I have been making a "fast cooker" for a while, and I have quite a few problems, that I would like to know how to fix. For example, my furnace does not update the block state. What I mean by that is that the furnace smelts things, but you can't see the texture updating and the particles. The ItemBlock model (fast_cooker.json#inventory) was "not found", so it shows a purple and black texture. The block itself, when broken, breaks instantly, does not drop anything, and (I think) does not remove the tileentity... Basically that block is occupied, you cannot walk into it, the screen shakes, and when a block is placed there, it gets replaced with the Fast Cooker. After destroying the second Fast Cooker, the bugs sotop. In the console, you can see the error: the tileentity com.thesuncat.momod.TileEntityFastCooker is missing a mapping. This is a bug! I have tried a lot of different ways of dealing with these problems, and I currently have the exact same code as a regular furnace, except that the names are different. Another weird thing is that it does not cook fast, even if I set the total furnace cook time to 30 ticks... Sorry I can't post my code right now, but I will do it maybe tomorrow... Does anyone have an idea of what the problem might be? Again, I have the same exact code as a vanilla furnace, but replacing all references to "TileEntityFurnace", "ContainerFurnace", "GuiFurnace", and "BlockFurnace" with the FastCooker versions.

You should make your own thread with all the relevant code, because it is rather difficult to guess what is wrong, because there are many possibilities. The missing mapping error is because you have not call GameRegistry.registerTileEntity(...).

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

I can think of a few examples: normal item - normal block - glowing block - creative tab - custom model block (with custom BB) - tools - armor - recipes - block with tileentity - capabilities - custom crafting table (copy the vanilla code and tweak it a little bit) - custom furnace (same as crafting table) - entity like a pig - boss - biome - dimension, hope this helps

this is just what I think it would be

Classes: 94

Lines of code: 12173

Other files: 206

Github repo: https://github.com/KokkieBeer/DeGeweldigeMod

Posted

I'd add Capabilities in there between Block with Entity and Custom Crafting table.  Which necessitates the Packets.

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

I have been making a "fast cooker" for a while, and I have quite a few problems, that I would like to know how to fix. For example, my furnace does not update the block state. What I mean by that is that the furnace smelts things, but you can't see the texture updating and the particles. The ItemBlock model (fast_cooker.json#inventory) was "not found", so it shows a purple and black texture. The block itself, when broken, breaks instantly, does not drop anything, and (I think) does not remove the tileentity... Basically that block is occupied, you cannot walk into it, the screen shakes, and when a block is placed there, it gets replaced with the Fast Cooker. After destroying the second Fast Cooker, the bugs sotop. In the console, you can see the error: the tileentity com.thesuncat.momod.TileEntityFastCooker is missing a mapping. This is a bug! I have tried a lot of different ways of dealing with these problems, and I currently have the exact same code as a regular furnace, except that the names are different. Another weird thing is that it does not cook fast, even if I set the total furnace cook time to 30 ticks... Sorry I can't post my code right now, but I will do it maybe tomorrow... Does anyone have an idea of what the problem might be? Again, I have the same exact code as a vanilla furnace, but replacing all references to "TileEntityFurnace", "ContainerFurnace", "GuiFurnace", and "BlockFurnace" with the FastCooker versions.

You should make your own thread with all the relevant code, because it is rather difficult to guess what is wrong, because there are many possibilities. The missing mapping error is because you have not call GameRegistry.registerTileEntity(...).

That fixed it, thanks! Just one more problem, the ItemBlock is a "missing model" black and purple block... I have already asked for assistance in other places, but this still hasn't gotten fixed... I can post code if needed.

Make your own thread!

Classes: 94

Lines of code: 12173

Other files: 206

Github repo: https://github.com/KokkieBeer/DeGeweldigeMod

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.