import { system } from '@minecraft/server';
import { ExplorersWayStones } from './ExplorersWaystones';
import giveASingleItem from "../util/give-a-single-item";
import { err } from './util';
const START_TICK = 0;
export let ticksSinceModInit = 0;
export let explorers_waystones = new ExplorersWayStones('explorers_waystones');
explorers_waystones.initBootstrap();
function gameTick() {
    try {
        if (ticksSinceModInit === START_TICK) {
            init();
            explorers_waystones.init();
        }
        ticksSinceModInit++;
        explorers_waystones.tick();
    } catch (e) {
        err("caught error: ");
        err(e.message);
        err(e.stack);
    }
    system.run(gameTick);
}
system.run(gameTick);
function init() {}
const BOOK_ID = "razz_ew:guide" // If you did a global find and replace, this should now be the same as your book item.
;
/* showDialogueOnItemUse({
  itemTypeId: BOOK_ID,
  title: {
    translate: "razz_ew:guide.name", // If you did a global find and replace, this should now be the same as lang file already.
  },
  content: {
    rawtext: [
	// Change these to be the lang strings that should appear in your ServerUI.
	// The formatting is standard rawtext and can have as many entries as you need, but keep it concise!!
      {translate: "razz_ew:info.part_01",with: ["\n"],}, 
      {text: "§r\n\n",},
      {translate: "razz_ew:info.part_02",with: ["\n"],},
      {text: "§r\n\n",},
      {translate: "razz_ew:info.part_03",with: ["\n"],},
      {text: "§r\n\n",},
      {translate: "razz_ew:info.part_04",with: ["\n"],},
      {text: "§r\n\n",},
      {translate: "razz_ew:info.part_05",with: ["\n"],},
      {text: "§r\n\n",},
      {translate: "razz_ew:info.part_06",with: ["\n"],},
      {text: "§r\n\n",},
      {translate: "razz_ew:info.part_07",with: ["\n"],},
      {text: "§r\n\n",},
      {translate: "razz_ew:info.part_08",with: ["\n"],},
      {text: "§r\n\n",},
      {translate: "razz_ew:info.part_09",with: ["\n"],},
      {text: "§r\n\n",},
      {translate: "razz_ew:info.part_10",with: ["\n"],},
      {text: "§r\n\n",},
      {translate: "razz_ew:info.part_11",with: ["\n"],},
      {text: "§r\n\n",},
      {translate: "razz_ew:info.part_12",with: ["\n"],},
      {text: "§r\n\n",},
      {translate: "razz_ew:info.part_13",with: ["\n"],},
      {text: "§r\n\n",},
      {translate: "razz_ew:info.part_14",with: ["\n"],},
      {text: "§r\n\n",},
      {translate: "razz_ew:info.part_15",with: ["\n"],},
      {text: "§r\n\n",},
      {translate: "razz_ew:info.part_16",with: ["\n"],},
      {text: "§r\n\n",},
      {translate: "razz_ew:info.part_17",with: ["\n"],},
      {text: "§r\n\n",},
      {translate: "razz_ew:info.part_18",with: ["\n"],},
      {text: "§r\n\n",},
      {translate: "razz_ew:info.part_19",with: ["\n"],},
      {text: "§r\n\n",},
      {translate: "razz_ew:info.part_20",with: ["\n"],},
      {text: "§r\n\n",},
      {translate: "razz_ew:info.part_21",with: ["\n"],},
      {text: "§r\n\n",},
      {translate: "razz_ew:info.part_22",with: ["\n"],},
      {text: "§r\n\n",},
      {translate: "razz_ew:info.part_23",with: ["\n"],},
      {text: "§r\n\n",},
      {translate: "razz_ew:info.part_24",with: ["\n"],},
      {text: "§r\n\n",},
      {translate: "razz_ew:info.part_25",with: ["\n"],},
      {text: "§r\n\n",},
      {translate: "razz_ew:info.part_26",with: ["\n"],}
    ],
  },
  exit: {
    translate: "razz_ew:guide_exit", // If you did a global find and replace, this should now be the same as lang file already.
  },
  soundOnOpen: "mob.endermen.portal", // Remove or change this line to your custom sounds
  soundOnClose: "mob.endermen.portal", // Remove or change this line to your custom sounds
  
}); */ //delete this if you are giving your book in a different way
giveASingleItem({
    itemTypeId: BOOK_ID
});
