badkaipanda-blog
badkaipanda-blog
BadKaiPanda
4 posts
Projects, Ideals, Rants and more
Don't wanna be here? Send us removal request.
badkaipanda-blog · 7 years ago
Photo
Tumblr media
Tutorial Rotation via BlockHorizontal
NOTE: This is for MCreator 1.8.1, providing mods for Minecraft 1.12.2, this tutorial is not going to cover any other versions!
So, a hand full of people have been having problems creating the BlockHorizontal Rotation. I am going to create a little tutorial on how I do it, this might not work for you but it should help you get through the door. First you need a block what is worth rotating, if you just want to just try this out then please feel free to use this model [here] this is using the normal obsidian, if you need this texture please view this blog [here] it has all default texture packs from 1.8 to 1.12.2. So first we need to import the json model and set the type it cutout, this can be seen below, this is just the basic information but once we have the block added we then need to go to the “CODE” section of the block.
Tumblr media
To access the code section you can click on the mod element and then click “</>” or you can click the “CODE” button and then open the block code from the menu on left
Tumblr media Tumblr media Tumblr media
It’s a good idea to lock the code, you can do this without locking the code but if you open up the block via the GUI again without locking it means the GUI will override any changes, but if you lock it when you try open the block via the GUI it will go to the code page. So we we need to change the class we are calling from Block to BlockHorizontal you can use the MCreators Drop down while your typing and selecting it, this will create the “import net.minecraft.block.BlockHorizontal;” what you need
Tumblr media
If you didn’t do it via the means below then you have to add “import net.minecraft.block.BlockHorizontal;” yourself at the top of the page in the import list.
Tumblr media
Once you have done this it will skill might not be formatted right so just press the button at the top of the page.
Tumblr media
Right we are not done here, even tho this still worked for me without the logic makes sense so my advice is to include it “this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH));” it will set the default face to north what is a good idea since with most model tools with have a north side.
Tumblr media
So at the end of your code you should see the code blow (isOpaqueCube), right after the } from that override, if you have added other functions to your code like producers you will have to find the code by reading thought your code and looking for the code below, then follow each stage from this point. 
Tumblr media
Include this code below, this is not needed for a full block but when you create custom models it can create a X-Ray like block, so if your using a custom model include the code below (isFullCube) right after isOpaqueCube’s function
Tumblr media
Next we have a few extra classes to include these are not overrides these are added right after the last class you just added, right after isOpaqueCube if you used a full block or isFullCube if your using a custom model.
Tumblr media
PasteBin Code Copy [Here] GitHub Code Copy[Here]
Once you have added the above you will have to also include the import for this also, every time I have tried to get the import button to find it, it never works so add “import net.minecraft.block.state.BlockStateContainer;” at the top in the imports.
Tumblr media
Now we need to tweak the blockstates json file, so go to the (MCreator Folder - user - json - blockstates - modname.json) so in my case rotationtut.json
Tumblr media
Then save it, test it, if you have done it right then it should work,
Tumblr media
Sub Note: I created this tutorial while I was writing this and it worked, the stage about the BlockStateContainer I forgot until I was creating this, it shows you we all can forget something simple, I even reported this to MCreator so it’s silly for me to forget but I did, but I have tested this while writing and it’s all up to date of 29th of November 2018
0 notes
badkaipanda-blog · 7 years ago
Text
Useful tools for MCreator/Minecraft Mods #1
Here is a few useful tools to get started with creating your mods in MCreator you should learn to use more then one tool to make a nice mod. First useful tool is time, yes you need to learn to map out your time and don’t rush yourself, if you start getting a little lost give yourself a brake. This is post #1 of many so please get your self a drink and read them slowly, learn the tools posted below. The more you learn about the tools your using the easier your going to get help from others, showing you tried will mostly get people to help you, not just that if you know the tool your using when someone says do XYZ your more likely going to understand what they are saying to help.   Some free basic tools for making your textures listed below
Paint.net (Download)    This software is free and offers layer support and is really good for  windows users that are just getting started.
Gimp (Download)   This software is free and is available on most OS’s this one is a little more complex to use for first time users but once you understand the tool you will find it very powerful.
Nova Skin - Resource (Use Online)   This online tool and resource lets you create the texture on the block or item you would be using in a more 3d view, the editor can be buggy and times and limited but in a pinch it can still make good textures.
You are still are able to use the default image editors that come with your OS but you do have to give yourself time to make the textures better, some don’t support PNG’s the way there meant to so you might find some limitations, don’t give up and don’t rush, most the time people rush and this is what makes there textures worse, when first making tools and items maybe use a tool or item you like in a lower layer so you can map your new tool over the top of the old one so you can get the right feel.   What? Wait!  There is a editor in MCreator why can’t I just use that?   Answer: Well that’s simple that tool is just not usable and you shouldn’t rely on that editor at all, you could use it to make a really fast texture for testing a random idea but the tool just made the MCreator tool more complex and shouldn’t of ever been added as it’s no use as a texture editor.
  But hang on there!  BadKaiPanda are’t you missing all these online skin/resource editors!
  Answer: No, no I haven’t. The reason I haven’t shown you all these online editors and only posted Nova Skin is that you should learn how to skin from the templates of the resources as if you need to make a quick fix opening it up in a normal editor and fixing it that way is much faster and in the long run easier.   Default textures: You said to get started use a default texture below but where do I get these default textures without hacking them out of Minecraft?   Answer: Well some sites are not so safe that host the default textures so I have grabbed them and posted them on my Media File account for you, I am not the original creator of these textures, hopefully these was just pulled from the Minecraft game but some MIGHT of been changed so keep that in mind.
1.12.x  (Download)   3.72MB
1.11.x  (Download)   3.72MB
1.10.x  (Download)   3.72MB
1.9.x    (Download)   3.72MB
1.8.x    (Download)   4.19MB
  Texture tutorial Question: Will you create a tutorial on how to extract the default textures?
  Answer: This is just a post about software, in the future I will be creating tutorials and this could be one of them if it becomes a common request.
Thanks for reading this post, would you like to learn more about MCreator ? then why not come and join in over at Unofficial MCreator Discord (Link)   Audio Version: To listen to the audio version please follow this link below Link (Audio Version)
0 notes
badkaipanda-blog · 7 years ago
Text
The RPG Again
Well I have been trying to create a RPG Engine in AMS for many years and not failed I must say each version of it as gotten better, first version to this date was still the better version even with the image to image collision detection, but sadly all of that code went bye byes and I have not been able to get it back there but since I tried to recreate it I have made a few plugins and now got the RPG engine back in to a place I could say I ready to move forward again.
youtube
Youtube Video of a game based on the first engine I worked on, under it’s second name a the time as a few people wanted to created a game I was meant to do the engine they was meant to do the story sadly the story never came alive.
The game board is 1024 by 800 (old system 800 by 600) no longer using image collision detection but rather using 32 by 32 grid sections, this has fixed problems within AMS it’s self where it didn’t like image ordering to been changed, and when creating something like this it could change 5 times in a few mins without a second thought, this created problems, so I am pretty happy with the newer version of detection.
At the moment it’s more of a game idea rather then a framework for AMS, once I have a fully working game I will then start cleaning it up for a framework.
At the moment I use no timers for movement at all, this is not needed when the user is checking if the can go the that part of the board or not.
I have a basic but badly programmed save system what I need to revamp badly and also include a inventory system so the user can collect items and save them.
At the moment the scripts are still in image objects on the game board, I felt no need to really change this, as I had problems loading code with comments from files but never did when I took the code from On Right Click sections, so rather then think or lets just leave out comments this way I could just leave the images I am using in with there scripts on them.
I have only so far rebuild one map
Tumblr media
I have not really been in the right mind set to do the game that much well more I don’t have the right mind to come up with a story at the moment so maps don’t mean anything as without a idea maps can’t me created on the story.
I hope to get some kind of story soon and get a baisc game out showing it’s very possible to create useful things in AMS.
But it’s very possible to make a game in this platform.
1 note · View note
badkaipanda-blog · 7 years ago
Text
Taken a tumble on to tumblr
Since I no longer have the hardware to run my server and I don’t want to mess about with setting up a host on the Raspberry pi just yet I thought I would create a Tumblr blog mainly for my projects but also other randomness I might want to post. I might even try and get Toffee to start using Tumblr again as she enjoyed it last time she used it. This was just a simple “Hello World” post to just get a post in the door, I am also going to be using one of my custom domains soon.
0 notes