GithubHelp home page GithubHelp logo

qyl27 / nbtedit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jay113355/nbtedit

29.0 1.0 6.0 2.67 MB

Minecraft In-Game NBTEdit is reborn now for 1.16, 1.17, 1.18, 1.19 and 1.20. Download from https://www.curseforge.com/minecraft/mc-mods/nbtedit-reborn .

Home Page: https://modrinth.com/mod/nbtedit-reborn

License: GNU General Public License v3.0

Java 100.00%

nbtedit's Introduction

In-Game NBTEdit / 游戏内NBT编辑器

A Minecraft mod allows you to edit any NBT tags of the game content with a GUI while in-game. Such as TileEntities, Entities. It may help map creators to make custom items or help mod creators to debug.
本模组可以用于在游戏内编辑物品、实体或方块的 NBT ,可能会对地图制作者制作自定义物品或模组开发者 Debug 有所帮助。

Forge, NeoForge, Fabric are supported!
Forge、NeoForge、Fabric 均已支持!

Documents before version 5.2.0 (5.2.0 版本之前的文档)

Usage(食用方法)

Shortcuts(快捷键)

Press N (by default) to edit your target BlockEntity, Entity or ItemStack in main hand (if target is missing).
使用 N 键(默认情况下)打开编辑界面。编辑的目标为十字准星指向的方块实体或者实体,如果没有指向则编辑主手上的物品。

  • Ctrl + C to Copy a node. (复制)
  • Ctrl + V to Paste a node. (粘贴)
  • Ctrl + X to Cut a node. (剪切)
  • Ctrl + D to Delete a node. (删除)

Commands(命令)

  • /nbtedit me
    Edit player themselves.
    编辑玩家自身。

  • /nbtedit hand
    Edit ItemStack in player's main hand.
    编辑玩家主手上的物品。

  • /nbtedit <x> <y> <z>
    Edit BlockEntity at x y z.
    编辑位于 x y z 的方块实体。

  • /nbtedit <entity selector>
    Edit Entity with entity selector.
    编辑由 entity selector 选择的实体。

Permissions(权限)

Name(权限名) Default Level(默认等级) Description(说明)
use 2 Open the editor to edit the NBT.
使用编辑器编辑 NBT 的权限。
read_only 1 Open the editor to view NBT, but can't save.
使用编辑器查看 NBT 的权限,保存按钮会被禁用。
edit_on_player 4 Use the editor on player, some issue may be caused. USE AT YOUR OWN RISK!
使用编辑器编辑玩家的权限,可能会造成一些问题。谨慎使用。

If you're using Forge or NeoForge, you may need a permission plugin like LuckPerms to grant permission node nbtedit.<Permission Node> to any player, or use as the same as Fabric.
在 Forge 或者 NeoForge 平台使用,可以搭配权限管理模组(例如 LuckPerms)授予玩家 nbtedit.<权限名> 的权限节点,或者像 Fabric 一样调整配置文件。

Configurations(配置文件)

Forge/NeoForge

Location(位置): .minecraft/config/nbtedit.toml

# General settings. 
[general]
    # Enable debug logs. Necessary if you are reporting bugs. (显示调试日志,反馈问题时需要。)
    debug = false

    # Permission node levels. Like vanilla, should in 0 ~ 5 range. (权限节点默认等级,取值和原版相同。)
    [general.permission]
       use = 2
       read_only = 1
       edit_on_player = 4

Fabric

Location(位置): .minecraft/config/nbtedit.json

{
  "debug": false,           // Enable debug logs. Necessary if you are reporting bugs. (显示调试日志,反馈问题时需要。)
  "permissionsLevels": {    // Permission node levels. Like vanilla, should in 0 ~ 5 range. (权限节点默认等级,取值和原版相同。)
    "read_only": 1,
    "edit_on_player": 4,
    "use": 2
  }
}

Origin(原帖地址)

http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/1286750-in-game-nbtedit-edit-mob-spawners-attributes-in

Screenshots(使用截图)

使用截图 #1
使用截图 #2

Common issues(常见问题)

  • I was kicked when I tried to save my edit(在尝试保存时被服务器踢出):
    If it shows Payload may not be larger than 32767 bytes, please use Packet Fixer by TonimatasDEV to fix it.
    如果客户端显示 Payload may not be larger than 32767 bytes,请使用 TonimatasDEVPacket Fixer 修复。

Bug report / Feature request(反馈/催更)

Please go to the issues page of GitHub repo.
请到 Issues 页面 提出。

nbtedit's People

Contributors

qyl27 avatar jay113355 avatar davidgoldman avatar moeboy76 avatar clienthax avatar lyuxc-unknow avatar

Stargazers

Eilte avatar Wilt avatar 謬紗特 avatar Nikita avatar haha44444 avatar 演变 avatar Flandre Scarlet avatar XiaoJiang avatar  avatar Fixator10 avatar Lasm Gratel avatar LoveDoLove avatar Franz avatar Molyuu avatar Vico avatar  avatar Rinfair avatar 喵喵喵 坊洛 avatar Zero King avatar  avatar Cccc_ avatar huige avatar  avatar OftenGuy avatar EvanLuo42 avatar Chen Wu avatar  avatar  avatar  avatar

Watchers

chawn avatar

nbtedit's Issues

About 1.20.5 and its replacement of NBT by the new component system

Basically, from what i've understand, in 1.20.5 the NBT data will be replaced by, according to wiki, "structured components".

Its most as a curiosity question, but, if you still have interest in maintaining the mod, how this can impact NBTEdit as well. Would it turn into "In-game ComponentEdit"?

1.21 NeoForge 无法打开编辑 GUI

用指令或快捷键均无用
似乎 fabric 版的 1.21 无此问题

还有,请不要那么快得close此问题,我是个学生,没有那么多空余时间看issues

Rec.0004.mp4

crashj

i have no idea about this crash

NBTEdit for Minecraft versions / 游戏版本支持情况

Minecraft 版本 加载器 支持情况 说明
1.21 Forge/NeoForge/Fabric 主要开发版本,新功能优先更新。
1.20.6 NeoForge/Fabric ✔️
1.20.5 NeoForge/Fabric ✔️
1.20.4 NeoForge/Fabric ✔️
1.20.3 NeoForge/Fabric ✔️ Forge在 1.20.3 ~ 1.20.6 无法正常运行于开发环境。
1.20.2 Forge/NeoForge/Fabric ✔️
1.20.1 Forge/Fabric ✔️
1.20 Forge/Fabric
1.19.4 Forge/Fabric ✔️
1.19.3 Forge/Fabric
1.19.2 Forge/Fabric ✔️
1.18.2 Forge/Fabric ✔️
1.17.1 Forge/Fabric ✔️
1.16.5 Forge ✔️ Fabric在此版本无法正常运行于开发环境。

图例:
✅:包含目前已经更新的所有特性,优先支持。
🚧:正在施工中。
✔️:可以用,但支持优先级较低。
❌:不再进行支持和更新。

如果希望更新某个版本,可以发新的 Issue,也欢迎 PR !
寻求长期维护和新特性开发者,如有意向请开一个 Issue 。

无法用/nbtedit 编辑实体

无法用/nbtedit uuid
或者/nbtedit 玩家名字
编辑任何实体,玩家
会显示试图执行该命令时出现意外错误

但/nbtedit hand和/nbtedit me不受影响,可以正常编辑手中物品和自己的nbt

Trying to edit a Wandering Trader always fails to error

Hello, NBTEdit Fabric 1.20.4-5.1.0 here!

Basically, when i try to edit the trades of a wandering trader, regardless of putting vanilla or modded items, it always fails.

Here's an excerpt of latest.log when this happens:

[23:09:48] [Server thread/WARN]: Exception loading entity: 
net.minecraft.class_148: Loading entity NBT
	at net.minecraft.class_1297.method_5651(class_1297.java:1948) ~[client-intermediary.jar:?]
	at net.minecraft.class_1299.method_17839(class_1299.java:555) ~[client-intermediary.jar:?]
	at net.minecraft.class_156.method_17974(class_156.java:515) ~[client-intermediary.jar:?]
	at net.minecraft.class_1299.method_5892(class_1299.java:554) ~[client-intermediary.jar:?]
	at net.minecraft.class_1299.method_17848(class_1299.java:641) ~[client-intermediary.jar:?]
	at net.minecraft.class_1299.method_17842(class_1299.java:592) ~[client-intermediary.jar:?]
	at net.minecraft.class_1299$1.method_31490(class_1299.java:615) ~[client-intermediary.jar:?]
	at java.util.Spliterators$IteratorSpliterator.tryAdvance(Spliterators.java:1856) ~[?:?]
	at net.minecraft.class_1299$1.tryAdvance(class_1299.java:614) ~[client-intermediary.jar:?]
	at java.util.Spliterator.forEachRemaining(Spliterator.java:332) ~[?:?]
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?]
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) ~[?:?]
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
	at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) ~[?:?]
	at net.minecraft.class_5565.method_31731(class_5565.java:76) ~[client-intermediary.jar:?]
	at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646) ~[?:?]
	at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482) ~[?:?]
	at net.minecraft.class_1255.method_18859(class_1255.java:156) ~[client-intermediary.jar:?]
	at net.minecraft.class_3215$class_4212.method_18859(class_3215.java:561) ~[client-intermediary.jar:?]
	at net.minecraft.class_1255.method_16075(class_1255.java:130) ~[client-intermediary.jar:?]
	at net.minecraft.class_3215$class_4212.method_16075(class_3215.java:570) ~[client-intermediary.jar:?]
	at net.minecraft.class_3215.method_19492(class_3215.java:280) ~[client-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.method_20415(MinecraftServer.java:785) ~[client-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.method_16075(MinecraftServer.java:773) ~[client-intermediary.jar:?]
	at net.minecraft.class_1255.method_5383(class_1255.java:115) ~[client-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.method_16208(MinecraftServer.java:757) ~[client-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:687) ~[client-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:270) ~[client-intermediary.jar:?]
	at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: java.lang.NoSuchMethodError: 'void net.minecraft.class_2658.<init>(net.minecraft.class_2960, net.minecraft.class_2540)'
	at net.minecraft.class_1309.md4e5328$flycommand$lambda$markNoFallDamage$0$0(class_1309.java:9735) ~[client-intermediary.jar:?]
	at java.util.ArrayList.forEach(ArrayList.java:1511) ~[?:?]
	at net.minecraft.class_1309.markNoFallDamage(class_1309.java:9735) ~[client-intermediary.jar:?]
	at net.minecraft.class_1309.handler$cjc001$flycommand$readNbt(class_1309.java:9728) ~[client-intermediary.jar:?]
	at net.minecraft.class_1309.method_5749(class_1309.java:806) ~[client-intermediary.jar:?]
	at net.minecraft.class_1308.method_5749(class_1308.java:467) ~[client-intermediary.jar:?]
	at net.minecraft.class_1548.method_5749(class_1548.java:124) ~[client-intermediary.jar:?]
	at net.minecraft.class_1297.method_5651(class_1297.java:1939) ~[client-intermediary.jar:?]
	... 29 more

What can be the problem?

Shortcut of `data modify` command? Or batch?

在TeaCon进行建筑的时候,我需要一个快捷方式来以某种模式批量修改方块实体或者实体的数据。
点名AR的 火锅 ,她提供了NBT标签用于食材无限供应,但需要一个一个修改NBT,很麻烦。

[bug] 多人游戏编辑其他玩家导致被踢出

多人游戏编辑其他玩家payload过大导致被踢出,
是正常现象吗,双端均以安装并配置权限无问题,这是不是说明其实就不能编辑玩家。。。。裸体玩家就超过32767byte了
2023-09-15_20 09 56

Design wanted for the better editor window

NBTEdit need a better text editor window.

It needs:

  • An array editor with indexed elements, and add or remove a single element.
  • A WYSIWYG text component editor.
  • A shortcut for inserting id like "minecraft:apple", "minecraft:paper", etc.

Now I have no idea to design it to easy to use, feel free to leave your idea.

Better GUI experience

  • Keyboard Shortcut in GUI.
  • Save/Load clipboard feature.
  • TextComponent editor.
  • UUID editor.
  • Item tooltip preview (like FTBU).
  • Better focus path.

Not working

Using nbtedit-1.19.2-4.0.1-release.jar

/nbtedit me
no response at all.

/nbtedit <playername>
"unexpected error" message.

Pressing "n" with a tile entity block
chat notice that it is editing block, but no gui

the log:

https://paste.ee/p/YDhpn

错误的推送

1.19.3-4.1.1 版本modrinth写1.19.3-1.20.1实际上不支持1.20.1,

无法修改256字符以上的nbt数据

例如:
修改Mine and Slash中带nbt的物品,其物品nbt常常高出256字符,编辑时会出现数据显示不全的情况,修改同理,超出256字符的将丢失
图片001
图片
图片
图片
minecraft版本:1.20.1
forge版本:47.2.20
NBTEdit版本:5.0.2

一些小建议

**1.改进组合键识别。**不知为什么,在此mod中使用快捷键复制粘贴总感觉比在其他程序中更不灵敏,经常出现按下按键却没能复制粘贴成功的现象;
**2.添加更多快捷键。**如Del键删除、回车键编辑、ESC退出等;
**3.双击条目编辑。**每次都要点击编辑按钮导致效率降低;
**4.拖动条目功能。**就是通过拖动来移动条目;
**5.扩大编辑框,以及多行显示。**这种小巧且单行显示的编辑框在编辑较长的条目时简直是灾难;
**6.编辑文本条目时保留原内容。**在编辑文本条目时,有时候只需要修改一两个错别字,但点击编辑按钮后,编辑窗口中并没有原先的内容,而需要重新把原有内容打一遍或是复制粘贴并删去多于内容,很不方便;
**7.更多修改功能。**如修改命令存储和NBT文件。

1.19.2 not working?

Minecraft: 1.19.2
Forge: 43.1.27

Hey, I downloaded the mod, set the keybind to F10, I spawned a villager and looked at him, and I when I pressed the button it said "Editing Entity 24hef09f-1dc5-427d-8w41-f5949052361c" in green in the chat, but nothing happens no matter what I do. No GUI shows up.

EDIT: I even use the command /nbtedit with the entity name and nothing happened

Mod List:

AdditionalStructures(Rex's), AiImprovements, AppleSkin, AttributeFix, BadMobs, BetterF3, BetterModsButton, BluePrint, BuildersAddition, Cloth_Config, Collective, Companion, ConfigurableExtraMobDrops, Configured, Corpse, CreativeCore, DogsLie, DungeonCrawl, EnchantWithMob, Entity_Texture_Features, FallingTree, Flan, FriendlyGriefing, Friendsandfoes, GoblinTraders, GreekFantasy, GuardVillagers, GuideBook, HostileMobsAndGirls(HMaG), HumanCompanions, Hunterillager, ImprovedMobs, InventoryHud, InventoryProfilesNext, JEI, JourneyMap, Kiwi, KoltinForForge, Leashed, LetSleepingDogsLie, MemorySettings, ModNameToolTip, MoreOverlays, NoChatReports, NotEnoughAnimations, NoUnusedChunks, Oculus, Passthroughsigns, PingHud, PlayerRevive, PublicGuiAnnouncement, PuzzlesLib, RangedWirelessRedstone, Rubidium, RubidiumExtra, Savage_And_Ravage, Sound_Physics_Remastered, SpawnBalanceUtility, SwingThroughGrass, Tenshilib, ToolSwap, Torohealth, TownAndTowers, Xpbook

About 1.20.3+

Sorry about the question, but is there any updates for 1.20.3 and 1.20.4 on the radar?

This mod is really useful!

TagList cannot append any value.

MC Version 1.19.2
When TagList appended in nbt, it cannot add any value in it, every data type above is hidden,
including copy, paste and delete button are also hidden when selecting EMPTY TagList.
When selecting List that contains values, such as Lore, the specific type of values is available to append.

Use `/nbtedit hand` to edit item in hand

While I am a server operator, I want to edit item stack in my hand directly by using /nbtedit hand.

  • If shortcut have no target, it also means edit the item stack in player's main hand.
  • Maybe add a way to edit item stack directly in NBTEditScreen.

无法跨物品复制

复制了一个标签,关闭后编辑另一个物品,无法粘贴,只会粘贴出一个新建标签

Scrolling bug with entities with lots of attributes

If i try to edit an entity with lots of attributes (like wandering traders), everytime i try to click in an atribute to edit the scroll bar goes to the bottom and i cant edit anything. Also the mouse scroll doesnt work to go up or down the attributes list.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.