Jump to content

bandon41

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by bandon41

  1. i'm making a block that has a gui with buttons and when i press 1 button i want it to check a few blocks and change them. now i know how to write the code to check the blocks, and how to change them. the problem i have is that i only know how to do that from inside another block, not from inside a gui, since in the gui i can't find how to ask for the coordinates of the block that has the gui. so either i need a way for my gui to call a method inside the block, or a way to acces the gui block his coordinates, including what world it is in and just for the record, i have already made a button within the gui, and i know what gui method is called when the button is pressed, so that's no problem
  2. correction, "you can access the minecraft code by using "gradlew SetupDecompWorkspace" when you setup your dev Environment, if it doesn't fail every attempt and you have to resort to using SetupDevWorkspace." because for some reason every time i use the decomp instead of the dev it fails though i hadn't thought about using the 1.6.4 code because i was worried too much had been changed, but thanks for that tip
  3. i'm trying to make my block know what items were dropped onto it, like a hopper can the problem is that i can't access hopper code, at best i can see the constructors of the functions, not how those functions work. i found a post where someone placed some of the code but it's func this and func that, even the names of the parameters don't reveal their goal. so if anyone could help i would be gratefull, the block only needs to see what items and how many there are ontop of itself, the rest i should be able to figure out myself, or if you can show me some understandable code it would be good as well. thank you
  4. thanks i'll have to be alot better before i care about the hit coordinates but now that i understand wich one the side it, it should help me along nicely
  5. oh it seems i was a bit unclear on my actual intention i don't really care about client or server, i meant side as in left, right, back, front, top, bottom
  6. i'm trying to make my block behave a bit differently based on which side has been clicked but i'm not sure if this is possible or how to check what side has been activated. on that note, the last few parameters for the method "onBlockActivated", what are they for? hope this isn't too much of a noob question, i tried googling for the answer but can't really find anything.
  7. hey i'm new to modding and now with the 1.7.2 update i had some trouble getting my workspace set up but now that i've managed to do so and created a block succesfully for my mod i wanted to make a matching stairs the problem is that even though blockstairs is imported, it gives the folowing error "the constuctor BlockStairs(Block, int) is not visible" the weird thing is, if i try to only give a blocktype as argument, it does know it still needs an int as a second argument and because of the problems with setting up my workspace i can't access the vanilla code like i could in 1.6.4 thanks for the help
×
×
  • Create New...

Important Information

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