Still an issue with 1.20
@tobiaspm
you can use this:
event.block.location
File added. Now running every 10 seconds and giving more information about the error. Tested with Windows 10 Edition.
I tried it with bedrock server software for linux on 1.19.22 & 1.19.30 in chat using windows 10 edition as client.
Steps to reproduce
Run a server and join with a client.
Give the client op
Try running the following command in chat:
/transferserver griefergames.net 19132
Observed Result
The command is unknown.
Expected Result
The Player switches to the other server.
No, the new property does not fix the issue. I already built a workaround that detects the possible reasons and restarts the form if necessary. As I said an option to close open windows would fix the issue.
this example instantly triggers a form on any message
import * as UI from "mojang-minecraft-ui";
import { world } from 'mojang-minecraft';
world.events.beforeChat.subscribe((event)=>{
form([{type:"textField"}],(result)=>{
const obj={rawtext:[{
text:JSON.stringify(result)
}]};
event.sender.runCommand(`tellraw @s ${JSON.stringify(obj)}`);
}, event.sender);
})
export function form(data, onSubmit, playerData) {
const form = new UI.ModalFormData();
form.title("Form");
for (let i = 0; i < data.length; i++) {
const element = data[i];
switch (element.type) {
case "dropdown":
form.dropdown(
element.label || "Dropdown",
element.hasOwnProperty("default") ? element.options : [...element.options].concat([""]),
element.hasOwnProperty("default") ? element.default : element.options.length
);
break;
case "slider":
form.slider(
element.label || "Slider",
element.hasOwnProperty("min") ? element.min : 0,
element.hasOwnProperty("max") ? element.max : 100,
element.hasOwnProperty("step") ? element.step : 1,
element.default
)
break;
case "toggle":
form.toggle(
element.label || "Toggle",
element.default || false,
)
case "textField":
form.textField(
element.label || "Text Field",
element.default || ""
)
break;
default:
break;
}
}
const promise = form.show(playerData);
promise.then((result) => \{ if (!result.isCanceled) onSubmit(result) }, debug);
}
Hi,
here the link to a video that shows the bug.
https://www.dropbox.com/s/vjletm21482bvrr/Minecraft%202022-08-09%2011-40-41.mp4?dl=0
The form opens three seconds after the chat event (if the chat is closed).
is resolved
Get the PlayerData of a player. Eg: world.getPlayers()
Change the nameTag: player.nameTag="TestName"
Try to teleport that player via chat command: /tp "(Gamertag)" @s
You also need to edit/create the file (server)/config/default/permissions.json.
But on my debian server Scripts won't load after that change too.
still a Problem with 1.18.10
Still not working with 1.18.2.03
@IonicEcko Sidebar is on the side of the screen while playing. Belowname is below the names of players on their character. List is on the List of online players after pressing esc, start...
One time a cart disappeared, but I can't be sure no Npc has destroyed it cause an enderman opened a hole to the system in that time. I've found the hole few days after the cart disappeared.
Its doctor Who and robot horse who are broken. I already tried it with changing version numbers etc., but nothing worked.
Both
Resource Packs in Order:
Robot Horse
Doctor Who
Chroma Hills HD
Behavior Packs in Order:
Realistic Torch
Robot Horse
2 Players riding a horse
Friend Creeper
Doctor Who
Addons I try to Add: Animacraft, Outdoor Escape
The Resource of doctor Who is too big to uplad.
I found a workaround, it's pretty nasty, but it works:
Give and clear command still use data.
You can use these commands with the typeId of the item and various data values (0-15) to detect if the amount of the item changes.