#how to store data?

1 messages · Page 1 of 1 (latest)

left drift
#

Like %score%

tight doveBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 After a while, hit the Summon Helpers button to ping the helper team. They'll be happy to help you

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

fluid forge
#

What do you mean "store data"? What are you trying to do?

left drift
#

K wait

nocturne robin
left drift
#

IM SO SORRY FOR TAKING SO LONG

left drift
#

We want to score the Levels

#

@nocturne robin

nocturne robin
#

im here

left drift
#

So can you help me?

nocturne robin
left drift
#

we dont know how to store them

fluid forge
#

Yes you'll probably want to use a scoreboard

left drift
#

Yeahh we are using scoreboard

nocturne robin
#

well, I'll start with the fact that the gui command has not yet been added to the datapacks, so to show the gui to the player, the player must click on the barrel/minecart/something else himself

fluid forge
#

So what is the actual problem?

left drift
wooden hamletBOT
#
📜 /scoreboard

scoreboard objectives . . .

  • ... list
  • ... add <objective> <criteria> [<displayName>]
  • ... remove <objective>
  • ... setdisplay <slot> [<objective>]
  • ... modify <objective> displayname <displayName>
  • ... modify <objective> rendertype (hearts|integer)

scoreboard players . . .

  • ... list [<target>]
  • ... get <target> <objective>
  • ... set <targets> <objective> <score>
  • ... add <targets> <objective> <score>
  • ... remove <targets> <objective> <score>
  • ... reset <targets> [<objective>]
  • ... enable <targets> <objective>
  • ... operation <targets> <targetObjective> <operation> <source> <sourceObjective>
left drift
#

How do we change the lvl of items inside the minecart

fluid forge
#

what do you mean lvl of items?

#

Items don't have "levels"

left drift
#

NO

#

i cant get a screenshot

#

for example
Agility: Lv. 1

#

The items name is like that

#

and when the player gains a level it should be changed into lvl 2

#

How do we do that

fluid forge
#

You'll need to use an item modifier

left drift
#

How?

wooden hamletBOT
#
**📖 Misode**

Awesome website with generators for almost everything. Also contains a technical changelog for new versions, guides on how to use some features, a performance report inspector and more!

Full list of generators: Loot Tables, Predicates, Item Modifiers, Advancements, Recipes, Text Components, Damage Types, Chat Types, Trim Materials, Trim Patterns, pack.mcmetas, Dimensions, Dimension Types, Biomes, Configured Carvers, Configured Features, Placed Features, Density Functions, Noise, Noise Settings, Structures, Structure Sets, Processor Lists, Template Pools, World Presets, Flat World Presets, World Settings, Block Tags, Entity Type Tags, Fluid Tags, Game Event Tags, Item Tags, Biome Tags, Structure Tags, Blockstates, Models, Fonts, Atlases

Link: https://misode.github.io/

fluid forge
#

This can be used to generate the file

nocturne robin
# left drift How do we change the lvl of items inside the minecart

add some nbt to the items in the container, for example {archery_item:1b}, then as the player you can check that the player took this item using the command clear @s item{archery_item:1b} 0, clearing 0 of the quantity will simply return the number of items from the player, it can be written to the score using execute store result score , then check that the score is 1.. and add a level to the player or something else that the gui button should do

fluid forge
#

That won't work for setting the name of the item though

left drift
#

My friend says we can use advancements

#

Idk how

fluid forge
#

No you can't use advancements to change item names

nocturne robin
#

what is the problem with putting a score in the name of an item?

fluid forge
#

There is no problem

#

they just don't know how to do it

fluid forge
# wooden hamlet

Go to this website, generate an item modifier that changes the name and put it in data/<namespace>/item_modifiers/set_ability_name.json

nocturne robin
#

@left drift which version are you on?

left drift
#

1.20.4

nocturne robin
#

ok

fluid forge
#

Then you can modify the name using this command: item modify entity <gui minecart> container.<slot number> <namespace>:set_ability_name

#

Or you could use macros I guess

left drift
nocturne robin