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.

T-10a

Members
  • Joined

  • Last visited

Everything posted by T-10a

  1. I'm just not sure how to use that to create a random number generator. I'm also not familiar with making random number generators in Java either. (I know this forum isn't a Java school. I do know basic Java programming.) Screw it, had a shot at making one. Didn't quite turn out well, went from applying all the time to never. Here's the code: How can I fix this?
  2. Yes, I have been able to make it apply on hit. I'm just not sure how to implement a random number generator in Java code, as all the online examples seem fairly complex.
  3. Hello, After making a new custom item apply slowness when I hit an enemy, how would I make it so it randomly applies the effect? For example, when the player hits another entity with this item, it has a 1 in 4 chance to apply Slowness on hit to the target.
  4. That's the problem! I opened up the icons in GIMP and found a whole bunch of funky different alpha texture parts. Thanks!
  5. Hello, After finally getting a custom tool type to be properly registered, I loaded them up and I got a weird graphical bug: Here's the item register/render code: Here's a sample json item model: Also, the runtime log: Here's the github link, if you need more code: https://github.com/T10a/minedran Thanks if you can help! Edit: I did try to use the ModelLoader.setCustomModelResourceLocation code in the render, but it resulted in the model being a purple and black cube.
  6. Thanks! I've made the changes and it works now.
  7. Hello, After following MrCrayfish's tutorials , I've been having issues with trying to get my custom item to render correctly. Here's my ModItems code: The JSON file for the item itself: And finally, the runtime log from running the game: Thanks if you can help. EDIT: Github link, if more code is needed: https://github.com/T10a/scaling-octo-parakeet

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.