Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Mazetar

Forge Modder
  • Joined

  • Last visited

Everything posted by Mazetar

  1. Misunderstandings, anyways I'm sure the OP can agree that his problem was solved
  2. When do you want this to happen? If it is at a given point inn time where you know the location of your block then sure it's easy. So when do ya want to do it? On block clicked?
  3. Could you elaborate? What is your source for saying this, as to me this sounds wrong I would like to know why it wouldnt handle block ids above 256?
  4. Null is a basic programming term which you must look up and understand as its a common problem! Null is a value or well rather the lack of one, it's NOT to be confused with 0! Check it out on the web
  5. If you got them working by letting them behave just like redstone, then it will behave like redstone. How's your code looking?
  6. that method does not exist check the world object, it got lots of other setBlockXXXX methods
  7. I was wondering about creating a wiki page for it on the wiki, seeing as it's a good reference post I really liked it at least, thanks for creating it! <3
  8. Mazetar replied to Jantomedes's topic in Modder Support
    Here's a nice and short clip for ya which shows you how it works: http://thenewboston.org/watch.php?cat=31&number=44 Hope it helps
  9. Pretty sure it ain't, but I'm quite sure there is an easier way to do what you really want to do So if you explain what you want to achieve by doing this?
  10. I believe mc supports higher resolution textures as of 1.5 yeah. not sure to which extent they do tough, but that should be easy to test by creating a 64x64 texture and testing it^^
  11. You have access to the player as he places the block, if you look into player there are some fields you can access fields like: -rotationYaw -rotationPitch -prevRotationYaw and so on, I think you can use them to see which way the player is facing and the determine how to do the textures. For the piston it's quite easy since it has the same texture on all sides,
  12. The names are not those Mojang/Notch wrote inn their code, the functions are named whatever the decompile set it to( like func_24443a). The methods which have real names are named based upon what they seemes to be doing by the Mcp/community after playing with the code. Anyways, what other parts did you find confusing?
  13. Have you tried checking what you got access to inn a World? What methods do you have which might do as the old ones did? Also when you say it errors out, which error? have you tried googling the error it gives?
  14. And with exact coordinates you mean which pixel on the block's surface did he point at? also client doesn't have all the information the server has, the server one should be the correct one
  15. You are correct. Every block only exist once, the game only stores the int BlockID, Metadata and if needed a TileEntity at any given location inn the world. If you want something to happen to a specific block inn the world (like rotation) then you need to use metadata or a TileEntity(if it's more complex than what metadata can hold).
  16. With hitX,hitY & hitZ are you reffering to which side of the block the player was hitting it, or? I'm unsure about exactly what you want to get. If you want the side he hit, I believe you could cast a ray from the player to see what side of the block you hit. Looking into the code for entityLiving.rayTrace(...); It returns an "MovingObjectPosition" which has among other things the following properties: typeOfHit - int which has 0 for Block and 1 for Entity. sideHit - int which is Bottom = 0, Top = 1, East = 2, West = 3, North = 4, South = 5 or -1 if the RayTrace went the full length of it's trace. Also it contains the entity you hit(if you hit one, else it's null of course). And the coordinates for the block etc. Check out the code for it, I believe you could use that to solve your problem
  17. Mazetar replied to The_cool's topic in Modder Support
    Well as the error you are getting is that it can't find a class I would assume that the class is not where it expected it to be, indicating either an error with reobf or more likely you have the folder structure wrong as it was suggested inn the above post.
  18. No. Or nah telling you to study java and the src whon't help.. So no.
  19. Well if you know your java then it shouldt be a problem So what line(s) of the above code does you not understand ?
  20. No it will be harder without using metadat. The only thing that makes a normal block different from another of it's self is it's metadata. If you aren't using metadata you will need to use TilEntitys which ain't hard but harder than just using metadata.
  21. Mazetar replied to The_cool's topic in Modder Support
    check out the answers inn this thread, you have the same problem as they had. http://www.minecraftforge.net/forum/index.php/topic,7194.0.html
  22. They way you initialize your item's looks weird, why are you casting it to item and so on?
  23. You can pass a class as an argument to the method. Take a look here: http://stackoverflow.com/questions/2240646/how-to-pass-a-type-as-a-method-parameter-in-java
  24. This should help you understand those numbers with the block list; http://thenewboston.org/watch.php?cat=31&number=27
  25. The problem is probably eclipse doesn't know about IconRegister. Try hovering your mouse over it to see quick fixes and select import blablabla. Else, find out which package that contains IconRegister and import it.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.