Skip to content

Instantly share code, notes, and snippets.

@tyluudinh
tyluudinh / script.js
Last active July 8, 2025 12:15
TicketBox Script Auto Buy
class TicketBox {
eventId = null;
bookingId = null;
order = null;
recapchaKey = null;
resultStep1 = {};
resultStep2 = {};
resultStep3 = {};
email = null;
phoneNumber = null;
@shivaluma
shivaluma / avg.js
Last active September 30, 2025 11:01
Tinh diem trung binh hcmus
// tinh diem trung binh hcmus, vao trang diem va paste vao console.
// khong tinh anh van, quoc phong, the duc va nhung mon rot
var tinchi = document.querySelectorAll("td:nth-child(3)");
var monhoc = document.querySelectorAll("td:nth-child(2)");
var diem = document.querySelectorAll("td:nth-child(6)");
var tongdiem = 0,
tongtinchi = 0;

Villager mechanics in 1.14. All this data has been deduced by using the following commands:

/data get entity @e[type=minecraft:villager,limit=1,sort=nearest] Brain.memories
/execute as orlp at orlp run tellraw @s {"nbt":"Brain.memories","entity":"@e[type=villager,sort=nearest,limit=1]"}

A villager is awake from 0-11999 and tries to sleep between 12000 and 23999.

A villager will claim a bed if:

<script>
var validNavigation = false;
function wireUpEvents() {
var dont_confirm_leave = 0;
var leave_message = "You sure you want to leave ?";
function goodbye(e) {
if (!validNavigation) {
if (dont_confirm_leave !== 1) {