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.

kask

Members
  • Joined

  • Last visited

  1. Seems I can't delete the thread so I'll reply to myself. Seems like default config file doesn't allow this as is so I'll just get config path and read/write custom json file.
  2. Hello. I'm new to Minecraft modding. I host a server for friends and family where players can play the game with their kids. Some younger kids have difficulties in game so I'm trying to create a mod where I can define hurt modifiers for some players so they take reduced damage on falling, monsters, etc. I've read some documentations and for the most part I think I know how to achieve what I want. Only thing I can't seem to find any resources of is how to create a config file where I can set idividual settings for each player. What I think I need to do is to create a server config file where I can set various modifiers for various hurt sources. Each player should have own values. I'm not yet familiar with toml file syntax so I'll throw json example what I try to achieve: { "player1": { "fallDamage": 0.6, "physicalDamage": 0.3 }, "player2": { "fallDamage": 0.8 } } Here "player1" will only get 60% of normal fall damage and 30% of physical damage. "Player2" has different modifiers. Rest of the players have no reduced effect. Can someone point me to some resources to achieve this configuration type? Or write a minimal example how to define and read said config file. I'm using 1.19.2 if that makes any difference. Thanks!

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.