promotional bannermobile promotional banner

Jrrp - Daily Luck

A lightweight NeoForge mod that adds /jrrp, a fun daily luck command for Minecraft servers. Players receive a daily 0-100 luck value with configurable messages, placeholders, localized config UI, and optional server commands based on luck ranges.

Jrrp is a lightweight NeoForge mod that adds a simple /jrrp command to Minecraft.

Run the command once a day to get a personal "daily luck" value from 0 to 100. It is mostly a fun server interaction mod, but it also includes configurable messages, localized config screens, placeholders, and optional commands that can run based on the player's luck range.

Jrrp 是一个轻量级 NeoForge 娱乐模组,为服务器添加 /jrrp 今日人品指令。玩家每天可以查询一次自己的今日人品数值,服务器也可以根据不同数值区间配置提示词和执行指令。

Features

  • Adds the /jrrp command.
  • Generates a per-player daily luck value from 0 to 100.
  • Keeps the same value for the same player during the same server-local day.
  • Supports configurable result messages and random prompt words.
  • Supports three configurable luck ranges:
    • 0-50
    • 51-90
    • 91-100
  • Can execute server commands based on the player's current luck range.
  • Blocks configured commands from calling /jrrp itself to avoid recursive command loops.
  • Optional automatic result message when a player joins.
  • Built-in NeoForge configuration screen.
  • Localized config UI for en_us and zh_cn.
  • No items, blocks, world generation, or gameplay progression changes.

Placeholders

The result message and configured commands support these placeholders:

  • $p / {player} - player name
  • $v / {value} / {jrrp} - daily luck value
  • $w / {word} - random prompt word
  • {display_name} - player display name
  • {uuid} - player UUID
  • {x} / {y} / {z} - player block position
  • {dimension} - current dimension
  • {date} - current server-local date id

Configuration

The mod uses a NeoForge server config file. The main keys are:

result_message = "Today's luck: $v $w"
prompt_words_0_50 = [""]
prompt_words_51_90 = [""]
prompt_words_91_100 = [""]
auto_tip_on_login = false

commands_0_50 = []
commands_51_90 = []
commands_91_100 = []
run_commands_on_repeat = false

Example:

result_message = "Today's luck for {player}: {value} {word}"
prompt_words_0_50 = ["Take it easy today."]
prompt_words_51_90 = ["Looks like a decent day."]
prompt_words_91_100 = ["Excellent luck!"]

commands_0_50 = ["say {player}'s luck today is {value}"]
commands_51_90 = ["give {player} minecraft:iron_ingot 1"]
commands_91_100 = ["give {player} minecraft:diamond 1"]
run_commands_on_repeat = false

Commands are executed by the server. A leading slash is optional. Commands that directly call /jrrp, including simple execute ... run jrrp forms, are ignored to prevent recursion.

Installation

  • Minecraft: 1.21.1
  • Loader: NeoForge
  • NeoForge version: 21.1.0 or newer

Install the mod on the server to use /jrrp. Dedicated server admins should edit the server config file. Installing it on the client is useful for accessing the NeoForge mod list configuration screen in singleplayer or local server environments; it does not let a multiplayer client edit a remote server's config.

Notes

This mod is intentionally small and made for fun. It does not represent real luck, gambling, rewards, or probability systems beyond a simple daily random number.

License: MIT

The Jrrp - Daily Luck Team

profile avatar
Owner
  • 3
    Projects
  • 82
    Downloads

More from lyxccc_