Jump to content

Cerandior

Members
  • Posts

    385
  • Joined

  • Last visited

Everything posted by Cerandior

  1. Can i use isAssignableFrom(IInventory) in this?
  2. So i basically have a block which will be like "the core" of a multi-block structure. From it i will check if the multiblock is created or not. That's the easy part. However what i want this "core" to do is, to plant different type of plants (like wheat seeds, saplings....). It's basically a 3x3 planter. However instead of giving this "core-block" a inventory of it's own i want it to check different blocks that are touching this "core-block" which have an inventory. Which means that if a chest is touching this "core-block" and this chest has seeds in it, the "core-block" will go ahead and plant them. And when they are fully grown it will put the goods inside this chest. And the cycle repeats... I hope you understood what i want to accomplish.
  3. You know tinkers construct have done something similiar with their axe recipe. Check out tinkers tool forge source
  4. Yes i know that the copy-paste thing would slow down minecraft a lot but that was the first thing that came in my mind. As for the others, i am going to give it a try and post the results.
  5. What do you recommend using for the MovingObjectPosition value?
  6. Well some time ago i wanted to improve my 3x3 pickaxe. People said to use MovingObjectPosition and Minecraft.getMinecraft().objectMouseOver I did that and it worked perfectly. Now after some testing to make sure everything is ok i found out a weird glitch happening sometimes when i mine from the side. It's hard to describe it with words so i made this video Here is what happens: https://www.youtube.com/watch?v=UQz2evR9Pck&feature=youtu.be Here is my pickaxe code: Here is my shovel code: (They are very similiar) I am very confused because i don't know what to do. One of my thoughts is that the ray is going through and it doesn't know in which direction it should mine so it does that weird thing. However i am not sure if i can fix it.
  7. Create a normal item an override canharvestblock in your item. Create a private float wich will be the efficiency of the tool and override func_150893_a and return the private efficiency float. Use onitemuse do create the rocks and stuff you wanted.
  8. So nobody has got any other idea
  9. That would still not be very accurate. Another way of doing it is raycasting but i dont know how to use it properly ao i just used a block and place it wherever i am destroying a block so i can get the right position however that brought me Problems with the edges
  10. Well i made my 3x3 pickaxe based on player yaw and pitch. I am not happy though. Nit at all. After some testing i saw that the pickaxe is not very accurate. Sometimes instead of doing 3x3 when i am looking down it mines like iam looking forward. Is there a way to get ghe side of the block that i am pointing at. Like north, west, up, down. This way the mining would be pretty accurate without using the player yaw and pitch.
  11. When wearing a part of an armor.
  12. I want to be able to create the effect of a low gravity on minecraft. I think the effect of the gravity on minecraft is created by the player always moving with a certain speed in the negative Y direction. At least i think so. If i change the speed with which the player moves in this direction it will create the effect of a low gravity. I think this can be done using a event but i dont know which one is responsible for this. Maybe this can be done without an event but that was my first thought.
  13. Shadowfacts. I saw the.first part of it. I have no time for tge others but really i have to thank you on this one. This is exactly what i needed. I am very gratefull and thankfullnfor your time.
  14. Just to state it out i have no need of a coremod right now. However i might need in the future, learning it now will save me the time and trouble for later. Also it will get me knowledge that i can use on my current mod.
  15. @shadowfacts. I want to learn more, extend my knowledge. A knowledge that i may need later and probably even now. @Draco18a. Thank you for the help but i would like something that goes through all the important events and how to use them. I would like a voice tutorial but the written is fine aswell.
  16. There is plenty of help out there to create custom content for minecraft but i cant seem to find any for coremods. What i mean is that i want to learn a little bit more about modding and i want to be ablrle to change vanilla code. If any of you got a detailed tutorial on changin vanilla content, events, and stuff like that i would like to have a look at it. Thank younfor your time.
  17. You probably waiting for help but i would like to know what propertydirection is . I have used forgedirections before but this?
  18. Well i started programming at c#. If minecraft was in c# i could have helped you on this, but in java, i am not quite sure how to do it. Not very experienced on java internet code.
  19. You use nbt to create your voltage. You only want to get rid of your energy while your machine is working. What i mean is that you probably have used a boolean in your machine which will hold the state of your machine. If your machine is working then each tick you want to get out 1 energy unit from your battery. Thats an exmaple. I am sorry that i cant write you a piece of code because i moved to another apartment and my computer is packed. Cant write code from my phone. Try watching an example on guthub.
  20. NBT is good enough. You dont need a better way. Minecraft also created the advanced metadata a.k.a tileentity but that isnt necassary for you in this one.
  21. I dont think you are doing this right. You are creating a new tag each tick which will overwrite the previous data.
  22. A NBTTagCompund should work i think. You can update the values while your machine works.
  23. Lasgerrits, you can put your ideas and your programming skills in use for other stuff, like creating your own game. However that is if you are doing this for fun. I am not saying that you start this with the sole purpose of getting money. When you have the ideas and the abbility to do something then why not give it a try. And later if your idea was succesful then why not get the reward for your work. This topic was about uploading your mod in a good site anyway. My personal thoughts do not matter.
  24. Iam kinda new to the community here but i have to agree with lordmastodon.The reason that many people spend their time coding a mmodification for a game is usually because they want to get something from it. Minecraft is coded in java and has got a large community, thats why it also has big opportunities for modders. I myself started to mod because i am hoping to get some extra money fir my school, thats why iam going with curse. I dont recommend using 9minecraft. They will just get the profit that belongs to you. Curse is much popular and it will reward you for the downloads you get. Adf.ly is better than 9minecraft but i reccommend curse. Thats because people can search and find your mod randomly without you having to advertise.
  25. I am not sure if i am using the Recommended version of forge source or the latest one for 1.7.10, because your IDE is a little bit different. However it doesn't matter. I got it to work and the Fortune works just fine. I could have just copied another mod, but i wanted to make it my own way. Thank you for the help
×
×
  • Create New...

Important Information

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