ReynaldoP RotoniJr

copy the /string mod everything in it but make it compatible with 26.3

Kodari AI
KodariOct 9 at 6:20 am 1
StringModPort263
Ports the popular String mod to Minecraft Fabric 26.3, adding new string-based tools, ropes, and decorative blocks. Features include craftable string ladders, string bridges that can span gaps, string armor with unique durability mechanics, and string-based redstone components. All recipes and textures are updated for 26.3 compatibility, with new advancements and configurable options for rope physics and tool strength.

[Generation stopped]

ReynaldoP RotoniJr

no, like when i type /string i get a stack of strings for every empty slot i have in my inv

Kodari AI
KodariOct 9 at 6:26 am 1
  1. Add a Fabric 26.3 mod with a /string player command.

  2. Fill each empty inventory slot with one full stack of string.

Added a Fabric 26.3 mod with /string. It fills every empty slot in your 36-slot main inventory with a full stack of 64 string, leaving occupied slots untouched.

ReynaldoP RotoniJr

doesnt work

Kodari AI
KodariOct 9 at 6:54 am 1

Updated /string to synchronize the filled inventory to your client immediately. Recompile and try it again; if it still fails, tell me whether the command is unrecognized or runs without adding string.

ReynaldoP RotoniJr

theres no /string

1 image attached
Kodari AI
KodariOct 9 at 7:05 am 1
  1. Trace why the Fabric 26.3 /string command isn’t being registered, then fix the registration/entrypoint.

/string is registered as a server command, and the code is valid. If you’re on a multiplayer server, installing the mod only on your client won’t add the command—the server must also run the mod. In singleplayer, fully restart using the Fabric 26.3 profile with the mod installed in mods; the integrated server will then register it.

My earlier “try it again” missed that installation distinction.

ReynaldoP RotoniJr

then how to add it in a server

Kodari AI
KodariOct 9 at 7:06 am 1

The server must be running Fabric 26.3—this mod won’t work on Paper, Spigot, or a vanilla server.

  1. In Kodari, click Compile (on phone: ⋮ → Compile Project), then click Compile in the window.

  2. Download the built mod jar.

  3. Upload the jar to your server’s mods folder. Make sure Fabric API is also in that folder.

  4. Restart the server. Then run /string in-game.

Installing the mod only on your own client won’t add the command to a multiplayer server.

ReynaldoP RotoniJr

if the owner of multiplayer world has it on, will it add it?

Kodari AI
KodariOct 9 at 7:07 am 1

Yes—if the owner opens their world to LAN from a Fabric 26.3 profile with the mod installed, /string should be available because the world runs on their integrated server. Other players usually don’t need the mod installed.

For a separate multiplayer server, the mod must be installed on the server itself; having it only on the owner’s client won’t add the command there.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
5 118
src/main/java/com/kodari/stringfill/StringFillMod.java
package com.kodari.stringfill;

import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.command.v2.CommandRegistrationCallback;
import net.minecraft.commands.Commands;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.Items;

public class StringFillMod implements ModInitializer {
	@Override
	public void onInitialize() {
		CommandRegistrationCallback.EVENT.register((dispatcher, buildContext, selection) ->
			dispatcher.register(Commands.literal("string")
				.executes(context -> {
					var player = context.getSource().getPlayer();
					if (player == null) {
						return 0;
					}

					var inventory = player.getInventory();
					var slots = inventory.getNonEquipmentItems();
					int filledSlots = 0;
					for (int slot = 0; slot < slots.size(); slot++) {
						if (slots.get(slot).isEmpty()) {
							inventory.setItem(slot, new ItemStack(Items.STRING, 64));
							filledSlots++;
						}
					}
						player.containerMenu.broadcastChanges();
					return filledSlots;
				})));
	}
}