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.

Featured Replies

Posted

So I basicly copied MrCrayfish's furniture mods mirror code but my mirror doesn't mirror anything... I get no errors and nothing pops up in the console

My code (on a name called Egietje, I helped him make it but I lost contact and made a lot myself): https://github.com/KokkieBeer/DeGeweldigeMod/tree/master/src/main/java/com/Egietje/degeweldigemod

Classes: 94

Lines of code: 12173

Other files: 206

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

As usual, I'm here to suggest setting breakpoints and stepping through your code (or discovering that something isn't even being called). You'll get more information to tell us so we know where to look.

 

Right now "not working" and "black thing" are too mysterious. *I* want to run your mod in my debugger, but I am too lazy to set that all up. Get in that debugger and find out what's really happening in there.

 

PS: Don't trust the console for rendering feedback. To see all warnings, you need to find the client's log file.

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

Two suggestions:

 

1) Gather info from stepping through your code in the debugger. (Why are people so averse to getting into the debugger???) If that doesn't immediately show you what went wrong, then post updated code and tell us what you found out (e.g. what variable values you saw when you expected something else).

 

2) You'll get clearer images if you work in Minecraft daylight. I have my monitor brightness up at 97% and can barely tell that the mirror image is anything but black.

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

I noticed that it actually works perfectly, it only zooms in really far and doesn't render me

 

The zoom might be due to the "size" of the render you're asking Minecraft to make (i.e. you might be asking for a 800x600 view and then it gets cropped down to fit the 64x64 pixel texture) and the lack of a visible player might be something that's troublesome to fix.  Your own avatar isn't natively rendered except in 3rd person mode (the hand you see in the corner is a GUI element, not actually your in-world entity model).

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.

Looks like it's somehow catching the inside of the frame itself.  I would put the camera a quarter block forward away from where the mirror actually sits.  It'll be slightly less accurate (won't reflect anything right up against it) but it'll avoid the issue.

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.

Your own avatar isn't natively rendered except in 3rd person mode...

 

Hence my original suggestion to start there looking for ideas. If Kokkie can find that code, then maybe players will appear.

 

BTW, does the mirror reflect any mobs at all? Maybe try spawning a creeper in creative mode to see if you can see its reflection.

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

  • Author

Bump

Also, there is a really tiny white dot in the middle of the mirror, I think it could be the entity but I don't know, and I still don't know how to fix the clipping texture, and I don't know how to make it render players

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...

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.