Files

26 lines
1.8 KiB
Markdown

# potion_rain.js — üst seviye kod
[← potion_rain.js](index.md) · [← Master](../../wiki.md)
Parça 5/8 · [önceki](_ust-seviye-4.md) · [sonraki](_ust-seviye-6.md)
```javascript
// image : Blockbuster resim morph'u; spin=donen, billboard=kameraya bakar
// morph : sabit morph NBT; flip=bas asagi, tilt=rastgele egik
// skin : fred modeli + Skin sekmesindeki skin, bas asagi
// custom : Skin sekmesindeki morph NBT
// harm : kendisi zarar verir ("Etrafim"da oyuncunun cevresi bos kalir;
// safe: bu turun bosluk yaricapi)
// stick : yere saplanir, "Kalma" suresi sonra kaybolur
// explode : yere degince gercek patlama (entity'lere hasar, blok kirmaz)
var KINDS = [
{ key: "potion", name: "Iksir", col: "§d", type: "vanilla", entity: "minecraft:potion" },
{ key: "pepsi", name: "Donen Pepsi", col: "§9", type: "image", tex: PEPSI_URL, fx: "fizz" },
{ key: "pepsi3d", name: "Pepsi 3D", col: "§9", type: "morph", morph: PEPSI_ITEM, tilt: true, fx: "fizz" },
{ key: "bkafa", name: "Baris Kafasi", col: "§6", type: "image", tex: BK_URL, billboard: true, fx: "burp" },
{ key: "anvil", name: "Ors", col: "§7", type: "morph", morph: '{Name:"block",Block:"minecraft:anvil"}', tilt: true, fx: "anvil", damage: 6, harm: true, stick: true },
{ key: "tnt", name: "TNT", col: "§c", type: "morph", morph: '{Name:"block",Block:"minecraft:tnt"}', tilt: true, fx: "none", explode: true, harm: true, safe: 8 },
{ key: "creeper", name: "Creeper", col: "§a", type: "morph", morph: '{Name:"minecraft:creeper"}', flip: true, fx: "hiss" },
{ key: "chicken", name: "Tavuk", col: "§f", type: "morph", morph: '{Name:"minecraft:chicken"}', flip: true, fx: "chicken" },
```