#help
1 messages · Page 1 of 1 (latest)
{
"format_version": "1.16.100",
"minecraft:item": {
"description": {
"identifier": "m:cem",
"category": "Items"
},
"components": {
"minecraft:allow_off_hand": true,
"minecraft:render_offsets": {
"main_hand": {
"third_person": {
"position": [0.26, 1.0, -0.55],
"scale": [0.05, 0.05, 0.05]
},
"first_person": {
"position": [0.88, -0.2, -1.6],
"scale": [0.03, 0.03, 0.03]
}
},
"off_hand": {
"third_person": {
"position": [0.26, 1.0, -0.55],
"scale": [0.05, 0.05, 0.05]
},
"first_person": {
"scale": [0.03, 0.03, 0.03]
}
}
},
"tag:invisible_item": {},
"minecraft:max_stack_size": 1,
"minecraft:hand_equipped": true,
"minecraft:mining_speed": 1,
"minecraft:damage": 0,
"minecraft:on_use": {
"on_use": {
"event": "destroy"
}
},
"minecraft:should_despawn": true,
"minecraft:use_duration": 1,
"minecraft:display_name": {
"value": "100 Reais"
},
"minecraft:cooldown": {
"category": "Ui",
"duration": 1.0
},
"minecraft:icon": {
"texture": "m:cem"
}
},
"events": {
"destroy": {
"sequence": [
{
"run_command": {
"command": [
"scoreboard players add @s money 100", "clear @s m:cem 0 1"
]
}
}
]
}
}
}
}
?block code
Please format your code as code-blocks! This makes the text monospaced, and has support for syntax highlighting.
The format looks like this:
for JSON
```json
{
"example": 123
}
```
for JavaScript
```js
console.log("hello world", 123)
```
The character used here is the backtick (U+0060 ` GRAVE ACCENT). This symbol is usually at the top left of your keyboard, occupying the tilde key (~). On mobile, it will be on the second or third page of symbols.
Everything looks correct, but what happens when you use the item when you load the world for first time?
does not work, only when I use it again
Yeah I thought so, that’s a known bug, been there for a while
annoying bug, how to solve it?
You can’t, is a bug.
I believe there is a workaround, but I don’t quite remember it
this addon depended on it
another salvation for the addon was to be virtual like sending money without an item
That error will just happen one time and is when the world has just loaded and the item is used for first time
Use the /translate command
So if I already have a world, and using the item is leaving and then entering it won't happen?
uh oh, no
oi
Every time you re-open your world that error will happen 1 time max