
_thread
Bu tür basit şeyleri kendiniz deneme yanılma ile rahatlıkla yapabilirsiniz ancak karmaşık olaylar için bir modül yapmanız gerekiyor, bende aylar önce buna benzer bir web uygulaması yapmıştım ancak size kaynak kodunu veremem (nereye koyduğumu hatırlamıyorum...) :)bunun gibi nası yapabilirim? nasıl yapıyorlar basit yolu nedir? site vb. var mı?
Ekli dosyayı görüntüle 257739
function anemys(p: player):
set metadata tag "anemys" of {_p} to chest inventory with 5 rows
open (metadata tag "anemys" of {_p}) to {_p}
set {_box} to book named "&b&lBOX PVP&3&l POPÜLER"
set line 2 of {_box}'s lore to "<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█"
set line 3 of {_box}'s lore to "<##ffffff>█<##ffffff>█<##3f0900>█<##3f0900>█<##3f0900>█<##3f0900>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##3f0900>█<##3f0900>█<##3f0900>█<##3f0900>█<##ffffff>█"
set line 4 of {_box}'s lore to "<##ffffff>█<##3f0900>█<##3f0900>█<##fff285>█<##fff285>█<##3f0900>█<##3f0900>█<##3f0900>█<##3f0900>█<##3f0900>█<##3f0900>█<##3f0900>█<##fff285>█<##fff285>█<##3f0900>█<##ffffff>█"
set line 5 of {_box}'s lore to "<##ffffff>█<##3f0900>█<##521100>█<##ff8d30>█<##ff8d30>█<##cc0606>█<##521100>█<##ca0606>█<##f72e2e>█<##f72e2e>█<##f72e2e>█<##ca0606>█<##ff8d30>█<##ff8d30>█<##3f0900>█<##ffffff>█"
set line 6 of {_box}'s lore to "<##ffffff>█<##3f0900>█<##7b0000>█<##7b0000>█<##cc0606>█<##cc0606>█<##f72e2e>█<##521100>█<##a40606>█<##a40606>█<##a40606>█<##a40606>█<##521100>█<##f72e2e>█<##3f0900>█<##ffffff>█"
set line 7 of {_box}'s lore to "<##ffffff>█<##3f0900>█<##ad0909>█<##7b0000>█<##7b0000>█<##f72e2e>█<##f72e2e>█<##f72e2e>█<##af4d00>█<##fbb330>█<##fbb330>█<##af4d00>█<##f72e2e>█<##ad0909>█<##3f0900>█<##ffffff>█"
set line 8 of {_box}'s lore to "<##ffffff>█<##3f0900>█<##e01d1d>█<##e01d1d>█<##7b0000>█<##7b0000>█<##f72e2e>█<##f72e2e>█<##fbb330>█<##cc4911>█<##cc4911>█<##fbb330>█<##ad0909>█<##3f0900>█<##3f0900>█<##ffffff>█"
set line 9 of {_box}'s lore to "<##ffffff>█<##3f0900>█<##f2301d>█<##e01d1d>█<##e01d1d>█<##e01d1d>█<##7b0000>█<##ca0606>█<##fff285>█<##f77c19>█<##f77c19>█<##fff285>█<##3f0900>█<##3f0900>█<##ffffff>█<##ffffff>█"
set line 10 of {_box}'s lore to "<##ffffff>█<##3f0900>█<##f2301d>█<##f2301d>█<##f2301d>█<##f2301d>█<##f2301d>█<##751500>█<##cc4911>█<##fff285>█<##fff285>█<##cc4911>█<##751500>█<##3f0900>█<##ffffff>█<##ffffff>█"
set line 11 of {_box}'s lore to "<##ffffff>█<##3f0900>█<##f2301d>█<##f2301d>█<##f2301d>█<##f2301d>█<##f2301d>█<##f2301d>█<##751500>█<##751500>█<##751500>█<##751500>█<##f2301d>█<##3f0900>█<##ffffff>█<##ffffff>█"
set line 12 of {_box}'s lore to "<##ffffff>█<##3f0900>█<##ff4f38>█<##ff4f38>█<##ff4f38>█<##ff4f38>█<##ff4f38>█<##ff4f38>█<##ff4f38>█<##ff4f38>█<##ff4f38>█<##ff4f38>█<##ff4f38>█<##3f0900>█<##ffffff>█<##ffffff>█"
set line 13 of {_box}'s lore to "<##ffffff>█<##3f0900>█<##ff4f38>█<##ff4f38>█<##ff4f38>█<##e01d1d>█<##e01d1d>█<##ff4f38>█<##ff4f38>█<##ff4f38>█<##e01d1d>█<##e01d1d>█<##ff4f38>█<##3f0900>█<##ffffff>█<##ffffff>█"
set line 14 of {_box}'s lore to "<##ffffff>█<##3f0900>█<##ff4f38>█<##ff4f38>█<##ff4f38>█<##7b0000>█<##7b0000>█<##ff4f38>█<##ff4f38>█<##ff4f38>█<##7b0000>█<##7b0000>█<##ff4f38>█<##3f0900>█<##ffffff>█<##ffffff>█"
set line 15 of {_box}'s lore to "<##ffffff>█<##3f0900>█<##f2301d>█<##ff4f38>█<##ff4f38>█<##3f0900>█<##3f0900>█<##f2301d>█<##ff4f38>█<##f2301d>█<##3f0900>█<##3f0900>█<##f2301d>█<##3f0900>█<##ffffff>█<##ffffff>█"
set line 16 of {_box}'s lore to "<##ffffff>█<##3f0900>█<##3f0900>█<##3f0900>█<##3f0900>█<##ffffff>█<##ffffff>█<##3f0900>█<##3f0900>█<##3f0900>█<##ffffff>█<##ffffff>█<##3f0900>█<##3f0900>█<##ffffff>█<##ffffff>█"
set line 17 of {_box}'s lore to "<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█"
set line 18 of {_box}'s lore to ""
set line 19 of {_box}'s lore to " &7● &fOyuncular: &359"
set line 20 of {_box}'s lore to " &7● &fSürüm: &31.16.5x"
set line 21 of {_box}'s lore to ""
set line 22 of {_box}'s lore to "&3►&b Sunucuya katılmak için tıkla!"
set slot 20 of metadata tag "anemys" of {_p} to {_box}
set {_skyblock} to book named "&e&lSKY BLOCK&6&l POPÜLER"
set line 2 of {_skyblock}'s lore to "<##5fb9d8>█<##63b787>█<##53a439>█<##61aa3a>█<##75bc35>█<##75bc35>█<##77bf6b>█<##61b9d1>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##9bd6ea>█<##daf1f9>█<##ddf0f7>█<##ddf0f7>█<##ddf0f7>█"
set line 3 of {_skyblock}'s lore to "<##6fb540>█<##82c139>█<##6bb238>█<##3f923d>█<##6cb935>█<##7bbe37>█<##82c139>█<##74bc35>█<##5fb9d8>█<##79c4db>█<##d7edf2>█<##ddf0f7>█<##ddf0f7>█<##ddf0f7>█<##ddf0f7>█<##dbedef>█"
set line 4 of {_skyblock}'s lore to "<##3e923f>█<##4e9e40>█<##71b53b>█<##82c139>█<##82c139>█<##76bb34>█<##67b631>█<##68b84c>█<##5fb9d8>█<##93cfdf>█<##d5dfd7>█<##d6e4e0>█<##daecf0>█<##dbedef>█<##dae9e5>█<##dbe9e4>█"
set line 5 of {_skyblock}'s lore to "<##60bad3>█<##4fa687>█<##3e923f>█<##4f9e3e>█<##68b631>█<##66b632>█<##64ba9f>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##7dc3d8>█<##b8d6d7>█<##d9e4dd>█<##dbe9e4>█<##9dd1de>█<##5fb9d8>█"
set line 6 of {_skyblock}'s lore to "<##5fb9d8>█<##5fb9d8>█<##628088>█<##526d3b>█<##798639>█<##75878c>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##7ec5db>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█"
set line 7 of {_skyblock}'s lore to "<##5fb9d8>█<##5fb9d8>█<##687d89>█<##70413a>█<##8e5441>█<##77878d>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█"
set line 8 of {_skyblock}'s lore to "<##54afbd>█<##439c70>█<##576a3c>█<##70413a>█<##8e5441>█<##6e7d66>█<##56afb7>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##63b885>█<##66b632>█<##64b75c>█"
set line 9 of {_skyblock}'s lore to "<##74843b>█<##3e933d>█<##4b7f3c>█<##69533d>█<##7c6341>█<##52833e>█<##3e933d>█<##4ea46c>█<##60b8b6>█<##5fb9d8>█<##5fb9d8>█<##60b8b1>█<##64b75e>█<##66b632>█<##66b632>█<##66b632>█"
set line 10 of {_skyblock}'s lore to "<##ae713c>█<##ae7137>█<##74833b>█<##3e933d>█<##3e933d>█<##479c40>█<##5bad3a>█<##66b632>█<##66b632>█<##63b663>█<##64b75e>█<##66b632>█<##66b632>█<##66b632>█<##67b633>█<##68b533>█"
set line 11 of {_skyblock}'s lore to "<##77878d>█<##a0623d>█<##b26f38>█<##ae7137>█<##7d8c3b>█<##66b632>█<##66b632>█<##66b632>█<##66b632>█<##66b632>█<##66b632>█<##66b632>█<##66b632>█<##66b632>█<##66b632>█<##838d37>█"
set line 12 of {_skyblock}'s lore to "<##66a2b6>█<##7d4a40>█<##8e5441>█<##a0623d>█<##b26f38>█<##af7135>█<##889533>█<##66b632>█<##66b632>█<##66b632>█<##66b632>█<##66b632>█<##66b632>█<##838d37>█<##a1633c>█<##9e7458>█"
set line 13 of {_skyblock}'s lore to "<##5fb9d8>█<##527489>█<##59383c>█<##7d4a40>█<##8e5441>█<##a0623d>█<##b26f38>█<##af7135>█<##889533>█<##66b632>█<##66b632>█<##838d37>█<##a1633c>█<##975a38>█<##7f4a37>█<##757981>█"
set line 14 of {_skyblock}'s lore to "<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##527489>█<##59383c>█<##7d4a40>█<##8e5441>█<##a0623d>█<##b26f38>█<##af7135>█<##a1633c>█<##975a38>█<##7f4a37>█<##71423b>█<##55302c>█<##70b3cd>█"
set line 15 of {_skyblock}'s lore to "<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##527489>█<##59383c>█<##7d4a40>█<##8e5441>█<##a0623d>█<##7f4a37>█<##71423b>█<##55302c>█<##4a4246>█<##5e8fa3>█<##5fb9d8>█"
set line 16 of {_skyblock}'s lore to "<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##527489>█<##59383c>█<##7d4a40>█<##55302c>█<##4a4246>█<##5e8fa3>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█"
set line 17 of {_skyblock}'s lore to "<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##527489>█<##5e8fa3>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█"
set line 18 of {_skyblock}'s lore to ""
set line 19 of {_skyblock}'s lore to " &7● &fOyuncular: &659"
set line 20 of {_skyblock}'s lore to " &7● &fSürüm: &61.16.5x"
set line 21 of {_skyblock}'s lore to ""
set line 22 of {_skyblock}'s lore to "&6►&e Sunucuya katılmak için tıkla!"
set slot 22 of metadata tag "anemys" of {_p} to {_skyblock}
set {_sky} to book named "&a&lSKY WARS&2&l POPÜLER"
set line 2 of {_sky}'s lore to "<##317096>█<##3a7b9e>█<##4287a7>█<##5298b2>█<##63a8bb>█<##65aec0>█<##64b1c4>█<##69b8c9>█<##9ad1d2>█<##27834a>█<##64d47f>█<##8ad9a4>█<##71b9c3>█<##4aa1b8>█<##3e94ae>█<##3685a4>█"
set line 3 of {_sky}'s lore to "<##5a91ae>█<##4187a7>█<##5198b2>█<##85bdc4>█<##67ab8c>█<##89c3b2>█<##8cced5>█<##87ced8>█<##68b093>█<##27834a>█<##45ab64>█<##45ab64>█<##a1d5d1>█<##5fb1c2>█<##469eb5>█<##3c8eaa>█"
set line 4 of {_sky}'s lore to "<##dae6ec>█<##cddde6>█<##6aadbd>█<##6fb08e>█<##27834a>█<##64d47f>█<##6bb397>█<##b1e5e6>█<##27834a>█<##27834a>█<##45ab64>█<##64d47f>█<##8bdba7>█<##7bc4cb>█<##4fa7bc>█<##4296b0>█"
set line 5 of {_sky}'s lore to "<##a6cad6>█<##b1d1db>█<##7cbbc6>█<##27834a>█<##27834a>█<##42a768>█<##99e6b3>█<##bff0ef>█<##27834a>█<##27834a>█<##42a768>█<##5dcc87>█<##8bdda9>█<##81c9d0>█<##56aec1>█<##479db5>█"
set line 6 of {_sky}'s lore to "<##a9cdd7>█<##9ec9d5>█<##7abfca>█<##99ccb8>█<##5f8c6a>█<##618d6c>█<##a1d8c9>█<##bdf5f5>█<##cef8f7>█<##aa9d8f>█<##a99b8b>█<##d2f1ea>█<##a8dede>█<##7ec9d2>█<##5bb2c4>█<##4ba2b8>█"
set line 7 of {_sky}'s lore to "<##60a5bb>█<##68b0c0>█<##b1bba6>█<##76b695>█<##7a7d60>█<##7b7e63>█<##7ebd9f>█<##b0bd99>█<##7ebfa2>█<##8a8361>█<##89825f>█<##7dbb9a>█<##77c4a3>█<##9fd7d8>█<##65b7c6>█<##4da3b9>█"
set line 8 of {_sky}'s lore to "<##499bb3>█<##7fbec6>█<##938138>█<##8ced97>█<##8ced97>█<##75df8a>█<##8ced97>█<##c5b65f>█<##8ced97>█<##8ced97>█<##8ced97>█<##8ced97>█<##8ced97>█<##5cb179>█<##73bdc8>█<##4ca1b8>█"
set line 9 of {_sky}'s lore to "<##479ab3>█<##74b9c4>█<##b6985b>█<##254a30>█<##23492f>█<##24663c>█<##24663c>█<##91642b>█<##264a31>█<##2c6840>█<##324e37>█<##2c6840>█<##305239>█<##6db191>█<##6db7c5>█<##4b9db6>█"
set line 10 of {_sky}'s lore to "<##4397b0>█<##59aabc>█<##9ed3d1>█<##934920>█<##251218>█<##231217>█<##241217>█<##964e24>█<##3f2523>█<##434734>█<##41292a>█<##3b4334>█<##7f8983>█<##8cc9cf>█<##59a9bd>█<##4898b2>█"
set line 11 of {_sky}'s lore to "<##83b8ca>█<##4ba0b7>█<##71bbc6>█<##984a22>█<##2f151d>█<##2e151d>█<##2e151d>█<##693e2a>█<##47312d>█<##47312d>█<##3f2d2c>█<##6e6259>█<##83a7a7>█<##66b1c3>█<##98c6d4>█<##98c3d2>█"
set line 12 of {_sky}'s lore to "<##edf4f7>█<##b2d4de>█<##58aabd>█<##b87b50>█<##371722>█<##361b23>█<##371721>█<##402428>█<##402428>█<##392028>█<##422528>█<##7c8681>█<##78bac6>█<##b3d3de>█<##d4e3ea>█<##d9e6ec>█"
set line 13 of {_sky}'s lore to "<##ecf3f6>█<##d0e2e9>█<##69aec1>█<##c4a277>█<##3b1824>█<##392028>█<##3b1824>█<##422026>█<##392028>█<##3b1d26>█<##432127>█<##81a2a1>█<##5ba4b9>█<##bcd6df>█<##b5d1dc>█<##afccd8>█"
set line 14 of {_sky}'s lore to "<##c0d9e2>█<##aecfda>█<##b4d3dd>█<##ad936f>█<##6b979b>█<##727b79>█<##3d1925>█<##47312d>█<##41292a>█<##5c6b5a>█<##627075>█<##69aab9>█<##4891ad>█<##70a6bc>█<##9dc4d1>█<##97bfce>█"
set line 15 of {_sky}'s lore to "<##93bfcd>█<##96c2d0>█<##9cc6d2>█<##879b95>█<##4f9eb3>█<##84bec0>█<##3d1925>█<##3f2d2c>█<##c3e1ce>█<##549e84>█<##63a5b5>█<##4790ab>█<##3c84a4>█<##367c9e>█<##307298>█<##2a6a92>█"
set line 16 of {_sky}'s lore to "<##92becc>█<##92bfcd>█<##95c2cf>█<##4a91ac>█<##388aa7>█<##539caf>█<##626b70>█<##3a2128>█<##86baba>█<##4d94ab>█<##3e87a6>█<##367ea0>█<##32779a>█<##2e7096>█<##2a6991>█<##29658f>█"
set line 17 of {_sky}'s lore to "<##92bdcc>█<##92becd>█<##2a7699>█<##2c7a9b>█<##2f7f9e>█<##3786a2>█<##62a2ad>█<##66878d>█<##5296a9>█<##3580a0>█<##31799c>█<##2e7398>█<##2b6c93>█<##296890>█<##29658f>█<##29638d>█"
set line 18 of {_sky}'s lore to ""
set line 19 of {_sky}'s lore to " &7● &fOyuncular: &259"
set line 20 of {_sky}'s lore to " &7● &fSürüm: &21.16.5x"
set line 21 of {_sky}'s lore to ""
set line 22 of {_sky}'s lore to "&2►&a Sunucuya katılmak için tıkla!"
set slot 24 of metadata tag "anemys" of {_p} to {_sky}
command /anemys:
trigger:
anemys(player)
x
Teşekkürler yinede bbunun bi sitesi olsaydı iyiydi istediğimi yapmak da baya zorlandım.Bu tür basit şeyleri kendiniz deneme yanılma ile rahatlıkla yapabilirsiniz ancak karmaşık olaylar için bir modül yapmanız gerekiyor, bende aylar önce buna benzer bir web uygulaması yapmıştım ancak size kaynak kodunu veremem (nereye koyduğumu hatırlamıyorum...) :)
Ama işime yarar diyorsanız size bunları verebilirim <3
Kod:function anemys(p: player): set metadata tag "anemys" of {_p} to chest inventory with 5 rows open (metadata tag "anemys" of {_p}) to {_p} set {_box} to book named "&b&lBOX PVP&3&l POPÜLER" set line 2 of {_box}'s lore to "<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█" set line 3 of {_box}'s lore to "<##ffffff>█<##ffffff>█<##3f0900>█<##3f0900>█<##3f0900>█<##3f0900>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##3f0900>█<##3f0900>█<##3f0900>█<##3f0900>█<##ffffff>█" set line 4 of {_box}'s lore to "<##ffffff>█<##3f0900>█<##3f0900>█<##fff285>█<##fff285>█<##3f0900>█<##3f0900>█<##3f0900>█<##3f0900>█<##3f0900>█<##3f0900>█<##3f0900>█<##fff285>█<##fff285>█<##3f0900>█<##ffffff>█" set line 5 of {_box}'s lore to "<##ffffff>█<##3f0900>█<##521100>█<##ff8d30>█<##ff8d30>█<##cc0606>█<##521100>█<##ca0606>█<##f72e2e>█<##f72e2e>█<##f72e2e>█<##ca0606>█<##ff8d30>█<##ff8d30>█<##3f0900>█<##ffffff>█" set line 6 of {_box}'s lore to "<##ffffff>█<##3f0900>█<##7b0000>█<##7b0000>█<##cc0606>█<##cc0606>█<##f72e2e>█<##521100>█<##a40606>█<##a40606>█<##a40606>█<##a40606>█<##521100>█<##f72e2e>█<##3f0900>█<##ffffff>█" set line 7 of {_box}'s lore to "<##ffffff>█<##3f0900>█<##ad0909>█<##7b0000>█<##7b0000>█<##f72e2e>█<##f72e2e>█<##f72e2e>█<##af4d00>█<##fbb330>█<##fbb330>█<##af4d00>█<##f72e2e>█<##ad0909>█<##3f0900>█<##ffffff>█" set line 8 of {_box}'s lore to "<##ffffff>█<##3f0900>█<##e01d1d>█<##e01d1d>█<##7b0000>█<##7b0000>█<##f72e2e>█<##f72e2e>█<##fbb330>█<##cc4911>█<##cc4911>█<##fbb330>█<##ad0909>█<##3f0900>█<##3f0900>█<##ffffff>█" set line 9 of {_box}'s lore to "<##ffffff>█<##3f0900>█<##f2301d>█<##e01d1d>█<##e01d1d>█<##e01d1d>█<##7b0000>█<##ca0606>█<##fff285>█<##f77c19>█<##f77c19>█<##fff285>█<##3f0900>█<##3f0900>█<##ffffff>█<##ffffff>█" set line 10 of {_box}'s lore to "<##ffffff>█<##3f0900>█<##f2301d>█<##f2301d>█<##f2301d>█<##f2301d>█<##f2301d>█<##751500>█<##cc4911>█<##fff285>█<##fff285>█<##cc4911>█<##751500>█<##3f0900>█<##ffffff>█<##ffffff>█" set line 11 of {_box}'s lore to "<##ffffff>█<##3f0900>█<##f2301d>█<##f2301d>█<##f2301d>█<##f2301d>█<##f2301d>█<##f2301d>█<##751500>█<##751500>█<##751500>█<##751500>█<##f2301d>█<##3f0900>█<##ffffff>█<##ffffff>█" set line 12 of {_box}'s lore to "<##ffffff>█<##3f0900>█<##ff4f38>█<##ff4f38>█<##ff4f38>█<##ff4f38>█<##ff4f38>█<##ff4f38>█<##ff4f38>█<##ff4f38>█<##ff4f38>█<##ff4f38>█<##ff4f38>█<##3f0900>█<##ffffff>█<##ffffff>█" set line 13 of {_box}'s lore to "<##ffffff>█<##3f0900>█<##ff4f38>█<##ff4f38>█<##ff4f38>█<##e01d1d>█<##e01d1d>█<##ff4f38>█<##ff4f38>█<##ff4f38>█<##e01d1d>█<##e01d1d>█<##ff4f38>█<##3f0900>█<##ffffff>█<##ffffff>█" set line 14 of {_box}'s lore to "<##ffffff>█<##3f0900>█<##ff4f38>█<##ff4f38>█<##ff4f38>█<##7b0000>█<##7b0000>█<##ff4f38>█<##ff4f38>█<##ff4f38>█<##7b0000>█<##7b0000>█<##ff4f38>█<##3f0900>█<##ffffff>█<##ffffff>█" set line 15 of {_box}'s lore to "<##ffffff>█<##3f0900>█<##f2301d>█<##ff4f38>█<##ff4f38>█<##3f0900>█<##3f0900>█<##f2301d>█<##ff4f38>█<##f2301d>█<##3f0900>█<##3f0900>█<##f2301d>█<##3f0900>█<##ffffff>█<##ffffff>█" set line 16 of {_box}'s lore to "<##ffffff>█<##3f0900>█<##3f0900>█<##3f0900>█<##3f0900>█<##ffffff>█<##ffffff>█<##3f0900>█<##3f0900>█<##3f0900>█<##ffffff>█<##ffffff>█<##3f0900>█<##3f0900>█<##ffffff>█<##ffffff>█" set line 17 of {_box}'s lore to "<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█<##ffffff>█" set line 18 of {_box}'s lore to "" set line 19 of {_box}'s lore to " &7● &fOyuncular: &359" set line 20 of {_box}'s lore to " &7● &fSürüm: &31.16.5x" set line 21 of {_box}'s lore to "" set line 22 of {_box}'s lore to "&3►&b Sunucuya katılmak için tıkla!" set slot 20 of metadata tag "anemys" of {_p} to {_box} set {_skyblock} to book named "&e&lSKY BLOCK&6&l POPÜLER" set line 2 of {_skyblock}'s lore to "<##5fb9d8>█<##63b787>█<##53a439>█<##61aa3a>█<##75bc35>█<##75bc35>█<##77bf6b>█<##61b9d1>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##9bd6ea>█<##daf1f9>█<##ddf0f7>█<##ddf0f7>█<##ddf0f7>█" set line 3 of {_skyblock}'s lore to "<##6fb540>█<##82c139>█<##6bb238>█<##3f923d>█<##6cb935>█<##7bbe37>█<##82c139>█<##74bc35>█<##5fb9d8>█<##79c4db>█<##d7edf2>█<##ddf0f7>█<##ddf0f7>█<##ddf0f7>█<##ddf0f7>█<##dbedef>█" set line 4 of {_skyblock}'s lore to "<##3e923f>█<##4e9e40>█<##71b53b>█<##82c139>█<##82c139>█<##76bb34>█<##67b631>█<##68b84c>█<##5fb9d8>█<##93cfdf>█<##d5dfd7>█<##d6e4e0>█<##daecf0>█<##dbedef>█<##dae9e5>█<##dbe9e4>█" set line 5 of {_skyblock}'s lore to "<##60bad3>█<##4fa687>█<##3e923f>█<##4f9e3e>█<##68b631>█<##66b632>█<##64ba9f>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##7dc3d8>█<##b8d6d7>█<##d9e4dd>█<##dbe9e4>█<##9dd1de>█<##5fb9d8>█" set line 6 of {_skyblock}'s lore to "<##5fb9d8>█<##5fb9d8>█<##628088>█<##526d3b>█<##798639>█<##75878c>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##7ec5db>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█" set line 7 of {_skyblock}'s lore to "<##5fb9d8>█<##5fb9d8>█<##687d89>█<##70413a>█<##8e5441>█<##77878d>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█" set line 8 of {_skyblock}'s lore to "<##54afbd>█<##439c70>█<##576a3c>█<##70413a>█<##8e5441>█<##6e7d66>█<##56afb7>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##63b885>█<##66b632>█<##64b75c>█" set line 9 of {_skyblock}'s lore to "<##74843b>█<##3e933d>█<##4b7f3c>█<##69533d>█<##7c6341>█<##52833e>█<##3e933d>█<##4ea46c>█<##60b8b6>█<##5fb9d8>█<##5fb9d8>█<##60b8b1>█<##64b75e>█<##66b632>█<##66b632>█<##66b632>█" set line 10 of {_skyblock}'s lore to "<##ae713c>█<##ae7137>█<##74833b>█<##3e933d>█<##3e933d>█<##479c40>█<##5bad3a>█<##66b632>█<##66b632>█<##63b663>█<##64b75e>█<##66b632>█<##66b632>█<##66b632>█<##67b633>█<##68b533>█" set line 11 of {_skyblock}'s lore to "<##77878d>█<##a0623d>█<##b26f38>█<##ae7137>█<##7d8c3b>█<##66b632>█<##66b632>█<##66b632>█<##66b632>█<##66b632>█<##66b632>█<##66b632>█<##66b632>█<##66b632>█<##66b632>█<##838d37>█" set line 12 of {_skyblock}'s lore to "<##66a2b6>█<##7d4a40>█<##8e5441>█<##a0623d>█<##b26f38>█<##af7135>█<##889533>█<##66b632>█<##66b632>█<##66b632>█<##66b632>█<##66b632>█<##66b632>█<##838d37>█<##a1633c>█<##9e7458>█" set line 13 of {_skyblock}'s lore to "<##5fb9d8>█<##527489>█<##59383c>█<##7d4a40>█<##8e5441>█<##a0623d>█<##b26f38>█<##af7135>█<##889533>█<##66b632>█<##66b632>█<##838d37>█<##a1633c>█<##975a38>█<##7f4a37>█<##757981>█" set line 14 of {_skyblock}'s lore to "<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##527489>█<##59383c>█<##7d4a40>█<##8e5441>█<##a0623d>█<##b26f38>█<##af7135>█<##a1633c>█<##975a38>█<##7f4a37>█<##71423b>█<##55302c>█<##70b3cd>█" set line 15 of {_skyblock}'s lore to "<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##527489>█<##59383c>█<##7d4a40>█<##8e5441>█<##a0623d>█<##7f4a37>█<##71423b>█<##55302c>█<##4a4246>█<##5e8fa3>█<##5fb9d8>█" set line 16 of {_skyblock}'s lore to "<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##527489>█<##59383c>█<##7d4a40>█<##55302c>█<##4a4246>█<##5e8fa3>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█" set line 17 of {_skyblock}'s lore to "<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##527489>█<##5e8fa3>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█<##5fb9d8>█" set line 18 of {_skyblock}'s lore to "" set line 19 of {_skyblock}'s lore to " &7● &fOyuncular: &659" set line 20 of {_skyblock}'s lore to " &7● &fSürüm: &61.16.5x" set line 21 of {_skyblock}'s lore to "" set line 22 of {_skyblock}'s lore to "&6►&e Sunucuya katılmak için tıkla!" set slot 22 of metadata tag "anemys" of {_p} to {_skyblock} set {_sky} to book named "&a&lSKY WARS&2&l POPÜLER" set line 2 of {_sky}'s lore to "<##317096>█<##3a7b9e>█<##4287a7>█<##5298b2>█<##63a8bb>█<##65aec0>█<##64b1c4>█<##69b8c9>█<##9ad1d2>█<##27834a>█<##64d47f>█<##8ad9a4>█<##71b9c3>█<##4aa1b8>█<##3e94ae>█<##3685a4>█" set line 3 of {_sky}'s lore to "<##5a91ae>█<##4187a7>█<##5198b2>█<##85bdc4>█<##67ab8c>█<##89c3b2>█<##8cced5>█<##87ced8>█<##68b093>█<##27834a>█<##45ab64>█<##45ab64>█<##a1d5d1>█<##5fb1c2>█<##469eb5>█<##3c8eaa>█" set line 4 of {_sky}'s lore to "<##dae6ec>█<##cddde6>█<##6aadbd>█<##6fb08e>█<##27834a>█<##64d47f>█<##6bb397>█<##b1e5e6>█<##27834a>█<##27834a>█<##45ab64>█<##64d47f>█<##8bdba7>█<##7bc4cb>█<##4fa7bc>█<##4296b0>█" set line 5 of {_sky}'s lore to "<##a6cad6>█<##b1d1db>█<##7cbbc6>█<##27834a>█<##27834a>█<##42a768>█<##99e6b3>█<##bff0ef>█<##27834a>█<##27834a>█<##42a768>█<##5dcc87>█<##8bdda9>█<##81c9d0>█<##56aec1>█<##479db5>█" set line 6 of {_sky}'s lore to "<##a9cdd7>█<##9ec9d5>█<##7abfca>█<##99ccb8>█<##5f8c6a>█<##618d6c>█<##a1d8c9>█<##bdf5f5>█<##cef8f7>█<##aa9d8f>█<##a99b8b>█<##d2f1ea>█<##a8dede>█<##7ec9d2>█<##5bb2c4>█<##4ba2b8>█" set line 7 of {_sky}'s lore to "<##60a5bb>█<##68b0c0>█<##b1bba6>█<##76b695>█<##7a7d60>█<##7b7e63>█<##7ebd9f>█<##b0bd99>█<##7ebfa2>█<##8a8361>█<##89825f>█<##7dbb9a>█<##77c4a3>█<##9fd7d8>█<##65b7c6>█<##4da3b9>█" set line 8 of {_sky}'s lore to "<##499bb3>█<##7fbec6>█<##938138>█<##8ced97>█<##8ced97>█<##75df8a>█<##8ced97>█<##c5b65f>█<##8ced97>█<##8ced97>█<##8ced97>█<##8ced97>█<##8ced97>█<##5cb179>█<##73bdc8>█<##4ca1b8>█" set line 9 of {_sky}'s lore to "<##479ab3>█<##74b9c4>█<##b6985b>█<##254a30>█<##23492f>█<##24663c>█<##24663c>█<##91642b>█<##264a31>█<##2c6840>█<##324e37>█<##2c6840>█<##305239>█<##6db191>█<##6db7c5>█<##4b9db6>█" set line 10 of {_sky}'s lore to "<##4397b0>█<##59aabc>█<##9ed3d1>█<##934920>█<##251218>█<##231217>█<##241217>█<##964e24>█<##3f2523>█<##434734>█<##41292a>█<##3b4334>█<##7f8983>█<##8cc9cf>█<##59a9bd>█<##4898b2>█" set line 11 of {_sky}'s lore to "<##83b8ca>█<##4ba0b7>█<##71bbc6>█<##984a22>█<##2f151d>█<##2e151d>█<##2e151d>█<##693e2a>█<##47312d>█<##47312d>█<##3f2d2c>█<##6e6259>█<##83a7a7>█<##66b1c3>█<##98c6d4>█<##98c3d2>█" set line 12 of {_sky}'s lore to "<##edf4f7>█<##b2d4de>█<##58aabd>█<##b87b50>█<##371722>█<##361b23>█<##371721>█<##402428>█<##402428>█<##392028>█<##422528>█<##7c8681>█<##78bac6>█<##b3d3de>█<##d4e3ea>█<##d9e6ec>█" set line 13 of {_sky}'s lore to "<##ecf3f6>█<##d0e2e9>█<##69aec1>█<##c4a277>█<##3b1824>█<##392028>█<##3b1824>█<##422026>█<##392028>█<##3b1d26>█<##432127>█<##81a2a1>█<##5ba4b9>█<##bcd6df>█<##b5d1dc>█<##afccd8>█" set line 14 of {_sky}'s lore to "<##c0d9e2>█<##aecfda>█<##b4d3dd>█<##ad936f>█<##6b979b>█<##727b79>█<##3d1925>█<##47312d>█<##41292a>█<##5c6b5a>█<##627075>█<##69aab9>█<##4891ad>█<##70a6bc>█<##9dc4d1>█<##97bfce>█" set line 15 of {_sky}'s lore to "<##93bfcd>█<##96c2d0>█<##9cc6d2>█<##879b95>█<##4f9eb3>█<##84bec0>█<##3d1925>█<##3f2d2c>█<##c3e1ce>█<##549e84>█<##63a5b5>█<##4790ab>█<##3c84a4>█<##367c9e>█<##307298>█<##2a6a92>█" set line 16 of {_sky}'s lore to "<##92becc>█<##92bfcd>█<##95c2cf>█<##4a91ac>█<##388aa7>█<##539caf>█<##626b70>█<##3a2128>█<##86baba>█<##4d94ab>█<##3e87a6>█<##367ea0>█<##32779a>█<##2e7096>█<##2a6991>█<##29658f>█" set line 17 of {_sky}'s lore to "<##92bdcc>█<##92becd>█<##2a7699>█<##2c7a9b>█<##2f7f9e>█<##3786a2>█<##62a2ad>█<##66878d>█<##5296a9>█<##3580a0>█<##31799c>█<##2e7398>█<##2b6c93>█<##296890>█<##29658f>█<##29638d>█" set line 18 of {_sky}'s lore to "" set line 19 of {_sky}'s lore to " &7● &fOyuncular: &259" set line 20 of {_sky}'s lore to " &7● &fSürüm: &21.16.5x" set line 21 of {_sky}'s lore to "" set line 22 of {_sky}'s lore to "&2►&a Sunucuya katılmak için tıkla!" set slot 24 of metadata tag "anemys" of {_p} to {_sky} command /anemys: trigger: anemys(player)
Ekli dosyayı görüntüle 257742Ekli dosyayı görüntüle 257743
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ddd</title>
<link href="https://fonts.googleapis.com/css2?family=VT323&display=swap" rel="stylesheet">
<style>
body {
display: flex;
flex-direction: column;
align-items: center;
font-family: 'VT323', monospace;
background-color: #1D1D1D;
color: #FFFFFF;
}
.title {
font-size: 32px;
margin: 20px;
text-shadow: 2px 2px #3F3F3F;
}
.toolbar {
margin: 20px;
padding: 10px;
background-color: #2F2F2F;
border: 2px solid #404040;
border-radius: 3px;
}
.toolbar button {
margin: 0 5px;
padding: 8px 15px;
font-family: 'VT323', monospace;
font-size: 18px;
border: 2px solid #404040;
border-radius: 2px;
background-color: #5B5B5B;
color: white;
cursor: pointer;
text-shadow: 2px 2px #3F3F3F;
}
.toolbar button:hover {
background-color: #727272;
}
.toolbar button:active {
background-color: #404040;
}
.toolbar input[type="color"] {
margin: 0 5px;
vertical-align: middle;
width: 50px;
height: 35px;
border: 2px solid #404040;
background-color: #5B5B5B;
cursor: pointer;
}
.grid {
display: grid;
grid-template-columns: repeat(10, 40px);
gap: 1px;
background-color: #2F2F2F;
padding: 10px;
border: 2px solid #404040;
border-radius: 3px;
}
.box {
width: 40px;
height: 40px;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
user-select: none;
background-color: #1D1D1D;
font-size: 40px;
border: 1px solid #404040;
line-height: 1;
padding: 0;
}
.box.filled {
background-color: currentColor;
}
.box:hover {
background-color: #2F2F2F;
}
.instructions {
margin-top: 20px;
font-size: 18px;
color: #AAAAAA;
text-align: center;
}
.size-controls {
margin: 20px;
padding: 10px;
background-color: #2F2F2F;
border: 2px solid #404040;
border-radius: 3px;
display: flex;
align-items: center;
gap: 10px;
}
.size-controls input[type="number"] {
width: 60px;
padding: 5px;
font-family: 'VT323', monospace;
font-size: 18px;
background-color: #1D1D1D;
border: 2px solid #404040;
color: white;
}
.size-controls label {
font-size: 18px;
}
.output-area {
margin: 20px;
width: 80%;
max-width: 800px;
}
.output-area textarea {
width: 100%;
height: 100px;
background-color: #1D1D1D;
border: 2px solid #404040;
color: white;
font-family: 'VT323', monospace;
font-size: 16px;
padding: 10px;
resize: vertical;
}
</style>
</head>
<body>
<div class="size-controls">
<label>Width: <input type="number" id="width" value="10" min="1" max="50"></label>
<label>Height: <input type="number" id="height" value="10" min="1" max="50"></label>
<button onclick="updateGridSize()">Update Size</button>
</div>
<div class="toolbar">
<button onclick="fillAll()">Fill All</button>
<input type="color" id="colorPicker" onchange="updateColor(this.value)">
<button onclick="clearAll()">Clear</button>
<button onclick="extractSkript()">Extract Skript</button>
</div>
<div class="grid" id="grid"></div>
<div class="output-area">
<textarea id="skriptOutput" readonly placeholder="Skript code will appear here..."></textarea>
</div>
<div class="instructions">
Click or drag to draw<br>
Use color picker to change colors
</div>
<script>
let currentColor = '#FFFFFF';
let isMouseDown = false;
const minecraftColors = {
'#000000': '&0',
'#0000AA': '&1',
'#00AA00': '&2',
'#00AAAA': '&3',
'#AA0000': '&4',
'#AA00AA': '&5',
'#FFAA00': '&6',
'#AAAAAA': '&7',
'#555555': '&8',
'#5555FF': '&9',
'#55FF55': '&a',
'#55FFFF': '&b',
'#FF5555': '&c',
'#FF55FF': '&d',
'#FFFF55': '&e',
'#FFFFFF': '&f'
};
function getClosestMinecraftColor(hex) {
const r = parseInt(hex.slice(1, 3), 16);
const g = parseInt(hex.slice(3, 5), 16);
const b = parseInt(hex.slice(5, 7), 16);
let minDistance = Infinity;
let closestColor = '&f';
for (let mcHex in minecraftColors) {
const mcR = parseInt(mcHex.slice(1, 3), 16);
const mcG = parseInt(mcHex.slice(3, 5), 16);
const mcB = parseInt(mcHex.slice(5, 7), 16);
const distance = Math.sqrt(
Math.pow(mcR - r, 2) +
Math.pow(mcG - g, 2) +
Math.pow(mcB - b, 2)
);
if (distance < minDistance) {
minDistance = distance;
closestColor = minecraftColors[mcHex];
}
}
return { minecraft: closestColor, hex: `<##${hex.slice(1)}>` };
}
function createGrid() {
const grid = document.getElementById('grid');
const width = parseInt(document.getElementById('width').value);
const height = parseInt(document.getElementById('height').value);
grid.style.gridTemplateColumns = `repeat(${width}, 40px)`;
grid.innerHTML = '';
for (let i = 0; i < width * height; i++) {
const box = document.createElement('div');
box.className = 'box';
box.addEventListener('mousedown', () => toggleBox(box));
box.addEventListener('mouseover', () => {
if (isMouseDown) toggleBox(box);
});
grid.appendChild(box);
}
}
function updateGridSize() {
createGrid();
}
function extractSkript() {
const grid = document.getElementById('grid');
const width = parseInt(document.getElementById('width').value);
let skriptCode = '';
grid.querySelectorAll('.box').forEach((box, index) => {
if (box.classList.contains('filled')) {
const color = box.style.backgroundColor;
const hex = rgbToHex(color);
skriptCode += `<##${hex.slice(1)}>█`;
}
if ((index + 1) % width === 0 && index < grid.children.length - 1) {
skriptCode += '%nl%';
}
});
document.getElementById('skriptOutput').value = skriptCode;
}
function rgbToHex(rgb) {
const values = rgb.match(/\d+/g);
const r = parseInt(values[0]);
const g = parseInt(values[1]);
const b = parseInt(values[2]);
return '#' + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1).toUpperCase();
}
function toggleBox(box) {
if (box.classList.contains('filled')) {
box.classList.remove('filled');
box.style.backgroundColor = '';
} else {
box.classList.add('filled');
box.style.backgroundColor = currentColor;
}
}
function updateColor(color) {
currentColor = color;
}
function fillAll() {
document.querySelectorAll('.box').forEach(box => {
box.classList.add('filled');
box.style.backgroundColor = currentColor;
});
}
function clearAll() {
document.querySelectorAll('.box').forEach(box => {
box.classList.remove('filled');
box.style.backgroundColor = '';
});
}
document.addEventListener('mousedown', () => isMouseDown = true);
document.addEventListener('mouseup', () => isMouseDown = false);
createGrid();
</script>
</body>
</html>
x
tam olarak ne yapacağımı anlamadım hocam ne yapmam gerek bu kısma gelmem içinKod:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>ddd</title> <link href="https://fonts.googleapis.com/css2?family=VT323&display=swap" rel="stylesheet"> <style> body { display: flex; flex-direction: column; align-items: center; font-family: 'VT323', monospace; background-color: #1D1D1D; color: #FFFFFF; } .title { font-size: 32px; margin: 20px; text-shadow: 2px 2px #3F3F3F; } .toolbar { margin: 20px; padding: 10px; background-color: #2F2F2F; border: 2px solid #404040; border-radius: 3px; } .toolbar button { margin: 0 5px; padding: 8px 15px; font-family: 'VT323', monospace; font-size: 18px; border: 2px solid #404040; border-radius: 2px; background-color: #5B5B5B; color: white; cursor: pointer; text-shadow: 2px 2px #3F3F3F; } .toolbar button:hover { background-color: #727272; } .toolbar button:active { background-color: #404040; } .toolbar input[type="color"] { margin: 0 5px; vertical-align: middle; width: 50px; height: 35px; border: 2px solid #404040; background-color: #5B5B5B; cursor: pointer; } .grid { display: grid; grid-template-columns: repeat(10, 40px); gap: 1px; background-color: #2F2F2F; padding: 10px; border: 2px solid #404040; border-radius: 3px; } .box { width: 40px; height: 40px; display: flex; justify-content: center; align-items: center; cursor: pointer; user-select: none; background-color: #1D1D1D; font-size: 40px; border: 1px solid #404040; line-height: 1; padding: 0; } .box.filled { background-color: currentColor; } .box:hover { background-color: #2F2F2F; } .instructions { margin-top: 20px; font-size: 18px; color: #AAAAAA; text-align: center; } .size-controls { margin: 20px; padding: 10px; background-color: #2F2F2F; border: 2px solid #404040; border-radius: 3px; display: flex; align-items: center; gap: 10px; } .size-controls input[type="number"] { width: 60px; padding: 5px; font-family: 'VT323', monospace; font-size: 18px; background-color: #1D1D1D; border: 2px solid #404040; color: white; } .size-controls label { font-size: 18px; } .output-area { margin: 20px; width: 80%; max-width: 800px; } .output-area textarea { width: 100%; height: 100px; background-color: #1D1D1D; border: 2px solid #404040; color: white; font-family: 'VT323', monospace; font-size: 16px; padding: 10px; resize: vertical; } </style> </head> <body> <div class="size-controls"> <label>Width: <input type="number" id="width" value="10" min="1" max="50"></label> <label>Height: <input type="number" id="height" value="10" min="1" max="50"></label> <button onclick="updateGridSize()">Update Size</button> </div> <div class="toolbar"> <button onclick="fillAll()">Fill All</button> <input type="color" id="colorPicker" onchange="updateColor(this.value)"> <button onclick="clearAll()">Clear</button> <button onclick="extractSkript()">Extract Skript</button> </div> <div class="grid" id="grid"></div> <div class="output-area"> <textarea id="skriptOutput" readonly placeholder="Skript code will appear here..."></textarea> </div> <div class="instructions"> Click or drag to draw<br> Use color picker to change colors </div> <script> let currentColor = '#FFFFFF'; let isMouseDown = false; const minecraftColors = { '#000000': '&0', '#0000AA': '&1', '#00AA00': '&2', '#00AAAA': '&3', '#AA0000': '&4', '#AA00AA': '&5', '#FFAA00': '&6', '#AAAAAA': '&7', '#555555': '&8', '#5555FF': '&9', '#55FF55': '&a', '#55FFFF': '&b', '#FF5555': '&c', '#FF55FF': '&d', '#FFFF55': '&e', '#FFFFFF': '&f' }; function getClosestMinecraftColor(hex) { const r = parseInt(hex.slice(1, 3), 16); const g = parseInt(hex.slice(3, 5), 16); const b = parseInt(hex.slice(5, 7), 16); let minDistance = Infinity; let closestColor = '&f'; for (let mcHex in minecraftColors) { const mcR = parseInt(mcHex.slice(1, 3), 16); const mcG = parseInt(mcHex.slice(3, 5), 16); const mcB = parseInt(mcHex.slice(5, 7), 16); const distance = Math.sqrt( Math.pow(mcR - r, 2) + Math.pow(mcG - g, 2) + Math.pow(mcB - b, 2) ); if (distance < minDistance) { minDistance = distance; closestColor = minecraftColors[mcHex]; } } return { minecraft: closestColor, hex: `<##${hex.slice(1)}>` }; } function createGrid() { const grid = document.getElementById('grid'); const width = parseInt(document.getElementById('width').value); const height = parseInt(document.getElementById('height').value); grid.style.gridTemplateColumns = `repeat(${width}, 40px)`; grid.innerHTML = ''; for (let i = 0; i < width * height; i++) { const box = document.createElement('div'); box.className = 'box'; box.addEventListener('mousedown', () => toggleBox(box)); box.addEventListener('mouseover', () => { if (isMouseDown) toggleBox(box); }); grid.appendChild(box); } } function updateGridSize() { createGrid(); } function extractSkript() { const grid = document.getElementById('grid'); const width = parseInt(document.getElementById('width').value); let skriptCode = ''; grid.querySelectorAll('.box').forEach((box, index) => { if (box.classList.contains('filled')) { const color = box.style.backgroundColor; const hex = rgbToHex(color); skriptCode += `<##${hex.slice(1)}>█`; } if ((index + 1) % width === 0 && index < grid.children.length - 1) { skriptCode += '%nl%'; } }); document.getElementById('skriptOutput').value = skriptCode; } function rgbToHex(rgb) { const values = rgb.match(/\d+/g); const r = parseInt(values[0]); const g = parseInt(values[1]); const b = parseInt(values[2]); return '#' + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1).toUpperCase(); } function toggleBox(box) { if (box.classList.contains('filled')) { box.classList.remove('filled'); box.style.backgroundColor = ''; } else { box.classList.add('filled'); box.style.backgroundColor = currentColor; } } function updateColor(color) { currentColor = color; } function fillAll() { document.querySelectorAll('.box').forEach(box => { box.classList.add('filled'); box.style.backgroundColor = currentColor; }); } function clearAll() { document.querySelectorAll('.box').forEach(box => { box.classList.remove('filled'); box.style.backgroundColor = ''; }); } document.addEventListener('mousedown', () => isMouseDown = true); document.addEventListener('mouseup', () => isMouseDown = false); createGrid(); </script> </body> </html>
Ekli dosyayı görüntüle 257771

_thread
Merhaba, @Senpai 'nin verdiği kodu alıp bir .txt dosyasına yapıştırın ve daha sonra o dosyanın uzantısını .html olarak çevirin. Daha sonra o dosyayı açın ve uygulama karşınıza çıkacaktır, iyi forumlar <3tam olarak ne yapacağımı anlamadım hocam ne yapmam gerek bu kısma gelmem için
x
Hocam skript üzerinde yapıyorum ve %nl% kısımları sildim bosluk yapıyor diye yaptığım şekilin aynısı cıkmadı bozuk geldi neden olabilirKod:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>ddd</title> <link href="https://fonts.googleapis.com/css2?family=VT323&display=swap" rel="stylesheet"> <style> body { display: flex; flex-direction: column; align-items: center; font-family: 'VT323', monospace; background-color: #1D1D1D; color: #FFFFFF; } .title { font-size: 32px; margin: 20px; text-shadow: 2px 2px #3F3F3F; } .toolbar { margin: 20px; padding: 10px; background-color: #2F2F2F; border: 2px solid #404040; border-radius: 3px; } .toolbar button { margin: 0 5px; padding: 8px 15px; font-family: 'VT323', monospace; font-size: 18px; border: 2px solid #404040; border-radius: 2px; background-color: #5B5B5B; color: white; cursor: pointer; text-shadow: 2px 2px #3F3F3F; } .toolbar button:hover { background-color: #727272; } .toolbar button:active { background-color: #404040; } .toolbar input[type="color"] { margin: 0 5px; vertical-align: middle; width: 50px; height: 35px; border: 2px solid #404040; background-color: #5B5B5B; cursor: pointer; } .grid { display: grid; grid-template-columns: repeat(10, 40px); gap: 1px; background-color: #2F2F2F; padding: 10px; border: 2px solid #404040; border-radius: 3px; } .box { width: 40px; height: 40px; display: flex; justify-content: center; align-items: center; cursor: pointer; user-select: none; background-color: #1D1D1D; font-size: 40px; border: 1px solid #404040; line-height: 1; padding: 0; } .box.filled { background-color: currentColor; } .box:hover { background-color: #2F2F2F; } .instructions { margin-top: 20px; font-size: 18px; color: #AAAAAA; text-align: center; } .size-controls { margin: 20px; padding: 10px; background-color: #2F2F2F; border: 2px solid #404040; border-radius: 3px; display: flex; align-items: center; gap: 10px; } .size-controls input[type="number"] { width: 60px; padding: 5px; font-family: 'VT323', monospace; font-size: 18px; background-color: #1D1D1D; border: 2px solid #404040; color: white; } .size-controls label { font-size: 18px; } .output-area { margin: 20px; width: 80%; max-width: 800px; } .output-area textarea { width: 100%; height: 100px; background-color: #1D1D1D; border: 2px solid #404040; color: white; font-family: 'VT323', monospace; font-size: 16px; padding: 10px; resize: vertical; } </style> </head> <body> <div class="size-controls"> <label>Width: <input type="number" id="width" value="10" min="1" max="50"></label> <label>Height: <input type="number" id="height" value="10" min="1" max="50"></label> <button onclick="updateGridSize()">Update Size</button> </div> <div class="toolbar"> <button onclick="fillAll()">Fill All</button> <input type="color" id="colorPicker" onchange="updateColor(this.value)"> <button onclick="clearAll()">Clear</button> <button onclick="extractSkript()">Extract Skript</button> </div> <div class="grid" id="grid"></div> <div class="output-area"> <textarea id="skriptOutput" readonly placeholder="Skript code will appear here..."></textarea> </div> <div class="instructions"> Click or drag to draw<br> Use color picker to change colors </div> <script> let currentColor = '#FFFFFF'; let isMouseDown = false; const minecraftColors = { '#000000': '&0', '#0000AA': '&1', '#00AA00': '&2', '#00AAAA': '&3', '#AA0000': '&4', '#AA00AA': '&5', '#FFAA00': '&6', '#AAAAAA': '&7', '#555555': '&8', '#5555FF': '&9', '#55FF55': '&a', '#55FFFF': '&b', '#FF5555': '&c', '#FF55FF': '&d', '#FFFF55': '&e', '#FFFFFF': '&f' }; function getClosestMinecraftColor(hex) { const r = parseInt(hex.slice(1, 3), 16); const g = parseInt(hex.slice(3, 5), 16); const b = parseInt(hex.slice(5, 7), 16); let minDistance = Infinity; let closestColor = '&f'; for (let mcHex in minecraftColors) { const mcR = parseInt(mcHex.slice(1, 3), 16); const mcG = parseInt(mcHex.slice(3, 5), 16); const mcB = parseInt(mcHex.slice(5, 7), 16); const distance = Math.sqrt( Math.pow(mcR - r, 2) + Math.pow(mcG - g, 2) + Math.pow(mcB - b, 2) ); if (distance < minDistance) { minDistance = distance; closestColor = minecraftColors[mcHex]; } } return { minecraft: closestColor, hex: `<##${hex.slice(1)}>` }; } function createGrid() { const grid = document.getElementById('grid'); const width = parseInt(document.getElementById('width').value); const height = parseInt(document.getElementById('height').value); grid.style.gridTemplateColumns = `repeat(${width}, 40px)`; grid.innerHTML = ''; for (let i = 0; i < width * height; i++) { const box = document.createElement('div'); box.className = 'box'; box.addEventListener('mousedown', () => toggleBox(box)); box.addEventListener('mouseover', () => { if (isMouseDown) toggleBox(box); }); grid.appendChild(box); } } function updateGridSize() { createGrid(); } function extractSkript() { const grid = document.getElementById('grid'); const width = parseInt(document.getElementById('width').value); let skriptCode = ''; grid.querySelectorAll('.box').forEach((box, index) => { if (box.classList.contains('filled')) { const color = box.style.backgroundColor; const hex = rgbToHex(color); skriptCode += `<##${hex.slice(1)}>█`; } if ((index + 1) % width === 0 && index < grid.children.length - 1) { skriptCode += '%nl%'; } }); document.getElementById('skriptOutput').value = skriptCode; } function rgbToHex(rgb) { const values = rgb.match(/\d+/g); const r = parseInt(values[0]); const g = parseInt(values[1]); const b = parseInt(values[2]); return '#' + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1).toUpperCase(); } function toggleBox(box) { if (box.classList.contains('filled')) { box.classList.remove('filled'); box.style.backgroundColor = ''; } else { box.classList.add('filled'); box.style.backgroundColor = currentColor; } } function updateColor(color) { currentColor = color; } function fillAll() { document.querySelectorAll('.box').forEach(box => { box.classList.add('filled'); box.style.backgroundColor = currentColor; }); } function clearAll() { document.querySelectorAll('.box').forEach(box => { box.classList.remove('filled'); box.style.backgroundColor = ''; }); } document.addEventListener('mousedown', () => isMouseDown = true); document.addEventListener('mouseup', () => isMouseDown = false); createGrid(); </script> </body> </html>
Ekli dosyayı görüntüle 257771
x
Siyah ile bos olan yerleri doldurduğum zaman sembol düzgün geliyor evet ama chat de kötü bi görüntü oluyor bunu nası cözücez hocamKod:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>ddd</title> <link href="https://fonts.googleapis.com/css2?family=VT323&display=swap" rel="stylesheet"> <style> body { display: flex; flex-direction: column; align-items: center; font-family: 'VT323', monospace; background-color: #1D1D1D; color: #FFFFFF; } .title { font-size: 32px; margin: 20px; text-shadow: 2px 2px #3F3F3F; } .toolbar { margin: 20px; padding: 10px; background-color: #2F2F2F; border: 2px solid #404040; border-radius: 3px; } .toolbar button { margin: 0 5px; padding: 8px 15px; font-family: 'VT323', monospace; font-size: 18px; border: 2px solid #404040; border-radius: 2px; background-color: #5B5B5B; color: white; cursor: pointer; text-shadow: 2px 2px #3F3F3F; } .toolbar button:hover { background-color: #727272; } .toolbar button:active { background-color: #404040; } .toolbar input[type="color"] { margin: 0 5px; vertical-align: middle; width: 50px; height: 35px; border: 2px solid #404040; background-color: #5B5B5B; cursor: pointer; } .grid { display: grid; grid-template-columns: repeat(10, 40px); gap: 1px; background-color: #2F2F2F; padding: 10px; border: 2px solid #404040; border-radius: 3px; } .box { width: 40px; height: 40px; display: flex; justify-content: center; align-items: center; cursor: pointer; user-select: none; background-color: #1D1D1D; font-size: 40px; border: 1px solid #404040; line-height: 1; padding: 0; } .box.filled { background-color: currentColor; } .box:hover { background-color: #2F2F2F; } .instructions { margin-top: 20px; font-size: 18px; color: #AAAAAA; text-align: center; } .size-controls { margin: 20px; padding: 10px; background-color: #2F2F2F; border: 2px solid #404040; border-radius: 3px; display: flex; align-items: center; gap: 10px; } .size-controls input[type="number"] { width: 60px; padding: 5px; font-family: 'VT323', monospace; font-size: 18px; background-color: #1D1D1D; border: 2px solid #404040; color: white; } .size-controls label { font-size: 18px; } .output-area { margin: 20px; width: 80%; max-width: 800px; } .output-area textarea { width: 100%; height: 100px; background-color: #1D1D1D; border: 2px solid #404040; color: white; font-family: 'VT323', monospace; font-size: 16px; padding: 10px; resize: vertical; } </style> </head> <body> <div class="size-controls"> <label>Width: <input type="number" id="width" value="10" min="1" max="50"></label> <label>Height: <input type="number" id="height" value="10" min="1" max="50"></label> <button onclick="updateGridSize()">Update Size</button> </div> <div class="toolbar"> <button onclick="fillAll()">Fill All</button> <input type="color" id="colorPicker" onchange="updateColor(this.value)"> <button onclick="clearAll()">Clear</button> <button onclick="extractSkript()">Extract Skript</button> </div> <div class="grid" id="grid"></div> <div class="output-area"> <textarea id="skriptOutput" readonly placeholder="Skript code will appear here..."></textarea> </div> <div class="instructions"> Click or drag to draw<br> Use color picker to change colors </div> <script> let currentColor = '#FFFFFF'; let isMouseDown = false; const minecraftColors = { '#000000': '&0', '#0000AA': '&1', '#00AA00': '&2', '#00AAAA': '&3', '#AA0000': '&4', '#AA00AA': '&5', '#FFAA00': '&6', '#AAAAAA': '&7', '#555555': '&8', '#5555FF': '&9', '#55FF55': '&a', '#55FFFF': '&b', '#FF5555': '&c', '#FF55FF': '&d', '#FFFF55': '&e', '#FFFFFF': '&f' }; function getClosestMinecraftColor(hex) { const r = parseInt(hex.slice(1, 3), 16); const g = parseInt(hex.slice(3, 5), 16); const b = parseInt(hex.slice(5, 7), 16); let minDistance = Infinity; let closestColor = '&f'; for (let mcHex in minecraftColors) { const mcR = parseInt(mcHex.slice(1, 3), 16); const mcG = parseInt(mcHex.slice(3, 5), 16); const mcB = parseInt(mcHex.slice(5, 7), 16); const distance = Math.sqrt( Math.pow(mcR - r, 2) + Math.pow(mcG - g, 2) + Math.pow(mcB - b, 2) ); if (distance < minDistance) { minDistance = distance; closestColor = minecraftColors[mcHex]; } } return { minecraft: closestColor, hex: `<##${hex.slice(1)}>` }; } function createGrid() { const grid = document.getElementById('grid'); const width = parseInt(document.getElementById('width').value); const height = parseInt(document.getElementById('height').value); grid.style.gridTemplateColumns = `repeat(${width}, 40px)`; grid.innerHTML = ''; for (let i = 0; i < width * height; i++) { const box = document.createElement('div'); box.className = 'box'; box.addEventListener('mousedown', () => toggleBox(box)); box.addEventListener('mouseover', () => { if (isMouseDown) toggleBox(box); }); grid.appendChild(box); } } function updateGridSize() { createGrid(); } function extractSkript() { const grid = document.getElementById('grid'); const width = parseInt(document.getElementById('width').value); let skriptCode = ''; grid.querySelectorAll('.box').forEach((box, index) => { if (box.classList.contains('filled')) { const color = box.style.backgroundColor; const hex = rgbToHex(color); skriptCode += `<##${hex.slice(1)}>█`; } if ((index + 1) % width === 0 && index < grid.children.length - 1) { skriptCode += '%nl%'; } }); document.getElementById('skriptOutput').value = skriptCode; } function rgbToHex(rgb) { const values = rgb.match(/\d+/g); const r = parseInt(values[0]); const g = parseInt(values[1]); const b = parseInt(values[2]); return '#' + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1).toUpperCase(); } function toggleBox(box) { if (box.classList.contains('filled')) { box.classList.remove('filled'); box.style.backgroundColor = ''; } else { box.classList.add('filled'); box.style.backgroundColor = currentColor; } } function updateColor(color) { currentColor = color; } function fillAll() { document.querySelectorAll('.box').forEach(box => { box.classList.add('filled'); box.style.backgroundColor = currentColor; }); } function clearAll() { document.querySelectorAll('.box').forEach(box => { box.classList.remove('filled'); box.style.backgroundColor = ''; }); } document.addEventListener('mousedown', () => isMouseDown = true); document.addEventListener('mouseup', () => isMouseDown = false); createGrid(); </script> </body> </html>
Ekli dosyayı görüntüle 257771
Atar mısın örnekSiyah ile bos olan yerleri doldurduğum zaman sembol düzgün geliyor evet ama chat de kötü bi görüntü oluyor bunu nası cözücez hocam
x
Atar mısın örnek
Tüm alanları doldurman lazım, istiyorsan fill kısmından ilk tamamen siyaha boya ondan sonra devam etEkli dosyayı görüntüle 257782
Yeşil alanları yaptığım zaman eğer siyah kısımlara bi renk tanımazsam bozuk geliyor böyle oraları siyah yaptığımda sembol geliyor yani boyamadığım yerler null olarak geçiyor şekil bozuk geliyor
x
skripte aktardığımda siyah renkler görünüyor onları istemiyorumTüm alanları doldurman lazım, istiyorsan fill kısmından ilk tamamen siyaha boya ondan sonra devam et
Dostum o zaman beyaz yapabilirsinskripte aktardığımda siyah renkler görünüyor onları istemiyorum
Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!