Compare commits
514 Commits
master
...
mineclone5
Author | SHA1 | Date |
---|---|---|
kay27 | 6101511ddc | |
kay27 | 163ca9a653 | |
kay27 | 35f07a8b66 | |
kay27 | 7cf49c2cfd | |
kay27 | 5d4d1d70e7 | |
kay27 | d10ab0d1ee | |
kay27 | 85b3fef4bf | |
kay27 | d509d76d13 | |
kay27 | 9498ccc279 | |
kay27 | 4de3bfda8e | |
kay27 | ed8d79395d | |
kay27 | f30a2ab6bc | |
kay27 | 9d3be8d0b0 | |
kay27 | b3e3b91b7c | |
Elias Fleckenstein | 525599d340 | |
NO11 | 65f7ca383e | |
NO11 | dc9a6609e5 | |
NO11 | f83d1c9fb1 | |
NO11 | 19586ccfac | |
kay27 | 79339f5f14 | |
kay27 | 0b0be4cecf | |
NO11 | d662fa8bd0 | |
Code-Sploit | ba333d016a | |
Lizzy Fleckenstein | f714d9399d | |
Lizzy Fleckenstein | f79ace6306 | |
kay27 | 24dfda8d7e | |
Lizzy Fleckenstein | 052bfa0cab | |
Code-Sploit | 2064c34858 | |
Lizzy Fleckenstein | 0133f94a36 | |
Code-Sploit | 05a9b614b0 | |
Code-Sploit | 71d98892d4 | |
Code-Sploit | 72d4cf5906 | |
Code-Sploit | 1dcd555149 | |
kay27 | 43e44ff4c9 | |
kay27 | f53f961122 | |
NO11 | b37cbbebb8 | |
Code-Sploit | 8c2f5bc3d2 | |
Code-Sploit | 445af4e4c9 | |
NO11 | f430ebcc8d | |
kay27 | 1750929367 | |
Lizzy Fleckenstein | e545e6d0e7 | |
Lizzy Fleckenstein | df8b4dddec | |
Lizzy Fleckenstein | 960367ffae | |
Lizzy Fleckenstein | 7f29f768da | |
Lizzy Fleckenstein | eae71fdf55 | |
Lizzy Fleckenstein | 47aa5da242 | |
kay27 | 414162a613 | |
kay27 | 83b96a80ca | |
Lizzy Fleckenstein | 33c235362e | |
Lizzy Fleckenstein | cca03bcbd2 | |
Lizzy Fleckenstein | 6eadeb21c0 | |
Lizzy Fleckenstein | b9cdb58ce5 | |
Lizzy Fleckenstein | 91211ac1f7 | |
jordan4ibanez | 76acf26dcf | |
jordan4ibanez | cd47233798 | |
jordan4ibanez | 7703dec778 | |
jordan4ibanez | 0f4628db09 | |
jordan4ibanez | 7551f201b9 | |
jordan4ibanez | ddb33acf0d | |
jordan4ibanez | e52aab45c0 | |
jordan4ibanez | ac85230938 | |
jordan4ibanez | f57c4709ac | |
jordan4ibanez | b6c9a1c423 | |
jordan4ibanez | a8152760b9 | |
jordan4ibanez | 6a38198e97 | |
jordan4ibanez | d28e81bc9f | |
jordan4ibanez | 5a2773ea1a | |
jordan4ibanez | d5da94d0de | |
jordan4ibanez | 555935ff3d | |
jordan4ibanez | c40011b566 | |
jordan4ibanez | 7e3b69348e | |
jordan4ibanez | d5a0fa1c14 | |
jordan4ibanez | c898e1e4db | |
Lizzy Fleckenstein | 6260dad8fc | |
kay27 | cb19340e0b | |
kay27 | 7c9d9b1650 | |
Lizzy Fleckenstein | 073e7b81f8 | |
kay27 | 39e1db7298 | |
jordan4ibanez | 301832fd57 | |
jordan4ibanez | 9b5c9dc8ae | |
jordan4ibanez | 36e81d18d9 | |
jordan4ibanez | 5e6653ff65 | |
jordan4ibanez | d5e0632ebc | |
jordan4ibanez | 1616cb7538 | |
jordan4ibanez | b4ead73e22 | |
jordan4ibanez | a3ff108cd4 | |
jordan4ibanez | 608958e17a | |
jordan4ibanez | df364eed28 | |
jordan4ibanez | bac191293b | |
jordan4ibanez | b7c7c2627b | |
jordan4ibanez | 96b65f688a | |
jordan4ibanez | 38c22f277d | |
jordan4ibanez | f83ccdb2ed | |
jordan4ibanez | bdadbb6be6 | |
jordan4ibanez | 7733e05a12 | |
jordan4ibanez | 857434a4ff | |
jordan4ibanez | 0a380265c8 | |
jordan4ibanez | 2c47d2190e | |
jordan4ibanez | 8d3eff0c16 | |
jordan4ibanez | 24df0271d4 | |
jordan4ibanez | 56086bf02b | |
jordan4ibanez | 079811984c | |
jordan4ibanez | 67deb1b884 | |
jordan4ibanez | 7e8e63b0e3 | |
jordan4ibanez | 79871ca191 | |
jordan4ibanez | 49b01dca4f | |
jordan4ibanez | 5ba0d34cd5 | |
jordan4ibanez | 3d5cceab76 | |
jordan4ibanez | b937b20158 | |
jordan4ibanez | a73e5b57c0 | |
jordan4ibanez | b401b50c04 | |
jordan4ibanez | 81315838d5 | |
jordan4ibanez | 807fb6966d | |
jordan4ibanez | 1d8fbdc386 | |
jordan4ibanez | 11b5684a90 | |
jordan4ibanez | 41bfaae370 | |
jordan4ibanez | 8c855f5b09 | |
jordan4ibanez | e0185a9311 | |
jordan4ibanez | c2cb15a47f | |
jordan4ibanez | 231d6c90b5 | |
jordan4ibanez | 39f7d0cf3c | |
jordan4ibanez | 05fcad6db3 | |
jordan4ibanez | 3e9bbca914 | |
jordan4ibanez | 4add3b286c | |
jordan4ibanez | 81713a342d | |
jordan4ibanez | a27e6731cd | |
jordan4ibanez | efce97c172 | |
jordan4ibanez | 53c96cae2d | |
jordan4ibanez | dbe712bc17 | |
jordan4ibanez | 0d4d85bac6 | |
jordan4ibanez | 6f2e2ab4c5 | |
jordan4ibanez | 3649e5f6f5 | |
jordan4ibanez | 2dab0773df | |
jordan4ibanez | 0568c14a43 | |
jordan4ibanez | 531253008a | |
jordan4ibanez | 79cb6ddc49 | |
jordan4ibanez | 6eb3eef215 | |
jordan4ibanez | c37a82d4a2 | |
jordan4ibanez | ed9d629b99 | |
jordan4ibanez | fcfd6b9d19 | |
jordan4ibanez | d2a7298095 | |
jordan4ibanez | 5ee6cf6c9b | |
jordan4ibanez | 23f7801e3f | |
jordan4ibanez | 19c8dd1dd4 | |
jordan4ibanez | ae2a539d85 | |
jordan4ibanez | 31ded5e40f | |
jordan4ibanez | 13c321e8f2 | |
jordan4ibanez | f7ed71bcdc | |
jordan4ibanez | ea6912c980 | |
jordan4ibanez | 11785a9434 | |
jordan4ibanez | 8dafac50a8 | |
jordan4ibanez | 129987a38e | |
jordan4ibanez | 3560bda4a5 | |
jordan4ibanez | a6dae8e5a8 | |
jordan4ibanez | 9720986c4d | |
jordan4ibanez | dc7592528c | |
jordan4ibanez | 9486d1bf23 | |
jordan4ibanez | 304cbed447 | |
jordan4ibanez | af4c42fea7 | |
jordan4ibanez | 8daf197fb8 | |
jordan4ibanez | c138050e0b | |
jordan4ibanez | d04e694d1a | |
jordan4ibanez | 36d5af1d15 | |
jordan4ibanez | db0e3a389d | |
jordan4ibanez | 73b4d3c1d2 | |
jordan4ibanez | eb7ae5e10e | |
jordan4ibanez | 43fdc08030 | |
jordan4ibanez | c831da2c02 | |
jordan4ibanez | d5a38fef58 | |
jordan4ibanez | 8ea546abfb | |
jordan4ibanez | 8e7ce5a72a | |
jordan4ibanez | 189c0ad157 | |
jordan4ibanez | 53fb683d33 | |
jordan4ibanez | f64f8e31e3 | |
jordan4ibanez | 7faf2460b7 | |
jordan4ibanez | 58bee2a2dd | |
jordan4ibanez | 16cc7e37d2 | |
jordan4ibanez | 8eb9ba12ce | |
jordan4ibanez | d231edbb43 | |
jordan4ibanez | 5d59583583 | |
jordan4ibanez | adeea8ed43 | |
jordan4ibanez | f6fa90096d | |
jordan4ibanez | 4fb9e69e41 | |
jordan4ibanez | 99f13f84b5 | |
jordan4ibanez | 3788886518 | |
jordan4ibanez | dd76b15c50 | |
jordan4ibanez | b6f19699e9 | |
jordan4ibanez | 4efec1ef58 | |
Lizzy Fleckenstein | 988a44148e | |
NO11 | ef86eb0779 | |
Elias Fleckenstein | 1eebbcb564 | |
Lizzy Fleckenstein | 99ee5f05d3 | |
Lizzy Fleckenstein | f80eb5633b | |
jordan4ibanez | 0895666407 | |
jordan4ibanez | 408296140a | |
jordan4ibanez | aac1e19336 | |
jordan4ibanez | cff9dcd622 | |
jordan4ibanez | fa059b5df2 | |
jordan4ibanez | 2e3e92e393 | |
jordan4ibanez | 704e313d5d | |
jordan4ibanez | 5bf0b747cf | |
jordan4ibanez | 11bcf3aa34 | |
jordan4ibanez | 2099be43ea | |
jordan4ibanez | 5037ec3736 | |
jordan4ibanez | 0a8fff6524 | |
jordan4ibanez | f00652f050 | |
jordan4ibanez | afdcada1fd | |
jordan4ibanez | 5d876725c5 | |
jordan4ibanez | ef0d52a2df | |
jordan4ibanez | 53d3de7dd3 | |
jordan4ibanez | 8142f7e512 | |
jordan4ibanez | ebf27866ca | |
jordan4ibanez | 3fe8d2d3c5 | |
jordan4ibanez | b73ab976a1 | |
jordan4ibanez | 8530e6ee36 | |
jordan4ibanez | e1812b2cdb | |
jordan4ibanez | 991bba0a1d | |
jordan4ibanez | f9a7144b65 | |
jordan4ibanez | 45790c0be0 | |
jordan4ibanez | 6b93978a22 | |
jordan4ibanez | 31a791c33b | |
jordan4ibanez | d0d128c1d8 | |
jordan4ibanez | 20abb4e864 | |
jordan4ibanez | 1fc15e92fe | |
jordan4ibanez | ee905642c2 | |
kay27 | 0486c7c468 | |
Code-Sploit | d12b192785 | |
Code-Sploit | 4baea9f420 | |
Code-Sploit | 0147da7270 | |
Code-Sploit | 24cc4318e2 | |
Code-Sploit | 498b1c792a | |
Lizzy Fleckenstein | 34f612c3ea | |
Lizzy Fleckenstein | 951a24c684 | |
Lizzy Fleckenstein | 6c11bc427a | |
Lizzy Fleckenstein | 87dc41a125 | |
jordan4ibanez | 052660e58a | |
jordan4ibanez | 2cef9e7cca | |
jordan4ibanez | 81e75c8908 | |
jordan4ibanez | edb1939649 | |
jordan4ibanez | 7c1adeab45 | |
jordan4ibanez | aeaaeea141 | |
jordan4ibanez | ecebe0253c | |
jordan4ibanez | fbe3ccc5c0 | |
jordan4ibanez | e398aca747 | |
jordan4ibanez | 5e15af260b | |
jordan4ibanez | 6aa6364492 | |
kay27 | 7c2ea8d7f0 | |
jordan4ibanez | 29305f548d | |
jordan4ibanez | 08c90c34e8 | |
jordan4ibanez | 91099c3be9 | |
jordan4ibanez | 71c34823bc | |
jordan4ibanez | 20886f54bb | |
jordan4ibanez | ebd995fbd2 | |
jordan4ibanez | c9f71d66f5 | |
jordan4ibanez | 99e808296b | |
jordan4ibanez | 74094938bb | |
jordan4ibanez | 6bd279255c | |
jordan4ibanez | 964ce9ccf7 | |
jordan4ibanez | 5062d56a5d | |
jordan4ibanez | b0b1ec9436 | |
jordan4ibanez | f1dc286442 | |
jordan4ibanez | cc2a0ae52c | |
jordan4ibanez | 486959515c | |
Lizzy Fleckenstein | a0a6eaee48 | |
Lizzy Fleckenstein | f3c4dd699d | |
Lizzy Fleckenstein | bec86ece0b | |
jordan4ibanez | 576621169b | |
jordan4ibanez | 2c87bd19f3 | |
jordan4ibanez | 1ed3377559 | |
jordan4ibanez | 8c9356a18c | |
jordan4ibanez | a05ebd7cc2 | |
jordan4ibanez | 60ac3058ce | |
jordan4ibanez | 751c4c2d99 | |
jordan4ibanez | 6b52b94516 | |
jordan4ibanez | d371d6fdc9 | |
jordan4ibanez | fabd4d64e6 | |
jordan4ibanez | bf367fffd0 | |
jordan4ibanez | 0b763f54b5 | |
jordan4ibanez | cd6f07537f | |
jordan4ibanez | 9678b556e1 | |
jordan4ibanez | cdb840609d | |
jordan4ibanez | 008d670ed9 | |
jordan4ibanez | 491ef6c8f8 | |
jordan4ibanez | 348df0fcec | |
jordan4ibanez | ac08c6991c | |
jordan4ibanez | 3d776138e9 | |
kay27 | 106ecb0958 | |
kay27 | 7fa02e5a85 | |
TechDudie | 1db8c21ec2 | |
Lizzy Fleckenstein | 6b005a9214 | |
Lizzy Fleckenstein | 0c9314fba7 | |
kay27 | b0c8f47e91 | |
TechDudie | feda530bff | |
TechDudie | 5d98662a60 | |
TechDudie | cea1078a16 | |
TechDudie | d347b829c0 | |
TechDudie | ade55cee33 | |
TechDudie | 9efefc2d85 | |
TechDudie | 85e693e1e1 | |
TechDudie | 32c773cdea | |
TechDudie | 49f8df85ee | |
TechDudie | b012c3b739 | |
TechDudie | f517d82885 | |
Lizzy Fleckenstein | 58c20a7542 | |
Lizzy Fleckenstein | 1bf9455065 | |
kay27 | e2d3f2a194 | |
jordan4ibanez | 85e531bf10 | |
jordan4ibanez | 4d589dfb2a | |
jordan4ibanez | 39985aa558 | |
jordan4ibanez | 1920ddf915 | |
kay27 | 96694692d8 | |
kay27 | bb902caa57 | |
jordan4ibanez | 719bb2a3c9 | |
jordan4ibanez | db87b8e0a3 | |
jordan4ibanez | e2987245fd | |
jordan4ibanez | 3cf263d292 | |
Lizzy Fleckenstein | 48a2e4212a | |
Lizzy Fleckenstein | 811efcf9f3 | |
jordan4ibanez | 5ade34115c | |
jordan4ibanez | d9729fc865 | |
jordan4ibanez | 58d9670e77 | |
jordan4ibanez | a20f272e08 | |
jordan4ibanez | 0794bc5437 | |
kay27 | ff07ee5d93 | |
jordan4ibanez | 8783912938 | |
jordan4ibanez | f2e909ab8d | |
jordan4ibanez | 07841c8963 | |
jordan4ibanez | 240d6ea211 | |
jordan4ibanez | e8148f81ab | |
jordan4ibanez | 061602d9d4 | |
jordan4ibanez | 5365dec19a | |
jordan4ibanez | dda7839d8c | |
jordan4ibanez | f1141aed9f | |
jordan4ibanez | 84ca7681fc | |
jordan4ibanez | 52c3db041e | |
jordan4ibanez | 6db4511dd5 | |
jordan4ibanez | 15ea9c1c71 | |
jordan4ibanez | 9d6d042ee3 | |
jordan4ibanez | ce7f4918b0 | |
jordan4ibanez | 05d06a4c8f | |
jordan4ibanez | c761db86c7 | |
jordan4ibanez | ed456ecb47 | |
jordan4ibanez | 8ca5f221ec | |
jordan4ibanez | cadd53c103 | |
jordan4ibanez | 57b293de2b | |
jordan4ibanez | fb9a55e562 | |
jordan4ibanez | a6a54b3414 | |
jordan4ibanez | 6c5393427f | |
jordan4ibanez | 2486ffef11 | |
jordan4ibanez | adc683c6a7 | |
jordan4ibanez | d0695e7929 | |
jordan4ibanez | 024cf46307 | |
jordan4ibanez | f38492bcb0 | |
jordan4ibanez | a934a59f3b | |
jordan4ibanez | 94ca7e8b89 | |
jordan4ibanez | 626c30de6d | |
Lizzy Fleckenstein | 61f3b4c69e | |
Code-Sploit | 77a645102b | |
Code-Sploit | 180d1f1140 | |
AFCMS | 742aa2becb | |
AFCMS | 6397b1349b | |
Code-Sploit | 39ce3592e6 | |
Code-Sploit | 9b5d9091d4 | |
Code-Sploit | 99fc209bf2 | |
Lizzy Fleckenstein | fc34ec91e8 | |
Lizzy Fleckenstein | ebf1f1d96b | |
Elias Fleckenstein | f1b7d3afb7 | |
Lizzy Fleckenstein | fbee510b42 | |
Lizzy Fleckenstein | 020c793762 | |
Lizzy Fleckenstein | 3b10e3bd0d | |
Lizzy Fleckenstein | 30546a3902 | |
Code-Sploit | 622c236b4b | |
Code-Sploit | e7f36ec7d2 | |
jordan4ibanez | c2bac87a6d | |
jordan4ibanez | 375d683d08 | |
jordan4ibanez | 246bdf9707 | |
jordan4ibanez | d07d0ae31c | |
jordan4ibanez | 6cb6d714c9 | |
jordan4ibanez | 5155d12d05 | |
Code-Sploit | ab16690469 | |
Code-Sploit | a792516851 | |
Code-Sploit | b0d33faec4 | |
jordan4ibanez | bbcfb3fdb1 | |
jordan4ibanez | 9e4bf6e130 | |
jordan4ibanez | e53a193c4f | |
jordan4ibanez | 14207dd96a | |
jordan4ibanez | a0ed1a0b20 | |
jordan4ibanez | ba46e7fa42 | |
jordan4ibanez | 61124905f3 | |
kay27 | 93429549b8 | |
Code-Sploit | 77657359c2 | |
jordan4ibanez | 8b200c7352 | |
jordan4ibanez | 67259891a8 | |
jordan4ibanez | d063db751c | |
jordan4ibanez | d4db27f0e1 | |
Lizzy Fleckenstein | 7f28f4a9d1 | |
jordan4ibanez | 755533beeb | |
Code-Sploit | d3dd6559a2 | |
Code-Sploit | 464216ea0a | |
Code-Sploit | 5c9a78bea7 | |
Code-Sploit | 7d22906f34 | |
Code-Sploit | 1247bcc039 | |
Code-Sploit | 93df51b223 | |
Code-Sploit | 7e7a635ed0 | |
Code-Sploit | 35d2ef52c1 | |
Code-Sploit | a3ef3737d5 | |
Code-Sploit | e1236d7547 | |
Code-Sploit | 7a6929f4cb | |
Code-Sploit | bc23cd800e | |
jordan4ibanez | 3f6312a631 | |
jordan4ibanez | aa4d34c10e | |
jordan4ibanez | 1210bc463a | |
jordan4ibanez | ed60266713 | |
jordan4ibanez | 220d30df5f | |
kay27 | 7fa0767b13 | |
jordan4ibanez | 9758bbf2e7 | |
jordan4ibanez | f29ad4b8b7 | |
jordan4ibanez | 54f5bee8a3 | |
jordan4ibanez | 02515f0778 | |
jordan4ibanez | 3fc0184182 | |
Lizzy Fleckenstein | e40c392f3e | |
Lizzy Fleckenstein | b340a3586d | |
Lizzy Fleckenstein | 944a6325d0 | |
Lizzy Fleckenstein | 89c4720de1 | |
Lizzy Fleckenstein | 9ce4cd1281 | |
Lizzy Fleckenstein | fe5a8737b8 | |
Lizzy Fleckenstein | 0dc44afe3d | |
Lizzy Fleckenstein | e1ccdef42a | |
jordan4ibanez | f851f5c7ca | |
Lizzy Fleckenstein | 8cede8a5a3 | |
Lizzy Fleckenstein | d3d9351bac | |
Lizzy Fleckenstein | bb16512842 | |
Lizzy Fleckenstein | 06e8e8f463 | |
Lizzy Fleckenstein | 1ca95f9495 | |
Lizzy Fleckenstein | 9da82d44c5 | |
Lizzy Fleckenstein | 7995ff0527 | |
Lizzy Fleckenstein | 8b5be69332 | |
jordan4ibanez | 6fff719322 | |
jordan4ibanez | adaf74fc5c | |
jordan4ibanez | a564009e4a | |
jordan4ibanez | 00759da39d | |
jordan4ibanez | 9aafc28a20 | |
jordan4ibanez | 67c40885ef | |
jordan4ibanez | 2456e3cd1e | |
jordan4ibanez | 725dc731dd | |
kay27 | 4a3078f04b | |
kay27 | 647b5c1e8a | |
kay27 | 9e15c6f168 | |
kay27 | 686fd5f844 | |
kay27 | 3addd4ebb1 | |
kay27 | 1cb060ea08 | |
AFCMS | d2c65f14a3 | |
jordan4ibanez | 4957c82b4c | |
jordan4ibanez | e15fd2f4b6 | |
kay27 | bc16c33dde | |
kay27 | 871ad8d8d9 | |
jordan4ibanez | c4334a19a5 | |
jordan4ibanez | c937b2a973 | |
jordan4ibanez | 3884750efa | |
jordan4ibanez | 8c10fe4057 | |
kay27 | 75247ad53d | |
AFCMS | 61722850ae | |
AFCMS | 36d4049632 | |
iliekprogrammar | bfc1f253af | |
iliekprogrammar | ce66d99504 | |
iliekprogrammar | 70d1aba73e | |
jordan4ibanez | 9a617a3150 | |
jordan4ibanez | bd7866d798 | |
jordan4ibanez | 40478aa150 | |
jordan4ibanez | 9369c9cab8 | |
jordan4ibanez | 28823298e1 | |
jordan4ibanez | 6787d54f67 | |
jordan4ibanez | 9d48549ec5 | |
jordan4ibanez | 518252679f | |
jordan4ibanez | bb078b0c4c | |
jordan4ibanez | adab48ff0c | |
jordan4ibanez | 47c59edb51 | |
jordan4ibanez | 5ca30fa8ee | |
jordan4ibanez | aacb8fc7b9 | |
jordan4ibanez | f900b24b53 | |
jordan4ibanez | 0ad833c046 | |
jordan4ibanez | f4a6bdc6b8 | |
jordan4ibanez | bf4bf9a0cc | |
jordan4ibanez | 8e1e02d1fb | |
jordan4ibanez | f2b07304ae | |
jordan4ibanez | da045c207d | |
jordan4ibanez | b0c60c69d0 | |
jordan4ibanez | 6ec66ef6f6 | |
jordan4ibanez | 6bd249547a | |
kay27 | 227180035f | |
kay27 | c89768f8f7 | |
kay27 | 5d48975a07 | |
kay27 | 3accc82d2d | |
kay27 | 034af87cd7 | |
kay27 | 99563ab93a | |
kay27 | 748087ac3f | |
kay27 | 807126c517 | |
kay27 | a324ac0308 | |
kay27 | 25df2906f4 | |
kay27 | 3ea4de1538 | |
j1233 | f0a67cf749 | |
kay27 | f28d8632a4 | |
kay27 | 67e8dd2aa1 | |
kay27 | 3e0bbda3f7 | |
kay27 | 48286d4ac1 | |
kay27 | 70f1434da6 | |
kay27 | 4027c9fa29 | |
kay27 | 07762e7f21 | |
jordan4ibanez | c4d030d111 | |
epCode | 70bbcefbed | |
kay27 | 30973086e0 | |
kay27 | 618a8dfa2b | |
kay27 | c6e0b229be | |
kay27 | 9c5af40589 |
|
@ -1,5 +1,2 @@
|
||||||
# Text Editor TMP Files
|
# Text Editor TMP Files
|
||||||
*.swp
|
*.swp
|
||||||
*.blend1
|
|
||||||
*.blend2
|
|
||||||
*.blend3
|
|
||||||
|
|
|
@ -1,128 +0,0 @@
|
||||||
# Contributor Covenant Code of Conduct
|
|
||||||
|
|
||||||
## Our Pledge
|
|
||||||
|
|
||||||
We as members, contributors, and leaders pledge to make participation in our
|
|
||||||
community a harassment-free experience for everyone, regardless of age, body
|
|
||||||
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
|
||||||
identity and expression, level of experience, education, socio-economic status,
|
|
||||||
nationality, personal appearance, race, religion, or sexual identity
|
|
||||||
and orientation.
|
|
||||||
|
|
||||||
We pledge to act and interact in ways that contribute to an open, welcoming,
|
|
||||||
diverse, inclusive, and healthy community.
|
|
||||||
|
|
||||||
## Our Standards
|
|
||||||
|
|
||||||
Examples of behavior that contributes to a positive environment for our
|
|
||||||
community include:
|
|
||||||
|
|
||||||
* Demonstrating empathy and kindness toward other people
|
|
||||||
* Being respectful of differing opinions, viewpoints, and experiences
|
|
||||||
* Giving and gracefully accepting constructive feedback
|
|
||||||
* Accepting responsibility and apologizing to those affected by our mistakes,
|
|
||||||
and learning from the experience
|
|
||||||
* Focusing on what is best not just for us as individuals, but for the
|
|
||||||
overall community
|
|
||||||
|
|
||||||
Examples of unacceptable behavior include:
|
|
||||||
|
|
||||||
* The use of sexualized language or imagery, and sexual attention or
|
|
||||||
advances of any kind
|
|
||||||
* Trolling, insulting or derogatory comments, and personal or political attacks
|
|
||||||
* Public or private harassment
|
|
||||||
* Publishing others' private information, such as a physical or email
|
|
||||||
address, without their explicit permission
|
|
||||||
* Other conduct which could reasonably be considered inappropriate in a
|
|
||||||
professional setting
|
|
||||||
|
|
||||||
## Enforcement Responsibilities
|
|
||||||
|
|
||||||
Community leaders are responsible for clarifying and enforcing our standards of
|
|
||||||
acceptable behavior and will take appropriate and fair corrective action in
|
|
||||||
response to any behavior that they deem inappropriate, threatening, offensive,
|
|
||||||
or harmful.
|
|
||||||
|
|
||||||
Community leaders have the right and responsibility to remove, edit, or reject
|
|
||||||
comments, commits, code, wiki edits, issues, and other contributions that are
|
|
||||||
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
|
||||||
decisions when appropriate.
|
|
||||||
|
|
||||||
## Scope
|
|
||||||
|
|
||||||
This Code of Conduct applies within all community spaces, and also applies when
|
|
||||||
an individual is officially representing the community in public spaces.
|
|
||||||
Examples of representing our community include using an official e-mail address,
|
|
||||||
posting via an official social media account, or acting as an appointed
|
|
||||||
representative at an online or offline event.
|
|
||||||
|
|
||||||
## Enforcement
|
|
||||||
|
|
||||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
||||||
reported to the community leaders responsible for enforcement at
|
|
||||||
eliasfleckenstein@web.de.
|
|
||||||
All complaints will be reviewed and investigated promptly and fairly.
|
|
||||||
|
|
||||||
All community leaders are obligated to respect the privacy and security of the
|
|
||||||
reporter of any incident.
|
|
||||||
|
|
||||||
## Enforcement Guidelines
|
|
||||||
|
|
||||||
Community leaders will follow these Community Impact Guidelines in determining
|
|
||||||
the consequences for any action they deem in violation of this Code of Conduct:
|
|
||||||
|
|
||||||
### 1. Correction
|
|
||||||
|
|
||||||
**Community Impact**: Use of inappropriate language or other behavior deemed
|
|
||||||
unprofessional or unwelcome in the community.
|
|
||||||
|
|
||||||
**Consequence**: A private, written warning from community leaders, providing
|
|
||||||
clarity around the nature of the violation and an explanation of why the
|
|
||||||
behavior was inappropriate. A public apology may be requested.
|
|
||||||
|
|
||||||
### 2. Warning
|
|
||||||
|
|
||||||
**Community Impact**: A violation through a single incident or series
|
|
||||||
of actions.
|
|
||||||
|
|
||||||
**Consequence**: A warning with consequences for continued behavior. No
|
|
||||||
interaction with the people involved, including unsolicited interaction with
|
|
||||||
those enforcing the Code of Conduct, for a specified period of time. This
|
|
||||||
includes avoiding interactions in community spaces as well as external channels
|
|
||||||
like social media. Violating these terms may lead to a temporary or
|
|
||||||
permanent ban.
|
|
||||||
|
|
||||||
### 3. Temporary Ban
|
|
||||||
|
|
||||||
**Community Impact**: A serious violation of community standards, including
|
|
||||||
sustained inappropriate behavior.
|
|
||||||
|
|
||||||
**Consequence**: A temporary ban from any sort of interaction or public
|
|
||||||
communication with the community for a specified period of time. No public or
|
|
||||||
private interaction with the people involved, including unsolicited interaction
|
|
||||||
with those enforcing the Code of Conduct, is allowed during this period.
|
|
||||||
Violating these terms may lead to a permanent ban.
|
|
||||||
|
|
||||||
### 4. Permanent Ban
|
|
||||||
|
|
||||||
**Community Impact**: Demonstrating a pattern of violation of community
|
|
||||||
standards, including sustained inappropriate behavior, harassment of an
|
|
||||||
individual, or aggression toward or disparagement of classes of individuals.
|
|
||||||
|
|
||||||
**Consequence**: A permanent ban from any sort of public interaction within
|
|
||||||
the community.
|
|
||||||
|
|
||||||
## Attribution
|
|
||||||
|
|
||||||
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
|
||||||
version 2.0, available at
|
|
||||||
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
|
||||||
|
|
||||||
Community Impact Guidelines were inspired by [Mozilla's code of conduct
|
|
||||||
enforcement ladder](https://github.com/mozilla/diversity).
|
|
||||||
|
|
||||||
[homepage]: https://www.contributor-covenant.org
|
|
||||||
|
|
||||||
For answers to common questions about this code of conduct, see the FAQ at
|
|
||||||
https://www.contributor-covenant.org/faq. Translations are available at
|
|
||||||
https://www.contributor-covenant.org/translations.
|
|
443
CONTRIBUTING.md
|
@ -1,410 +1,105 @@
|
||||||
# Contributing to MineClone2
|
# Contributing to MineClone 2
|
||||||
So you want to contribute to MineClone2?
|
So you want to contribute to MineClone 2?
|
||||||
Wow, thank you! :-)
|
Wow, thank you! :-)
|
||||||
|
|
||||||
MineClone2 is maintained by Nicu and Fleckenstein. If you have any
|
But first, some things to note:
|
||||||
problems or questions, contact us (See Links section below).
|
|
||||||
|
|
||||||
You can help with MineClone2's development in many different ways,
|
MineClone 2's development target is to make a free software clone of Minecraft,
|
||||||
whether you're a programmer or not.
|
***version 1.12***, ***PC edition***, *** + Optifine features supported by the Minetest Engine ***.
|
||||||
|
|
||||||
## MineClone2's development target is to...
|
MineClone 2 is maintained by three persons. Namely, kay27, EliasFleckenstein and jordan4ibanez. You can find us
|
||||||
- Crucially, create a stable, moddable, free/libre clone of Minecraft
|
in the Minetest forums (forums.minetest.net), in IRC in the #mineclone2
|
||||||
based on the Minetest engine with polished features, usable in both
|
channel on irc.freenode.net. And finally, you can send e-mails to
|
||||||
singleplayer and multiplayer. Currently, most of **Minecraft Java
|
<eliasfleckenstein@web.de> or <kay27@bk.ru>.
|
||||||
Edition 1.12.2** features are already implemented and polishing existing
|
|
||||||
features are prioritized over new feature requests.
|
|
||||||
- With lessened priority yet strictly, implement features targetting
|
|
||||||
**Minecraft version 1.17 + OptiFine** (OptiFine only as far as supported
|
|
||||||
by the Minetest Engine). This means features in parity with the listed
|
|
||||||
Minecraft experiences are prioritized over those that don't fulfill this
|
|
||||||
scope.
|
|
||||||
- Optionally, create a performant experience that will run relatively
|
|
||||||
well on really low spec computers. Unfortunately, due to Minecraft's
|
|
||||||
mechanisms and Minetest engine's limitations along with a very small
|
|
||||||
playerbase on low spec computers, optimizations are hard to investigate.
|
|
||||||
|
|
||||||
## Links
|
By sending us patches or asking us to include your changes in this game,
|
||||||
* [Mesehub](https://git.minetest.land/MineClone2/MineClone2)
|
you agree that they fall under the terms of the LGPLv2.1, which basically
|
||||||
* [Discord](https://discord.gg/xE4z8EEpDC)
|
means they will become part of a free software.
|
||||||
* [YouTube](https://www.youtube.com/channel/UClI_YcsXMF3KNeJtoBfnk9A)
|
|
||||||
* [IRC](https://web.libera.chat/#mineclone2)
|
|
||||||
* [Matrix](https://app.element.io/#/room/#mc2:matrix.org)
|
|
||||||
* [Reddit](https://www.reddit.com/r/MineClone2/)
|
|
||||||
* [Minetest forums](https://forum.minetest.net/viewtopic.php?f=50&t=16407)
|
|
||||||
* [ContentDB](https://content.minetest.net/packages/wuzzy/mineclone2/)
|
|
||||||
* [OpenCollective](https://opencollective.com/mineclone2)
|
|
||||||
|
|
||||||
## Using git
|
## The suggested workflow
|
||||||
MineClone2 is developed using the version control system
|
We don't **dictate** your workflow, but in order to work with us in an efficient
|
||||||
[git](https://git-scm.com/). If you want to contribute code to the
|
way, you can follow these suggestions:
|
||||||
project, it is **highly recommended** that you learn the git basics.
|
|
||||||
For non-programmers and people who do not plan to contribute code to
|
|
||||||
MineClone2, git is not required. However, git is a tool that will be
|
|
||||||
referenced frequently because of its usefulness. As such, it is valuable
|
|
||||||
in learning how git works and its terminology. It can also help you
|
|
||||||
keeping your game updated, and easily test pull requests.
|
|
||||||
|
|
||||||
## How you can help as a non-programmer
|
For small and medium changes:
|
||||||
|
|
||||||
As someone who does not know how to write programs in Lua or does not
|
* Fork the repository
|
||||||
know how to use the Minetest API, you can still help us out a lot. For
|
|
||||||
example, by opening an issue in the
|
|
||||||
[Issue tracker](https://git.minetest.land/MineClone2/MineClone2/issues),
|
|
||||||
you can report a bug or request a feature.
|
|
||||||
|
|
||||||
### Rules about both bugs and feature requests
|
|
||||||
* Stay polite towards the developers and anyone else involved in the
|
|
||||||
discussion.
|
|
||||||
* Choose a descriptive title (e.g. not just "crash", "bug" or "question"
|
|
||||||
).
|
|
||||||
* Please write in plain, understandable English. It will be easier to
|
|
||||||
communicate.
|
|
||||||
* Please start the issue title with a capital letter.
|
|
||||||
* Always check the currently opened issues before creating a new one.
|
|
||||||
Don't report bugs that have already been reported or request features
|
|
||||||
that already have been requested.
|
|
||||||
* If you know about Minetest's inner workings, please think about
|
|
||||||
whether the bug / the feature that you are reporting / requesting is
|
|
||||||
actually an issue with Minetest itself, and if it is, head to the
|
|
||||||
[Minetest issue tracker](https://github.com/minetest/minetest/issues)
|
|
||||||
instead.
|
|
||||||
* If you need any help regarding creating a Mesehub account or opening
|
|
||||||
an issue, feel free to ask on the Discord / Matrix server or the IRC
|
|
||||||
channel.
|
|
||||||
|
|
||||||
### Reporting bugs
|
|
||||||
* A bug is an unintended behavior or, in the worst case, a crash.
|
|
||||||
However, it is not a bug if you believe something is missing in the
|
|
||||||
game. In this case, please read "Requesting features"
|
|
||||||
* If you report a crash, always include the error message. If you play
|
|
||||||
in singleplayer, post a screenshot of the message that Minetest showed
|
|
||||||
when the crash happened (or copy the message into your issue). If you
|
|
||||||
are a server admin, you can find error messages in the log file of the
|
|
||||||
server.
|
|
||||||
* Tell us which MineClone2 and Minetest versions you are using.
|
|
||||||
* Tell us how to reproduce the problem: What you were doing to trigger
|
|
||||||
the bug, e.g. before the crash happened or what causes the faulty
|
|
||||||
behavior.
|
|
||||||
|
|
||||||
### Requesting features
|
|
||||||
* Ensure the requested feature fulfills our development targets and
|
|
||||||
goals.
|
|
||||||
* Begging or excessive attention seeking does not help us in the
|
|
||||||
slightest, and may very well disrupt MineClone2 development. It's better
|
|
||||||
to put that energy into helping or researching the feature in question.
|
|
||||||
After all, we're just volunteers working on our spare time.
|
|
||||||
* Ensure the requested feature has not been implemented in MineClone2
|
|
||||||
latest or development versions.
|
|
||||||
|
|
||||||
### Testing code
|
|
||||||
If you want to help us with speeding up MineClone2 development and
|
|
||||||
making the game more stable, a great way to do that is by testing out
|
|
||||||
new features from contributors. For most new things that get into the
|
|
||||||
game, a pull request is created. A pull request is essentially a
|
|
||||||
programmer saying "Look, I modified the game, please apply my changes
|
|
||||||
to the upstream version of the game". However, every programmer makes
|
|
||||||
mistakes sometimes, some of which are hard to spot. You can help by
|
|
||||||
downloading this modified version of the game and trying it out - then
|
|
||||||
tell us if the code works as expected without any issues. Ideally, you
|
|
||||||
would report issues will pull requests similar to when you were
|
|
||||||
reporting bugs that are the mainline (See Reporting bugs section). You
|
|
||||||
can find currently open pull requests here:
|
|
||||||
<https://git.minetest.land/MineClone2/MineClone2/pulls>. Note that pull
|
|
||||||
requests that start with a `WIP:` are not done yet, and therefore might
|
|
||||||
not work, so it's not very useful to try them out yet.
|
|
||||||
|
|
||||||
### Contributing assets
|
|
||||||
Due to license problems, MineClone2 unfortunately cannot use
|
|
||||||
Minecraft's assets, therefore we are always looking for asset
|
|
||||||
contributions. To contribute assets, it can be useful to learn git
|
|
||||||
basics and read the section for Programmers of this document, however
|
|
||||||
this is not required. It's also a good idea to join the Discord server
|
|
||||||
(or alternatively IRC or Matrix).
|
|
||||||
|
|
||||||
#### Textures
|
|
||||||
For textures we use the Pixel Perfection texture pack. This is mostly
|
|
||||||
enough; however in some cases - e.g. for newer Minecraft features, it's
|
|
||||||
useful to have texture artists around. If you want to make such
|
|
||||||
contributions, join our Discord server. Demands for textures will be
|
|
||||||
communicated there.
|
|
||||||
|
|
||||||
#### Sounds
|
|
||||||
MineClone2 currently does not have a consistent way to handle sounds.
|
|
||||||
The sounds in the game come from different sources, like the SnowZone
|
|
||||||
resource pack or minetest_game. Unfortunately, MineClone2 does not play
|
|
||||||
a sound in every situation you would get one in Minecraft. Any help with
|
|
||||||
sounds is greatly appreciated, however if you add new sounds you should
|
|
||||||
probably work together with a programmer, to write the code to actually
|
|
||||||
play these sounds in game.
|
|
||||||
|
|
||||||
#### 3D Models
|
|
||||||
Most of the 3D Models in MineClone2 come from
|
|
||||||
[22i's repository](https://github.com/22i/minecraft-voxel-blender-models).
|
|
||||||
Similar to the textures, we need people that can make 3D Models with
|
|
||||||
Blender on demand. Many of the models have to be patched, some new
|
|
||||||
animations have to be added etc.
|
|
||||||
|
|
||||||
#### Crediting
|
|
||||||
Asset contributions will be credited in their own respective sections in
|
|
||||||
CREDITS.md. If you have commited the results yourself, you will also be
|
|
||||||
credited in the Contributors section.
|
|
||||||
|
|
||||||
### Contributing Translations
|
|
||||||
|
|
||||||
#### Workflow
|
|
||||||
To add/update support for your language to MineClone2, you should take
|
|
||||||
the steps documented in the section for Programmers, add/update the
|
|
||||||
translation files of the mods that you want to update. You can add
|
|
||||||
support for all mods, just some of them or only one mod; you can update
|
|
||||||
the translation file entirely or only partly; basically any effort is
|
|
||||||
valued. If your changes are small, you can also send them to developers
|
|
||||||
via E-Mail, Discord, IRC or Matrix - they will credit you appropriately.
|
|
||||||
|
|
||||||
#### Things to note
|
|
||||||
You can use the script at `tools/check_translate_files.py` to compare
|
|
||||||
the translation files for the language you are working on with the
|
|
||||||
template files, to see what is missing and what is out of date with
|
|
||||||
the template file. However, template files are often incomplete and/or
|
|
||||||
out of date, sometimes they don't match the code. You can update the
|
|
||||||
translation files if that is required, you can also modify the code in
|
|
||||||
your translation PR if it's related to translation. You can also work on
|
|
||||||
multiple languages at the same time in one PR.
|
|
||||||
|
|
||||||
#### Crediting
|
|
||||||
Translation contributions will be credited in their own in CREDITS.md.
|
|
||||||
If you have commited the results yourself, you will also be credited in
|
|
||||||
the Contributors section.
|
|
||||||
|
|
||||||
### Profiling
|
|
||||||
If you own a server, a great way to help us improve MineClone2's code
|
|
||||||
is by giving us profiler results. Profiler results give us detailed
|
|
||||||
information about the game's performance and let us know places to
|
|
||||||
investigate optimization issues. This way we can make the game faster.
|
|
||||||
|
|
||||||
#### Using Minetest's profiler
|
|
||||||
Minetest has a built in profiler. Simply set `profiler.load = true` in
|
|
||||||
your configuration file and restart the server. After running the server
|
|
||||||
for some time, just run `/profiler save` in chat - then you will find a
|
|
||||||
file in the world directory containing the results. Open a new issue and
|
|
||||||
upload the file. You can name the issue "<Server name> profiler
|
|
||||||
results".
|
|
||||||
|
|
||||||
### Let us know your opinion
|
|
||||||
It is always encouraged to actively contribute to issue discussions on
|
|
||||||
MeseHub, let us know what you think about a topic and help us make
|
|
||||||
decisions. Also, note that a lot of discussion takes place on the
|
|
||||||
Discord server, so it's definitely worth checking it out.
|
|
||||||
|
|
||||||
### Funding
|
|
||||||
You can help pay for our infrastructure (Mesehub) by donating to our
|
|
||||||
OpenCollective link (See Links section).
|
|
||||||
|
|
||||||
### Crediting
|
|
||||||
If you opened or have contributed to an issue, you receive the
|
|
||||||
`Community` role on our Discord (after asking for it).
|
|
||||||
OpenCollective Funders are credited in their own section in
|
|
||||||
`CREDITS.md` and receive a special role "Funder" on our discord (unless
|
|
||||||
they have made their donation Incognito).
|
|
||||||
|
|
||||||
## How you can help as a programmer
|
|
||||||
(Almost) all the MineClone2 development is done using pull requests.
|
|
||||||
|
|
||||||
### Recommended workflow
|
|
||||||
* Fork the repository (in case you have not already)
|
|
||||||
* Do your change in a new branch
|
* Do your change in a new branch
|
||||||
* Create a pull request to get your changes merged into master
|
* Create a pull request to get your changes merged into master
|
||||||
* Keep your pull request up to date by regularly merging upstream. It is
|
|
||||||
imperative that conflicts are resolved prior to merging the pull
|
|
||||||
request.
|
|
||||||
* After the pull request got merged, you can delete the branch
|
|
||||||
|
|
||||||
### Discuss first
|
For small changes, sending us a patch is also good.
|
||||||
If you feel like a problem needs to fixed or you want to make a new
|
|
||||||
feature, you could start writing the code right away and notifying us
|
|
||||||
when you're done, but it never hurts to discuss things first. If there
|
|
||||||
is no issue on the topic, open one. If there is an issue, tell us that
|
|
||||||
you'd like to take care of it, to avoid duplicate work.
|
|
||||||
|
|
||||||
### Don't hesitate to ask for help
|
For big changes: Same as above, but consider notifying us first to avoid
|
||||||
We appreciate any contributing effort to MineClone2. If you are a
|
duplicate work and possible tears of rejection. ;-)
|
||||||
relatively new programmer, you can reach us on Discord, Matrix or IRC
|
|
||||||
for questions about git, Lua, Minetest API, MineClone2 codebase or
|
|
||||||
anything related to MineClone2. We can help you avoid writing code that
|
|
||||||
would be deemed inadequate, or help you become familiar with MineClone2
|
|
||||||
better, or assist you use development tools.
|
|
||||||
|
|
||||||
### Maintain your own code, even if already got merged
|
For trusted people, we might give them direct commit access to this
|
||||||
Sometimes, your code may cause crashes or bugs - we try to avoid such
|
repository. In this case, you obviously don't need to fork, but you still
|
||||||
scenarios by testing every time before merging it, but if your merged
|
need to show your contributions align with the project goals. We still
|
||||||
work causes problems, we ask you fix the issues as soon as possible.
|
reserve the right to revert everything that we don't like.
|
||||||
|
For bigger changes, we strongly recommend to use feature branches and
|
||||||
|
discuss with me first.
|
||||||
|
|
||||||
### Changing Gameplay
|
If your code causes bugs and crashes, it is your responsibility to fix them as soon as possible.
|
||||||
Pull Requests that change gameplay have to be properly researched and
|
|
||||||
need to state their sources. These PRs also need Fleckenstein's approval
|
|
||||||
before they are merged.
|
|
||||||
You can use these sources:
|
|
||||||
|
|
||||||
* Testing things inside of Minecraft (Attach screenshots / video footage
|
We mostly use plain merging rather than rebasing or squash merging.
|
||||||
of the results)
|
|
||||||
* Looking at [Minestom](https://github.com/Minestom/Minestom) code. An open source Minecraft Server implementation
|
|
||||||
* [Official Minecraft Wiki](https://minecraft.fandom.com/wiki/Minecraft_Wiki)
|
|
||||||
(Include a link to the specific page you used)
|
|
||||||
|
|
||||||
### Stick to our guidelines
|
Your commit names should be relatively descriptive, e.g. when saying "Fix #issueid", the commit message should also contain the title of the issue.
|
||||||
|
|
||||||
#### Git Guidelines
|
Contributors will be credited in `CREDITS.md`.
|
||||||
* We use merge rather than rebase or squash merge
|
|
||||||
* We don't use git submodules.
|
|
||||||
* Your commit names should be relatively descriptive, e.g. when saying
|
|
||||||
"Fix #issueid", the commit message should also contain the title of the
|
|
||||||
issue.
|
|
||||||
* Try to keep your commits as atomic as possible (advise, but completely
|
|
||||||
optional)
|
|
||||||
|
|
||||||
#### Code Guidelines
|
## Code Style
|
||||||
* Each mod must provide `mod.conf`.
|
|
||||||
* Mod names are snake case, and newly added mods start with `mcl_`, e.g.
|
|
||||||
`mcl_core`, `mcl_farming`, `mcl_monster_eggs`. Keep in mind Minetest
|
|
||||||
does not support capital letters in mod names.
|
|
||||||
* To export functions, store them inside a global table named like the
|
|
||||||
mod, e.g.
|
|
||||||
|
|
||||||
```lua
|
Each mod must provide `mod.conf`.
|
||||||
mcl_example = {}
|
Each mod which add API functions should store functions inside a global table named like the mod.
|
||||||
|
Public functions should not use self references but rather just access the table directly.
|
||||||
function mcl_example.do_something()
|
Functions should be defined in this way:
|
||||||
-- ...
|
```
|
||||||
end
|
function mcl_xyz.stuff(param) end
|
||||||
|
```
|
||||||
|
Insteed of this way:
|
||||||
|
```
|
||||||
|
mcl_xyz.stuff = function(param) end
|
||||||
|
```
|
||||||
|
Indentation must be unified, more likely with tabs.
|
||||||
|
|
||||||
|
Time sensitive mods should make a local copy of most used API functions to improve performances.
|
||||||
|
```
|
||||||
|
local vector = vector
|
||||||
|
local get_node = minetest.get_node
|
||||||
```
|
```
|
||||||
|
|
||||||
* Public functions should not use self references but rather just access
|
|
||||||
the table directly, e.g.
|
|
||||||
|
|
||||||
```lua
|
## Features > 1.12
|
||||||
-- bad
|
|
||||||
function mcl_example:do_something()
|
|
||||||
end
|
|
||||||
|
|
||||||
-- good
|
If you want to make a feature that was added in a Minecraft version later than 1.12, you should fork MineClone5 (mineclone5 branch in the repository) and add your changes to this.
|
||||||
function mcl_example.do_something()
|
|
||||||
end
|
|
||||||
```
|
|
||||||
|
|
||||||
* Use modern Minetest API, e.g. no usage of `minetest.env`
|
## What we accept
|
||||||
* Tabs should be used for indent, spaces for alignment, e.g.
|
|
||||||
|
|
||||||
```lua
|
* Every MC features up to version 1.12 JE.
|
||||||
|
* Every already finished and working good features from versions above (only when making a MineClone5 PR / Contribution).
|
||||||
|
* Except features which couldn't be done easily and bugfree because of Minetest engine limitations. Eg. we CAN extend world boundaries by playing with map chunks, just teleporting player onto next layer after 31000 , but it would cost too much (time, code, bugs, performance, stability, etc).
|
||||||
|
* Some features, approved by the rest of the community, I mean maybe some voting and really missing any negative feedback.
|
||||||
|
|
||||||
-- use tabs for indent
|
## What we reject
|
||||||
|
|
||||||
for i = 1, 10 do
|
* Any features which cause critical bugs, sending them to rework/fix or trying to fix immediately.
|
||||||
if i % 3 == 0 then
|
* Some small portions of big entirely missing features which just definitely break gamplay balance give nothing useful
|
||||||
print(i)
|
* Controversial features, which some people support while others do not should be discussed well, with publishing forum announcements, at least during the week. In case if there are still doubts - send them into the mod.
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
-- use tabs for indent and spaces to align things
|
## Reporting bugs
|
||||||
|
Report all bugs and missing Minecraft features here:
|
||||||
|
|
||||||
some_table = {
|
<https://git.minetest.land/MineClone2/MineClone2/issues>
|
||||||
{"a string", 5},
|
|
||||||
{"a very much longer string", 10},
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
* Use double quotes for strings, e.g. `"asdf"` rather than `'asdf'`
|
## Direct discussion
|
||||||
* Use snake_case rather than CamelCase, e.g. `my_function` rather than
|
We have an IRC channel! Join us on #mineclone2 in freenode.net.
|
||||||
`MyFunction`
|
|
||||||
* Don't declare functions as an assignment, e.g.
|
|
||||||
|
|
||||||
```lua
|
<ircs://irc.freenode.net:6697/#mineclone2>
|
||||||
-- bad
|
|
||||||
local some_local_func = function()
|
|
||||||
-- ...
|
|
||||||
end
|
|
||||||
|
|
||||||
my_mod.some_func = function()
|
## Creating releases
|
||||||
-- ...
|
|
||||||
end
|
|
||||||
|
|
||||||
-- good
|
|
||||||
local function some_local_func()
|
|
||||||
-- ...
|
|
||||||
end
|
|
||||||
|
|
||||||
function my_mod.some_func()
|
|
||||||
-- ...
|
|
||||||
end
|
|
||||||
```
|
|
||||||
|
|
||||||
### Developer status
|
|
||||||
Active and trusted contributors are often granted write access to the
|
|
||||||
MineClone2 repository.
|
|
||||||
|
|
||||||
#### Developer responsibilities
|
|
||||||
- You should not push things directly to
|
|
||||||
MineClone2 master - rather, do your work on a branch on your private
|
|
||||||
repository, then create a pull request. This way other people can review
|
|
||||||
your changes and make sure they work before they get merged.
|
|
||||||
- Merge PRs only when they have recieved the necessary feedback and have
|
|
||||||
been tested by at least two different people (including the author of
|
|
||||||
the pull request), to avoid crashes or the introduction of new bugs.
|
|
||||||
- You may also be assigned to issues or pull
|
|
||||||
requests as a developer. In this case it is your responsibility to fix
|
|
||||||
the issue / review and merge the pull request when it is ready. You can
|
|
||||||
also unassign yourself from the issue / PR if you have no time or don't
|
|
||||||
want to take care of it for some other reason. After all, everyone is a
|
|
||||||
volunteer and we can't expect you to do work that you are not interested
|
|
||||||
in. **The important thing is that you make sure to inform us if you
|
|
||||||
won't take care of something that has been assigned to you.**
|
|
||||||
- Please assign yourself to something that you want to work on to avoid
|
|
||||||
duplicate work.
|
|
||||||
- As a developer, it should be easy to reach you about your work. You
|
|
||||||
should be in at least one of the public MineClone2 discussion rooms -
|
|
||||||
preferrably Discord, but if you really don't like Discord, Matrix
|
|
||||||
or IRC are fine too.
|
|
||||||
|
|
||||||
### Maintainer status
|
|
||||||
Maintainers carry the main responsibility for the project.
|
|
||||||
|
|
||||||
#### Maintainer responsibilities
|
|
||||||
- Making sure issues are addressed and pull requests are reviewed and
|
|
||||||
merged, by assigning either themselves or Developers to issues / PRs
|
|
||||||
- Making releases
|
|
||||||
- Making sure guidelines are kept
|
|
||||||
- Making project decisions based on community feedback
|
|
||||||
- Granting/revoking developer access
|
|
||||||
- Enforcing the code of conduct (See CODE_OF_CONDUCT.md)
|
|
||||||
- Moderating official community spaces (See Links section)
|
|
||||||
- Resolving conflicts and problems within the community
|
|
||||||
|
|
||||||
#### Current maintainers
|
|
||||||
* Fleckenstein - responsible for gameplay review, publishing releases,
|
|
||||||
technical guidelines and issue/PR delegation
|
|
||||||
* Nicu - responsible for community related issues
|
|
||||||
|
|
||||||
#### Release process
|
|
||||||
* Run `tools/generate_ingame_credits.lua` to update the ingame credits
|
|
||||||
from `CREDITS.md` and commit the result (if anything changed)
|
|
||||||
* Launch MineClone2 to make sure it still runs
|
* Launch MineClone2 to make sure it still runs
|
||||||
* Update the version number in README.md
|
* Update the version number in README.md
|
||||||
* Use `git tag <version number>` to tag the latest commit with the
|
* Use `git tag <version number>` to tag the latest commit with the version number
|
||||||
version number
|
* Push to repo (don't forget `--tags`!)
|
||||||
* Push to repository (don't forget `--tags`!)
|
* Update ContentDB (https://content.minetest.net/packages/Wuzzy/mineclone2/)
|
||||||
* Update ContentDB
|
* Update first post in forum thread (https://forum.minetest.net/viewtopic.php?f=50&t=16407)
|
||||||
(https://content.minetest.net/packages/Wuzzy/mineclone2/)
|
|
||||||
* Update first post in forum thread
|
|
||||||
(https://forum.minetest.net/viewtopic.php?f=50&t=16407)
|
|
||||||
* Post release announcement and changelog in forums
|
* Post release announcement and changelog in forums
|
||||||
|
|
||||||
### Licensing
|
|
||||||
By asking us to include your changes in this game, you agree that they
|
|
||||||
fall under the terms of the GPLv3, which basically means they will
|
|
||||||
become part of a free/libre software.
|
|
||||||
|
|
||||||
### Crediting
|
|
||||||
Contributors, Developers and Maintainers will be credited in
|
|
||||||
`CREDITS.md`. If you make your first time contribution, please add
|
|
||||||
yourself to this file. There are also Discord roles for Contributors,
|
|
||||||
Developers and Maintainers.
|
|
||||||
|
|
44
CREDITS.md
|
@ -6,13 +6,9 @@
|
||||||
## Creator of MineClone2
|
## Creator of MineClone2
|
||||||
* Wuzzy
|
* Wuzzy
|
||||||
|
|
||||||
|
|
||||||
## Maintainers
|
## Maintainers
|
||||||
* Nicu
|
|
||||||
* cora
|
|
||||||
|
|
||||||
## Previous Maintainers
|
|
||||||
* Fleckenstein
|
* Fleckenstein
|
||||||
|
* kay27
|
||||||
* jordan4ibanez
|
* jordan4ibanez
|
||||||
|
|
||||||
## Developers
|
## Developers
|
||||||
|
@ -23,10 +19,10 @@
|
||||||
* iliekprogrammar
|
* iliekprogrammar
|
||||||
* MysticTempest
|
* MysticTempest
|
||||||
* Rootyjr
|
* Rootyjr
|
||||||
|
* Nicu
|
||||||
* aligator
|
* aligator
|
||||||
* Code-Sploit
|
* Code-Sploit
|
||||||
* NO11
|
* NO11
|
||||||
* kabou
|
|
||||||
|
|
||||||
## Contributors
|
## Contributors
|
||||||
* Laurent Rocher
|
* Laurent Rocher
|
||||||
|
@ -52,25 +48,8 @@
|
||||||
* dBeans
|
* dBeans
|
||||||
* nickolas360
|
* nickolas360
|
||||||
* yutyo
|
* yutyo
|
||||||
* Tianyang Zhang
|
* ztianyang
|
||||||
* j45
|
* j45
|
||||||
* Marcin Serwin
|
|
||||||
* erlehmann
|
|
||||||
* E
|
|
||||||
* Benjamin Schötz
|
|
||||||
* Doloment
|
|
||||||
* Sydney Gems
|
|
||||||
* talamh
|
|
||||||
* Emily2255
|
|
||||||
* Emojigit
|
|
||||||
* FinishedFragment
|
|
||||||
* sfan5
|
|
||||||
* Blue Blancmange
|
|
||||||
* Jared Moody
|
|
||||||
* SmallJoker
|
|
||||||
* Sven792
|
|
||||||
* aldum
|
|
||||||
* Dieter44
|
|
||||||
|
|
||||||
## MineClone5
|
## MineClone5
|
||||||
* kay27
|
* kay27
|
||||||
|
@ -78,16 +57,6 @@
|
||||||
* epCode
|
* epCode
|
||||||
* NO11
|
* NO11
|
||||||
* j45
|
* j45
|
||||||
* 3raven
|
|
||||||
* PrarieWind
|
|
||||||
* Gustavo1
|
|
||||||
* CableGuy67
|
|
||||||
|
|
||||||
## Mineclonia
|
|
||||||
* erlehmann
|
|
||||||
* Li0n
|
|
||||||
* E
|
|
||||||
* n_to
|
|
||||||
|
|
||||||
## Original Mod Authors
|
## Original Mod Authors
|
||||||
* Wuzzy
|
* Wuzzy
|
||||||
|
@ -105,6 +74,7 @@
|
||||||
* Rochambeau
|
* Rochambeau
|
||||||
* rubenwardy
|
* rubenwardy
|
||||||
* stu
|
* stu
|
||||||
|
* jordan4ibanez
|
||||||
* 4aiman
|
* 4aiman
|
||||||
* Kahrl
|
* Kahrl
|
||||||
* Krock
|
* Krock
|
||||||
|
@ -133,7 +103,6 @@
|
||||||
* xMrVizzy
|
* xMrVizzy
|
||||||
* yutyo
|
* yutyo
|
||||||
* NO11
|
* NO11
|
||||||
* kay27
|
|
||||||
|
|
||||||
## Translations
|
## Translations
|
||||||
* Wuzzy
|
* Wuzzy
|
||||||
|
@ -141,11 +110,6 @@
|
||||||
* wuniversales
|
* wuniversales
|
||||||
* kay27
|
* kay27
|
||||||
* pitchum
|
* pitchum
|
||||||
* todoporlalibertad
|
|
||||||
* Marcin Serwin
|
|
||||||
|
|
||||||
## Funders
|
|
||||||
* 40W
|
|
||||||
|
|
||||||
## Special thanks
|
## Special thanks
|
||||||
* celeron55 for creating Minetest
|
* celeron55 for creating Minetest
|
||||||
|
|
60
README.md
|
@ -1,8 +1,10 @@
|
||||||
# MineClone2
|
# (Currently in feature freeze)
|
||||||
|
|
||||||
|
# MineClone 2
|
||||||
An unofficial Minecraft-like game for Minetest. Forked from MineClone by davedevils.
|
An unofficial Minecraft-like game for Minetest. Forked from MineClone by davedevils.
|
||||||
Developed by many people. Not developed or endorsed by Mojang AB.
|
Developed by many people. Not developed or endorsed by Mojang AB.
|
||||||
|
|
||||||
Version: 0.72.0
|
Version: 0.72.0 (in development)
|
||||||
|
|
||||||
### Gameplay
|
### Gameplay
|
||||||
You start in a randomly-generated world made entirely of cubes. You can explore
|
You start in a randomly-generated world made entirely of cubes. You can explore
|
||||||
|
@ -69,40 +71,36 @@ an explanation.
|
||||||
This game requires [Minetest](http://minetest.net) to run (version 5.3.0 or
|
This game requires [Minetest](http://minetest.net) to run (version 5.3.0 or
|
||||||
later). So you need to install Minetest first. Only stable versions of Minetest
|
later). So you need to install Minetest first. Only stable versions of Minetest
|
||||||
are officially supported.
|
are officially supported.
|
||||||
There is no support for running MineClone2 in development versions of Minetest.
|
There is no support for running MineClone 2 in development versions of Minetest.
|
||||||
|
|
||||||
To install MineClone2 (if you haven't already), move this directory into the
|
To install MineClone 2 (if you haven't already), move this directory into the
|
||||||
“games” directory of your Minetest data directory. Consult the help of
|
“games” directory of your Minetest data directory. Consult the help of
|
||||||
Minetest to learn more.
|
Minetest to learn more.
|
||||||
|
|
||||||
## Useful links
|
## Reporting bugs
|
||||||
The MineClone2 repository is hosted at Mesehub. To contribute or report issues, head there.
|
Please report all bugs and missing Minecraft features here:
|
||||||
|
|
||||||
* Mesehub: <https://git.minetest.land/MineClone2/MineClone2>
|
<https://git.minetest.land/MineClone2/MineClone2/issues>
|
||||||
* Discord: <https://discord.gg/xE4z8EEpDC>
|
|
||||||
* YouTube <https://www.youtube.com/channel/UClI_YcsXMF3KNeJtoBfnk9A>
|
|
||||||
* IRC: <https://web.libera.chat/#mineclone2>
|
|
||||||
* Matrix: <https://app.element.io/#/room/#mc2:matrix.org>
|
|
||||||
* Reddit: <https://www.reddit.com/r/MineClone2/>
|
|
||||||
* Minetest forums: <https://forum.minetest.net/viewtopic.php?f=50&t=16407>
|
|
||||||
* ContentDB: <https://content.minetest.net/packages/wuzzy/mineclone2/>
|
|
||||||
* OpenCollective: <https://opencollective.com/mineclone2>
|
|
||||||
|
|
||||||
## Target
|
## Chatting with the community
|
||||||
- Crucially, create a stable, moddable, free/libre clone of Minecraft
|
Join our discord server at:
|
||||||
based on the Minetest engine with polished features, usable in both
|
|
||||||
singleplayer and multiplayer. Currently, most of **Minecraft Java
|
<https://discord.gg/xE4z8EEpDC>
|
||||||
Edition 1.12.2** features are already implemented and polishing existing
|
|
||||||
features are prioritized over new feature requests.
|
## Project description
|
||||||
- With lessened priority yet strictly, implement features targetting
|
The main goal of **MineClone 2** is to be a clone of Minecraft and to be released as free software.
|
||||||
**Minecraft version 1.17 + OptiFine** (OptiFine only as far as supported
|
|
||||||
by the Minetest Engine). This means features in parity with the listed
|
* **Target of development: Minecraft, PC Edition, version 1.12** (later known as “Java Edition”)
|
||||||
Minecraft experiences are prioritized over those that don't fulfill this
|
* MineClone2 also includes Optifine features supported by the Minetest
|
||||||
scope.
|
* In general, Minecraft is aimed to be cloned as good as possible
|
||||||
- Optionally, create a performant experience that will run relatively
|
* Cloning the gameplay has highest priority
|
||||||
well on really low spec computers. Unfortunately, due to Minecraft's
|
* MineClone 2 will use different assets, but with a similar style
|
||||||
mechanisms and Minetest engine's limitations along with a very small
|
* Limitations found in Minetest will be documented in the course of development
|
||||||
playerbase on low spec computers, optimizations are hard to investigate.
|
* Features of later Minecraft versions are collected in the mineclone5 branch
|
||||||
|
|
||||||
|
## Using features from newer versions of Minecraft
|
||||||
|
For > 1.12 features, checkout MineClone5. It includes features from newer Minecraft versions.
|
||||||
|
Download it here: https://git.minetest.land/MineClone2/MineClone2/src/branch/mineclone5
|
||||||
|
|
||||||
## Completion status
|
## Completion status
|
||||||
This game is currently in **beta** stage.
|
This game is currently in **beta** stage.
|
||||||
|
@ -189,7 +187,7 @@ Technical differences from Minecraft:
|
||||||
* Different engine (Minetest)
|
* Different engine (Minetest)
|
||||||
* Different easter eggs
|
* Different easter eggs
|
||||||
|
|
||||||
… and finally, MineClone2 is free software (“free” as in “freedom”)!
|
… and finally, MineClone 2 is free software (“free” as in “freedom”)!
|
||||||
|
|
||||||
## Other readme files
|
## Other readme files
|
||||||
|
|
||||||
|
|
|
@ -1,324 +0,0 @@
|
||||||
# MineClone 2
|
|
||||||
一個非官方的Minetest遊戲,遊玩方式和Minecraft類似。由davedevils從MineClone分拆。
|
|
||||||
由許多人開發。並非由Mojang Studios開發。<!-- "Mojang AB"'s Name changed at 2020/05, main README should change too -->
|
|
||||||
|
|
||||||
版本:0.71.0
|
|
||||||
|
|
||||||
### 遊玩
|
|
||||||
你開始在一個完全由方塊隨機生成的世界裡。你可以探索這個世界,挖掘和建造世界上幾乎所有的方塊,以創造新的結構。你可以選擇在「生存模式」中進行遊戲,在這個模式中,你必須與怪物戰鬥,飢餓求生,並在遊戲的其他各個環節中慢慢進步,如採礦、養殖、建造機器等等。
|
|
||||||
|
|
||||||
或者你也可以在「創造模式」中玩,在這個模式中,你可以瞬間建造大部分東西。
|
|
||||||
#### Gameplay summary
|
|
||||||
|
|
||||||
* 沙盒式遊戲,沒有明確目標
|
|
||||||
* 生存:與怪物和飢餓搏鬥
|
|
||||||
* 挖礦來獲得礦物和寶物
|
|
||||||
* 附魔:獲得經驗值並以附魔強化你的工具
|
|
||||||
* 使用收集的方塊來創造偉大的建築
|
|
||||||
* 收集鮮花(和其他染料來源),令世界多姿多彩
|
|
||||||
* 找些種子並開始耕種
|
|
||||||
* 尋找或合成數百個物品之一
|
|
||||||
* 建立一個鐵路系統,並從礦車中得到樂趣
|
|
||||||
* 用紅石電路建造複雜的機器
|
|
||||||
* 在創造模式下,你幾乎可以免費建造任何東西,而且沒有限制。
|
|
||||||
|
|
||||||
## 如何開始
|
|
||||||
### 開始生存
|
|
||||||
* **挖樹幹**直到其破裂並收集木材
|
|
||||||
* 將木頭**放入2×2的格子中**(你的物品欄中的「合成格子」),然後製作4塊木材。
|
|
||||||
* 將4塊木材按2×2的形狀擺放在合成格子裡,製作成合成臺。
|
|
||||||
* **右鍵單擊製作臺**以獲得3×3製作網格,製作更複雜的東西
|
|
||||||
* 使用**合成指南**(書形圖標)了解所有可能的合成方式
|
|
||||||
* **製作一個木鎬**,這樣你就可以挖石頭了。
|
|
||||||
* 不同的工具可以打破不同種類的方塊。試試吧!
|
|
||||||
* 繼續玩你想玩的。盡情享受吧!
|
|
||||||
|
|
||||||
### 耕種
|
|
||||||
* 找到種子
|
|
||||||
* 合成鋤頭
|
|
||||||
* 用鋤頭右鍵點擊泥土或類似的方塊,創建農田
|
|
||||||
* 將種子放在農田上,看著它們長出來
|
|
||||||
* Collect plant when fully grown
|
|
||||||
* If near water, farmland becomes wet and speeds up growth
|
|
||||||
|
|
||||||
### Furnace
|
|
||||||
* Craft furnace
|
|
||||||
* Furnace allows you to obtain more items
|
|
||||||
* Upper slot must contain a smeltable item (example: iron ore)
|
|
||||||
* Lower slot must contain a fuel item (example: coal)
|
|
||||||
* See tooltips in crafting guide to learn about fuels and smeltable items
|
|
||||||
|
|
||||||
### Additional help
|
|
||||||
More help about the gameplay, blocks items and much more can be found from inside
|
|
||||||
the game. You can access the help from your inventory menu.
|
|
||||||
|
|
||||||
### Special items
|
|
||||||
The following items are interesting for Creative Mode and for adventure
|
|
||||||
map builders. They can not be obtained in-game or in the creative inventory.
|
|
||||||
|
|
||||||
* Barrier: `mcl_core:barrier`
|
|
||||||
|
|
||||||
Use the `/giveme` chat command to obtain them. See the in-game help for
|
|
||||||
an explanation.
|
|
||||||
|
|
||||||
#### Incomplete items
|
|
||||||
These items do not work yet, but you can get them with `/giveme` for testing:
|
|
||||||
|
|
||||||
* Minecart with Chest: `mcl_minecarts:chest_minecart`
|
|
||||||
* Minecart with Furnace: `mcl_minecarts:furnace_minecart`
|
|
||||||
* Minecart with Hopper: `mcl_minecarts:hopper_minecart`
|
|
||||||
* Minecart with Command Block: `mcl_minecarts:command_block_minecart`
|
|
||||||
|
|
||||||
## Installation
|
|
||||||
This game requires [Minetest](http://minetest.net) to run (version 5.0.0 or
|
|
||||||
later). So you need to install Minetest first. Only stable versions of Minetest
|
|
||||||
are officially supported.
|
|
||||||
There is no support for running MineClone 2 in development versions of Minetest.
|
|
||||||
|
|
||||||
To install MineClone 2 (if you haven't already), move this directory into the
|
|
||||||
“games” directory of your Minetest data directory. Consult the help of
|
|
||||||
Minetest to learn more.
|
|
||||||
|
|
||||||
## Project description
|
|
||||||
The main goal of **MineClone 2** is to be a clone of Minecraft and to be released as free software.
|
|
||||||
|
|
||||||
* **開發目標:我的世界, Java版, 版本 1.12**
|
|
||||||
* MineClone2還包括Minetest支持的Optifine功能。
|
|
||||||
* 後期Minecraft版本的功能可能會偷偷加入,但它們的優先級較低。
|
|
||||||
* 總的來說,Minecraft的目標是在Minetest目前允許的情況下進行克隆。
|
|
||||||
* 克隆Minecraft是最優先的。
|
|
||||||
* MineClone2將使用不同的圖形和聲音,但風格相似。
|
|
||||||
* 克隆界面沒有優先權。只會被粗略地模仿。
|
|
||||||
* 在Minetest中發現的局限性將在開發過程中被記錄和報告。
|
|
||||||
|
|
||||||
## 完成程度
|
|
||||||
該遊戲目前處於**alpha**階段。
|
|
||||||
它是可玩的,但尚未完成,預計會出現許多錯誤。
|
|
||||||
向後兼容性是**不能保證的**,更新你的世界可能會造成大大小小的bug(比如「缺少節點」的錯誤甚至崩潰)。
|
|
||||||
|
|
||||||
已經實現以下功能:
|
|
||||||
|
|
||||||
* 工具,武器
|
|
||||||
* 盔甲
|
|
||||||
* 合成和熔煉系統:2×2 合成格, 合成臺 (3×3 合成格), 熔爐, 合成教學
|
|
||||||
* 儲物箱,大型儲物箱,終界箱和界伏盒
|
|
||||||
* 熔爐, 漏斗
|
|
||||||
* 飢餓和飽食
|
|
||||||
* 大多數怪物和動物
|
|
||||||
* Minecraft 1.12中的所有礦物<!-- Minecraft 1.17 added copper, so here must mark the version is 1.12, then main README should also add this -->
|
|
||||||
* 主世界的大部分方塊
|
|
||||||
* 水和岩漿
|
|
||||||
* 天氣
|
|
||||||
* 28個生態域
|
|
||||||
* 地獄,熾熱的維度
|
|
||||||
* 紅石電路(部分)
|
|
||||||
* 礦車(部分)
|
|
||||||
* 狀態效果(部分)
|
|
||||||
* 經驗系統
|
|
||||||
* 附魔
|
|
||||||
* 釀造,藥水,藥水箭(部分)
|
|
||||||
* 船
|
|
||||||
* 火
|
|
||||||
* 建築方塊:樓梯、半磚、門、地板門、柵欄、柵欄門、牆。
|
|
||||||
* 時鐘
|
|
||||||
* 指南針
|
|
||||||
* 海綿
|
|
||||||
* 史萊姆方塊(不與紅石互動)
|
|
||||||
* 小植物和樹苗
|
|
||||||
* 染料
|
|
||||||
* 旗幟
|
|
||||||
* 裝飾方塊:玻璃、染色玻璃、玻璃片、鐵柵欄、陶土(和染色版本)、頭顱等
|
|
||||||
* 物品展示框
|
|
||||||
* 唱片機
|
|
||||||
* 床
|
|
||||||
* 物品欄
|
|
||||||
* 創造模式物品欄
|
|
||||||
* 生產
|
|
||||||
* 書和羽毛筆
|
|
||||||
* 一些服務器命令
|
|
||||||
* 還有更多!
|
|
||||||
|
|
||||||
以下是不完整的特性:
|
|
||||||
|
|
||||||
* 生成結構(特別是村莊)
|
|
||||||
* 一些怪物和動物
|
|
||||||
* 紅石系統
|
|
||||||
* 終界
|
|
||||||
* 特殊的礦車
|
|
||||||
* 一些不簡單的方塊和物品。
|
|
||||||
|
|
||||||
額外功能(在Minecraft 1.11中沒有)。
|
|
||||||
|
|
||||||
* 內置合成指南,向你展示製作和熔煉的配方
|
|
||||||
* 遊戲中的幫助系統包含了大量關於遊戲基礎知識、方塊、物品等方面的幫助。
|
|
||||||
* 臨時製作配方。它們的存在只是為了在你不在創造模式下時,提供一些其他無法獲得的物品。這些配方將隨著開發的進行和更多功能的出現而被移除。
|
|
||||||
* v6地圖生成器中箱子裡的樹苗。
|
|
||||||
* 完全可修改(得益於Minetest強大的Lua API)。
|
|
||||||
* 新的方塊和物品:
|
|
||||||
* 查找工具,顯示觸及事物的幫助
|
|
||||||
* 更多的半磚和樓梯
|
|
||||||
* 地獄磚柵欄門
|
|
||||||
* 紅地獄磚柵欄
|
|
||||||
* 紅地獄磚柵欄門
|
|
||||||
|
|
||||||
與Minecraft的技性術差異:
|
|
||||||
|
|
||||||
* 高度限制為31000格(遠高於Minecraft)
|
|
||||||
* 水平世界大小約為62000×62000格(比Minecraft中的小得多,但仍然非常大)。
|
|
||||||
* 仍然非常不完整和有問題
|
|
||||||
* 塊、物品、敵人和其他功能缺失。
|
|
||||||
* 一些項目的名稱略有不同,以便於區分。
|
|
||||||
* 唱片機的音樂不同
|
|
||||||
* 不同的材質(像素完美)
|
|
||||||
* 不同的聲音(各種來源)
|
|
||||||
* 不同的引擎(Minetest)
|
|
||||||
|
|
||||||
...最後,MineClone2是自由軟件!
|
|
||||||
|
|
||||||
## 錯誤報告
|
|
||||||
請在此處報告所有錯誤和缺少的功能:
|
|
||||||
|
|
||||||
<https://git.minetest.land/MineClone2/MineClone2/issues>
|
|
||||||
|
|
||||||
## Chating with the community
|
|
||||||
我們有Discord交流羣:
|
|
||||||
|
|
||||||
<https://discord.gg/84GKcxczG3>
|
|
||||||
|
|
||||||
|
|
||||||
## Other readme files
|
|
||||||
|
|
||||||
* `LICENSE.txt`:GPLv3許可文本
|
|
||||||
* `CONTRIBUTING.md`: 為那些想參與貢獻的人提供資訊
|
|
||||||
* `MISSING_ENGINE_FEATURES.md`: MineClone2需要改进,Minetest中缺失的功能列表。
|
|
||||||
* `API.md`: 關於MineClone2的API
|
|
||||||
|
|
||||||
## 參與者
|
|
||||||
有這麼多人要列出(抱歉)。詳情請查看各mod目錄。本節只是粗略地介紹了本遊戲的核心作者。
|
|
||||||
|
|
||||||
### 程式碼
|
|
||||||
* [Wuzzy](https://forum.minetest.net/memberlist.php?mode=viewprofile&u=3082):大多數mod的主要程序員(已退休)
|
|
||||||
* davedevils:MineClone 2的原型——「MineClone」的創造者
|
|
||||||
* [ex-bart](https://github.com/ex-bart):紅石比較器
|
|
||||||
* [Rootyjr](https://github.com/Rootyjr):釣竿和錯誤修復
|
|
||||||
* [aligator](https://github.com/aligator):改進門
|
|
||||||
* [ryvnf](https://github.com/ryvnf):爆炸物理
|
|
||||||
* MysticTempest:錯誤修復
|
|
||||||
* [bzoss](https://github.com/bzoss):狀態效果,釀造,藥水
|
|
||||||
* kay27 <kay27@bk.ru>:經驗系統,錯誤修復和優化(當前維護者)
|
|
||||||
* [EliasFleckenstein03](https://github.com/EliasFleckenstein03):終界水晶,附魔,燃燒的怪物/玩家,箱子的動畫和錯誤修復(當前維護者)
|
|
||||||
* epCode:更好的玩家動畫,新徽標
|
|
||||||
* 2mac:修復動力鐵軌的錯誤
|
|
||||||
* 更多:待篇寫 (請查看各mod目錄)
|
|
||||||
|
|
||||||
#### Mod(概括)
|
|
||||||
|
|
||||||
* `controls`: Arcelmi
|
|
||||||
* `flowlib`: Qwertymine13
|
|
||||||
* `walkover`: lordfingle
|
|
||||||
* `drippingwater`: kddekadenz
|
|
||||||
* `mobs_mc`: maikerumine, 22i and others
|
|
||||||
* `awards`: rubenwardy
|
|
||||||
* `screwdriver`: RealBadAngel, Maciej Kastakin, Minetest contributors
|
|
||||||
* `xpanes`: Minetest contributors
|
|
||||||
* `mesecons` mods: Jeija and contributors
|
|
||||||
* `wieldview`: Stuart Jones
|
|
||||||
* `mcl_meshhand`: Based on `newhand` by jordan4ibanez
|
|
||||||
* `mcl_mobs`: Based on Mobs Redo [`mobs`] by TenPlus1 and contributors
|
|
||||||
* 大多其他的Mod: Wuzzy
|
|
||||||
|
|
||||||
每个mod的详细參與者可以在各个mod目录中找到。
|
|
||||||
|
|
||||||
### 圖形
|
|
||||||
* [XSSheep](http://www.minecraftforum.net/members/XSSheep):主要作者;Minecraft 1.11的Pixel Perfection资源包的制作者
|
|
||||||
* [Wuzzy](https://forum.minetest.net/memberlist.php?mode=viewprofile&u=3082):主菜單圖像和各種編輯和添加的材質包
|
|
||||||
* [kingoscargames](https://github.com/kingoscargames):現有材質的各種編輯和添加
|
|
||||||
* [leorockway](https://github.com/leorockway):怪物紋理的一些編輯
|
|
||||||
* [xMrVizzy](https://minecraft.curseforge.com/members/xMrVizzy):釉陶(材質以後會被替換)
|
|
||||||
* yutyo <tanakinci2002@gmail.com>:MineClone2標志
|
|
||||||
* 其他:GUI圖片
|
|
||||||
|
|
||||||
### 翻譯
|
|
||||||
* Wuzzy:德語
|
|
||||||
* Rocher Laurent <rocherl@club-internet.fr>:法語
|
|
||||||
* wuniversales:西班牙語
|
|
||||||
* kay27 <kay27@bk.ru>:俄語
|
|
||||||
* [Emoji](https://toyshost2.ddns.net):繁體中文<!-- Hi, after the translate finish, this name should add to the main README too! -->
|
|
||||||
|
|
||||||
### 模型
|
|
||||||
* [22i](https://github.com/22i):所有模型的作者
|
|
||||||
* [tobyplowy](https://github.com/tobyplowy):對上述模型進行UV映射修復
|
|
||||||
|
|
||||||
### 聲音和音樂
|
|
||||||
多種來源。 有關詳細信息,請參見相應的mod目錄。
|
|
||||||
|
|
||||||
### 特殊感謝
|
|
||||||
|
|
||||||
* Wuzzy,感謝他啟動和維護MineClone2多年。
|
|
||||||
* celeron55,創建Minetest。
|
|
||||||
* Minetest的社區提供了大量的mods選擇,其中一些最終被納入MineClone 2。
|
|
||||||
* Jordach,為《Big Freaking Dig》的唱片機音樂合輯而來
|
|
||||||
* 花了太多時間為Minecraft Wiki寫作的工作狂。它是創建這個遊戲的寶貴資源。
|
|
||||||
* Notch和Jeb是Minecraft背后的主要力量
|
|
||||||
* XSSheep用於創建Pixel Perfection資源包。
|
|
||||||
* [22i](https://github.com/22i) 提供出色的模型和支持
|
|
||||||
* [maikerumine](http://github.com/maikerumine) 揭開生物和生物群落的序幕
|
|
||||||
|
|
||||||
## 給程序員的信息
|
|
||||||
你可以在「API.md」中找到有趣和有用的信息。
|
|
||||||
|
|
||||||
## 法律信息
|
|
||||||
這是一款粉絲開發的遊戲,並非由Mojang AB開發或認可。
|
|
||||||
|
|
||||||
複製是一種愛的行為。請複制和分享! <3
|
|
||||||
下面是詳細的法律條文,有需要的朋友可以參考。
|
|
||||||
|
|
||||||
### License of source code
|
|
||||||
```
|
|
||||||
MineClone 2 (by kay27, EliasFleckenstein, Wuzzy, davedevils and countless others)
|
|
||||||
is an imitation of Minecraft.
|
|
||||||
|
|
||||||
MineClone 2 is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU General Public License (in the LICENSE.txt file) for more
|
|
||||||
details.
|
|
||||||
|
|
||||||
In the mods you might find in the read-me or license
|
|
||||||
text files a different license. This counts as dual-licensing.
|
|
||||||
You can choose which license applies to you: Either the
|
|
||||||
license of MineClone 2 (GNU GPLv3) or the mod's license.
|
|
||||||
|
|
||||||
MineClone 2 is a direct continuation of the discontinued MineClone
|
|
||||||
project by davedevils.
|
|
||||||
|
|
||||||
Mod credits:
|
|
||||||
See `README.txt` or `README.md` in each mod directory for information about other authors.
|
|
||||||
For mods that do not have such a file, the license is the source code license
|
|
||||||
of MineClone 2 and the author is Wuzzy.
|
|
||||||
```
|
|
||||||
|
|
||||||
### License of media (textures and sounds)
|
|
||||||
```
|
|
||||||
No non-free licenses are used anywhere.
|
|
||||||
|
|
||||||
The textures, unless otherwise noted, are based on the Pixel Perfection resource pack for Minecraft 1.11,
|
|
||||||
authored by XSSheep. Most textures are verbatim copies, while some textures have been changed or redone
|
|
||||||
from scratch.
|
|
||||||
The glazed terracotta textures have been created by (MysticTempest)[https://github.com/MysticTempest].
|
|
||||||
Source: <https://www.planetminecraft.com/texture_pack/131pixel-perfection/>
|
|
||||||
License: [CC BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)
|
|
||||||
|
|
||||||
The main menu images are release under: [CC0](https://creativecommons.org/publicdomain/zero/1.0/)
|
|
||||||
|
|
||||||
All other files, unless mentioned otherwise, fall under:
|
|
||||||
Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
|
|
||||||
http://creativecommons.org/licenses/by-sa/3.0/
|
|
||||||
|
|
||||||
See README.txt in each mod directory for detailed information about other authors.
|
|
||||||
```
|
|
BIN
menu/Logo.blend
BIN
menu/icon.png
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 1.5 MiB |
Before Width: | Height: | Size: 830 KiB |
|
@ -207,10 +207,6 @@ end
|
||||||
function mcl_autogroup.can_harvest(nodename, toolname)
|
function mcl_autogroup.can_harvest(nodename, toolname)
|
||||||
local ndef = minetest.registered_nodes[nodename]
|
local ndef = minetest.registered_nodes[nodename]
|
||||||
|
|
||||||
if not ndef then
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
|
|
||||||
if minetest.get_item_group(nodename, "dig_immediate") >= 2 then
|
if minetest.get_item_group(nodename, "dig_immediate") >= 2 then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
|
@ -0,0 +1,674 @@
|
||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 29 June 2007
|
||||||
|
|
||||||
|
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The GNU General Public License is a free, copyleft license for
|
||||||
|
software and other kinds of works.
|
||||||
|
|
||||||
|
The licenses for most software and other practical works are designed
|
||||||
|
to take away your freedom to share and change the works. By contrast,
|
||||||
|
the GNU General Public License is intended to guarantee your freedom to
|
||||||
|
share and change all versions of a program--to make sure it remains free
|
||||||
|
software for all its users. We, the Free Software Foundation, use the
|
||||||
|
GNU General Public License for most of our software; it applies also to
|
||||||
|
any other work released this way by its authors. You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
them if you wish), that you receive source code or can get it if you
|
||||||
|
want it, that you can change the software or use pieces of it in new
|
||||||
|
free programs, and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to prevent others from denying you
|
||||||
|
these rights or asking you to surrender the rights. Therefore, you have
|
||||||
|
certain responsibilities if you distribute copies of the software, or if
|
||||||
|
you modify it: responsibilities to respect the freedom of others.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must pass on to the recipients the same
|
||||||
|
freedoms that you received. You must make sure that they, too, receive
|
||||||
|
or can get the source code. And you must show them these terms so they
|
||||||
|
know their rights.
|
||||||
|
|
||||||
|
Developers that use the GNU GPL protect your rights with two steps:
|
||||||
|
(1) assert copyright on the software, and (2) offer you this License
|
||||||
|
giving you legal permission to copy, distribute and/or modify it.
|
||||||
|
|
||||||
|
For the developers' and authors' protection, the GPL clearly explains
|
||||||
|
that there is no warranty for this free software. For both users' and
|
||||||
|
authors' sake, the GPL requires that modified versions be marked as
|
||||||
|
changed, so that their problems will not be attributed erroneously to
|
||||||
|
authors of previous versions.
|
||||||
|
|
||||||
|
Some devices are designed to deny users access to install or run
|
||||||
|
modified versions of the software inside them, although the manufacturer
|
||||||
|
can do so. This is fundamentally incompatible with the aim of
|
||||||
|
protecting users' freedom to change the software. The systematic
|
||||||
|
pattern of such abuse occurs in the area of products for individuals to
|
||||||
|
use, which is precisely where it is most unacceptable. Therefore, we
|
||||||
|
have designed this version of the GPL to prohibit the practice for those
|
||||||
|
products. If such problems arise substantially in other domains, we
|
||||||
|
stand ready to extend this provision to those domains in future versions
|
||||||
|
of the GPL, as needed to protect the freedom of users.
|
||||||
|
|
||||||
|
Finally, every program is threatened constantly by software patents.
|
||||||
|
States should not allow patents to restrict development and use of
|
||||||
|
software on general-purpose computers, but in those that do, we wish to
|
||||||
|
avoid the special danger that patents applied to a free program could
|
||||||
|
make it effectively proprietary. To prevent this, the GPL assures that
|
||||||
|
patents cannot be used to render the program non-free.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
"This License" refers to version 3 of the GNU General Public License.
|
||||||
|
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||||
|
works, such as semiconductor masks.
|
||||||
|
|
||||||
|
"The Program" refers to any copyrightable work licensed under this
|
||||||
|
License. Each licensee is addressed as "you". "Licensees" and
|
||||||
|
"recipients" may be individuals or organizations.
|
||||||
|
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work
|
||||||
|
in a fashion requiring copyright permission, other than the making of an
|
||||||
|
exact copy. The resulting work is called a "modified version" of the
|
||||||
|
earlier work or a work "based on" the earlier work.
|
||||||
|
|
||||||
|
A "covered work" means either the unmodified Program or a work based
|
||||||
|
on the Program.
|
||||||
|
|
||||||
|
To "propagate" a work means to do anything with it that, without
|
||||||
|
permission, would make you directly or secondarily liable for
|
||||||
|
infringement under applicable copyright law, except executing it on a
|
||||||
|
computer or modifying a private copy. Propagation includes copying,
|
||||||
|
distribution (with or without modification), making available to the
|
||||||
|
public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To "convey" a work means any kind of propagation that enables other
|
||||||
|
parties to make or receive copies. Mere interaction with a user through
|
||||||
|
a computer network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices"
|
||||||
|
to the extent that it includes a convenient and prominently visible
|
||||||
|
feature that (1) displays an appropriate copyright notice, and (2)
|
||||||
|
tells the user that there is no warranty for the work (except to the
|
||||||
|
extent that warranties are provided), that licensees may convey the
|
||||||
|
work under this License, and how to view a copy of this License. If
|
||||||
|
the interface presents a list of user commands or options, such as a
|
||||||
|
menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
|
||||||
|
The "source code" for a work means the preferred form of the work
|
||||||
|
for making modifications to it. "Object code" means any non-source
|
||||||
|
form of a work.
|
||||||
|
|
||||||
|
A "Standard Interface" means an interface that either is an official
|
||||||
|
standard defined by a recognized standards body, or, in the case of
|
||||||
|
interfaces specified for a particular programming language, one that
|
||||||
|
is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The "System Libraries" of an executable work include anything, other
|
||||||
|
than the work as a whole, that (a) is included in the normal form of
|
||||||
|
packaging a Major Component, but which is not part of that Major
|
||||||
|
Component, and (b) serves only to enable use of the work with that
|
||||||
|
Major Component, or to implement a Standard Interface for which an
|
||||||
|
implementation is available to the public in source code form. A
|
||||||
|
"Major Component", in this context, means a major essential component
|
||||||
|
(kernel, window system, and so on) of the specific operating system
|
||||||
|
(if any) on which the executable work runs, or a compiler used to
|
||||||
|
produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The "Corresponding Source" for a work in object code form means all
|
||||||
|
the source code needed to generate, install, and (for an executable
|
||||||
|
work) run the object code and to modify the work, including scripts to
|
||||||
|
control those activities. However, it does not include the work's
|
||||||
|
System Libraries, or general-purpose tools or generally available free
|
||||||
|
programs which are used unmodified in performing those activities but
|
||||||
|
which are not part of the work. For example, Corresponding Source
|
||||||
|
includes interface definition files associated with source files for
|
||||||
|
the work, and the source code for shared libraries and dynamically
|
||||||
|
linked subprograms that the work is specifically designed to require,
|
||||||
|
such as by intimate data communication or control flow between those
|
||||||
|
subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users
|
||||||
|
can regenerate automatically from other parts of the Corresponding
|
||||||
|
Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that
|
||||||
|
same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
|
||||||
|
All rights granted under this License are granted for the term of
|
||||||
|
copyright on the Program, and are irrevocable provided the stated
|
||||||
|
conditions are met. This License explicitly affirms your unlimited
|
||||||
|
permission to run the unmodified Program. The output from running a
|
||||||
|
covered work is covered by this License only if the output, given its
|
||||||
|
content, constitutes a covered work. This License acknowledges your
|
||||||
|
rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not
|
||||||
|
convey, without conditions so long as your license otherwise remains
|
||||||
|
in force. You may convey covered works to others for the sole purpose
|
||||||
|
of having them make modifications exclusively for you, or provide you
|
||||||
|
with facilities for running those works, provided that you comply with
|
||||||
|
the terms of this License in conveying all material for which you do
|
||||||
|
not control copyright. Those thus making or running the covered works
|
||||||
|
for you must do so exclusively on your behalf, under your direction
|
||||||
|
and control, on terms that prohibit them from making any copies of
|
||||||
|
your copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under
|
||||||
|
the conditions stated below. Sublicensing is not allowed; section 10
|
||||||
|
makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
|
||||||
|
No covered work shall be deemed part of an effective technological
|
||||||
|
measure under any applicable law fulfilling obligations under article
|
||||||
|
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||||
|
similar laws prohibiting or restricting circumvention of such
|
||||||
|
measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid
|
||||||
|
circumvention of technological measures to the extent such circumvention
|
||||||
|
is effected by exercising rights under this License with respect to
|
||||||
|
the covered work, and you disclaim any intention to limit operation or
|
||||||
|
modification of the work as a means of enforcing, against the work's
|
||||||
|
users, your or third parties' legal rights to forbid circumvention of
|
||||||
|
technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
|
||||||
|
You may convey verbatim copies of the Program's source code as you
|
||||||
|
receive it, in any medium, provided that you conspicuously and
|
||||||
|
appropriately publish on each copy an appropriate copyright notice;
|
||||||
|
keep intact all notices stating that this License and any
|
||||||
|
non-permissive terms added in accord with section 7 apply to the code;
|
||||||
|
keep intact all notices of the absence of any warranty; and give all
|
||||||
|
recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey,
|
||||||
|
and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
|
||||||
|
You may convey a work based on the Program, or the modifications to
|
||||||
|
produce it from the Program, in the form of source code under the
|
||||||
|
terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified
|
||||||
|
it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is
|
||||||
|
released under this License and any conditions added under section
|
||||||
|
7. This requirement modifies the requirement in section 4 to
|
||||||
|
"keep intact all notices".
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this
|
||||||
|
License to anyone who comes into possession of a copy. This
|
||||||
|
License will therefore apply, along with any applicable section 7
|
||||||
|
additional terms, to the whole of the work, and all its parts,
|
||||||
|
regardless of how they are packaged. This License gives no
|
||||||
|
permission to license the work in any other way, but it does not
|
||||||
|
invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display
|
||||||
|
Appropriate Legal Notices; however, if the Program has interactive
|
||||||
|
interfaces that do not display Appropriate Legal Notices, your
|
||||||
|
work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent
|
||||||
|
works, which are not by their nature extensions of the covered work,
|
||||||
|
and which are not combined with it such as to form a larger program,
|
||||||
|
in or on a volume of a storage or distribution medium, is called an
|
||||||
|
"aggregate" if the compilation and its resulting copyright are not
|
||||||
|
used to limit the access or legal rights of the compilation's users
|
||||||
|
beyond what the individual works permit. Inclusion of a covered work
|
||||||
|
in an aggregate does not cause this License to apply to the other
|
||||||
|
parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
|
||||||
|
You may convey a covered work in object code form under the terms
|
||||||
|
of sections 4 and 5, provided that you also convey the
|
||||||
|
machine-readable Corresponding Source under the terms of this License,
|
||||||
|
in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by the
|
||||||
|
Corresponding Source fixed on a durable physical medium
|
||||||
|
customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by a
|
||||||
|
written offer, valid for at least three years and valid for as
|
||||||
|
long as you offer spare parts or customer support for that product
|
||||||
|
model, to give anyone who possesses the object code either (1) a
|
||||||
|
copy of the Corresponding Source for all the software in the
|
||||||
|
product that is covered by this License, on a durable physical
|
||||||
|
medium customarily used for software interchange, for a price no
|
||||||
|
more than your reasonable cost of physically performing this
|
||||||
|
conveying of source, or (2) access to copy the
|
||||||
|
Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the
|
||||||
|
written offer to provide the Corresponding Source. This
|
||||||
|
alternative is allowed only occasionally and noncommercially, and
|
||||||
|
only if you received the object code with such an offer, in accord
|
||||||
|
with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated
|
||||||
|
place (gratis or for a charge), and offer equivalent access to the
|
||||||
|
Corresponding Source in the same way through the same place at no
|
||||||
|
further charge. You need not require recipients to copy the
|
||||||
|
Corresponding Source along with the object code. If the place to
|
||||||
|
copy the object code is a network server, the Corresponding Source
|
||||||
|
may be on a different server (operated by you or a third party)
|
||||||
|
that supports equivalent copying facilities, provided you maintain
|
||||||
|
clear directions next to the object code saying where to find the
|
||||||
|
Corresponding Source. Regardless of what server hosts the
|
||||||
|
Corresponding Source, you remain obligated to ensure that it is
|
||||||
|
available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided
|
||||||
|
you inform other peers where the object code and Corresponding
|
||||||
|
Source of the work are being offered to the general public at no
|
||||||
|
charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded
|
||||||
|
from the Corresponding Source as a System Library, need not be
|
||||||
|
included in conveying the object code work.
|
||||||
|
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any
|
||||||
|
tangible personal property which is normally used for personal, family,
|
||||||
|
or household purposes, or (2) anything designed or sold for incorporation
|
||||||
|
into a dwelling. In determining whether a product is a consumer product,
|
||||||
|
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||||
|
product received by a particular user, "normally used" refers to a
|
||||||
|
typical or common use of that class of product, regardless of the status
|
||||||
|
of the particular user or of the way in which the particular user
|
||||||
|
actually uses, or expects or is expected to use, the product. A product
|
||||||
|
is a consumer product regardless of whether the product has substantial
|
||||||
|
commercial, industrial or non-consumer uses, unless such uses represent
|
||||||
|
the only significant mode of use of the product.
|
||||||
|
|
||||||
|
"Installation Information" for a User Product means any methods,
|
||||||
|
procedures, authorization keys, or other information required to install
|
||||||
|
and execute modified versions of a covered work in that User Product from
|
||||||
|
a modified version of its Corresponding Source. The information must
|
||||||
|
suffice to ensure that the continued functioning of the modified object
|
||||||
|
code is in no case prevented or interfered with solely because
|
||||||
|
modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or
|
||||||
|
specifically for use in, a User Product, and the conveying occurs as
|
||||||
|
part of a transaction in which the right of possession and use of the
|
||||||
|
User Product is transferred to the recipient in perpetuity or for a
|
||||||
|
fixed term (regardless of how the transaction is characterized), the
|
||||||
|
Corresponding Source conveyed under this section must be accompanied
|
||||||
|
by the Installation Information. But this requirement does not apply
|
||||||
|
if neither you nor any third party retains the ability to install
|
||||||
|
modified object code on the User Product (for example, the work has
|
||||||
|
been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a
|
||||||
|
requirement to continue to provide support service, warranty, or updates
|
||||||
|
for a work that has been modified or installed by the recipient, or for
|
||||||
|
the User Product in which it has been modified or installed. Access to a
|
||||||
|
network may be denied when the modification itself materially and
|
||||||
|
adversely affects the operation of the network or violates the rules and
|
||||||
|
protocols for communication across the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided,
|
||||||
|
in accord with this section must be in a format that is publicly
|
||||||
|
documented (and with an implementation available to the public in
|
||||||
|
source code form), and must require no special password or key for
|
||||||
|
unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
|
||||||
|
"Additional permissions" are terms that supplement the terms of this
|
||||||
|
License by making exceptions from one or more of its conditions.
|
||||||
|
Additional permissions that are applicable to the entire Program shall
|
||||||
|
be treated as though they were included in this License, to the extent
|
||||||
|
that they are valid under applicable law. If additional permissions
|
||||||
|
apply only to part of the Program, that part may be used separately
|
||||||
|
under those permissions, but the entire Program remains governed by
|
||||||
|
this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option
|
||||||
|
remove any additional permissions from that copy, or from any part of
|
||||||
|
it. (Additional permissions may be written to require their own
|
||||||
|
removal in certain cases when you modify the work.) You may place
|
||||||
|
additional permissions on material, added by you to a covered work,
|
||||||
|
for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you
|
||||||
|
add to a covered work, you may (if authorized by the copyright holders of
|
||||||
|
that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the
|
||||||
|
terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or
|
||||||
|
author attributions in that material or in the Appropriate Legal
|
||||||
|
Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or
|
||||||
|
requiring that modified versions of such material be marked in
|
||||||
|
reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or
|
||||||
|
authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some
|
||||||
|
trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that
|
||||||
|
material by anyone who conveys the material (or modified versions of
|
||||||
|
it) with contractual assumptions of liability to the recipient, for
|
||||||
|
any liability that these contractual assumptions directly impose on
|
||||||
|
those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered "further
|
||||||
|
restrictions" within the meaning of section 10. If the Program as you
|
||||||
|
received it, or any part of it, contains a notice stating that it is
|
||||||
|
governed by this License along with a term that is a further
|
||||||
|
restriction, you may remove that term. If a license document contains
|
||||||
|
a further restriction but permits relicensing or conveying under this
|
||||||
|
License, you may add to a covered work material governed by the terms
|
||||||
|
of that license document, provided that the further restriction does
|
||||||
|
not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you
|
||||||
|
must place, in the relevant source files, a statement of the
|
||||||
|
additional terms that apply to those files, or a notice indicating
|
||||||
|
where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the
|
||||||
|
form of a separately written license, or stated as exceptions;
|
||||||
|
the above requirements apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
|
||||||
|
You may not propagate or modify a covered work except as expressly
|
||||||
|
provided under this License. Any attempt otherwise to propagate or
|
||||||
|
modify it is void, and will automatically terminate your rights under
|
||||||
|
this License (including any patent licenses granted under the third
|
||||||
|
paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your
|
||||||
|
license from a particular copyright holder is reinstated (a)
|
||||||
|
provisionally, unless and until the copyright holder explicitly and
|
||||||
|
finally terminates your license, and (b) permanently, if the copyright
|
||||||
|
holder fails to notify you of the violation by some reasonable means
|
||||||
|
prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is
|
||||||
|
reinstated permanently if the copyright holder notifies you of the
|
||||||
|
violation by some reasonable means, this is the first time you have
|
||||||
|
received notice of violation of this License (for any work) from that
|
||||||
|
copyright holder, and you cure the violation prior to 30 days after
|
||||||
|
your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the
|
||||||
|
licenses of parties who have received copies or rights from you under
|
||||||
|
this License. If your rights have been terminated and not permanently
|
||||||
|
reinstated, you do not qualify to receive new licenses for the same
|
||||||
|
material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
|
||||||
|
You are not required to accept this License in order to receive or
|
||||||
|
run a copy of the Program. Ancillary propagation of a covered work
|
||||||
|
occurring solely as a consequence of using peer-to-peer transmission
|
||||||
|
to receive a copy likewise does not require acceptance. However,
|
||||||
|
nothing other than this License grants you permission to propagate or
|
||||||
|
modify any covered work. These actions infringe copyright if you do
|
||||||
|
not accept this License. Therefore, by modifying or propagating a
|
||||||
|
covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
|
||||||
|
Each time you convey a covered work, the recipient automatically
|
||||||
|
receives a license from the original licensors, to run, modify and
|
||||||
|
propagate that work, subject to this License. You are not responsible
|
||||||
|
for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An "entity transaction" is a transaction transferring control of an
|
||||||
|
organization, or substantially all assets of one, or subdividing an
|
||||||
|
organization, or merging organizations. If propagation of a covered
|
||||||
|
work results from an entity transaction, each party to that
|
||||||
|
transaction who receives a copy of the work also receives whatever
|
||||||
|
licenses to the work the party's predecessor in interest had or could
|
||||||
|
give under the previous paragraph, plus a right to possession of the
|
||||||
|
Corresponding Source of the work from the predecessor in interest, if
|
||||||
|
the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the
|
||||||
|
rights granted or affirmed under this License. For example, you may
|
||||||
|
not impose a license fee, royalty, or other charge for exercise of
|
||||||
|
rights granted under this License, and you may not initiate litigation
|
||||||
|
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||||
|
any patent claim is infringed by making, using, selling, offering for
|
||||||
|
sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this
|
||||||
|
License of the Program or a work on which the Program is based. The
|
||||||
|
work thus licensed is called the contributor's "contributor version".
|
||||||
|
|
||||||
|
A contributor's "essential patent claims" are all patent claims
|
||||||
|
owned or controlled by the contributor, whether already acquired or
|
||||||
|
hereafter acquired, that would be infringed by some manner, permitted
|
||||||
|
by this License, of making, using, or selling its contributor version,
|
||||||
|
but do not include claims that would be infringed only as a
|
||||||
|
consequence of further modification of the contributor version. For
|
||||||
|
purposes of this definition, "control" includes the right to grant
|
||||||
|
patent sublicenses in a manner consistent with the requirements of
|
||||||
|
this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||||
|
patent license under the contributor's essential patent claims, to
|
||||||
|
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||||
|
propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a "patent license" is any express
|
||||||
|
agreement or commitment, however denominated, not to enforce a patent
|
||||||
|
(such as an express permission to practice a patent or covenant not to
|
||||||
|
sue for patent infringement). To "grant" such a patent license to a
|
||||||
|
party means to make such an agreement or commitment not to enforce a
|
||||||
|
patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license,
|
||||||
|
and the Corresponding Source of the work is not available for anyone
|
||||||
|
to copy, free of charge and under the terms of this License, through a
|
||||||
|
publicly available network server or other readily accessible means,
|
||||||
|
then you must either (1) cause the Corresponding Source to be so
|
||||||
|
available, or (2) arrange to deprive yourself of the benefit of the
|
||||||
|
patent license for this particular work, or (3) arrange, in a manner
|
||||||
|
consistent with the requirements of this License, to extend the patent
|
||||||
|
license to downstream recipients. "Knowingly relying" means you have
|
||||||
|
actual knowledge that, but for the patent license, your conveying the
|
||||||
|
covered work in a country, or your recipient's use of the covered work
|
||||||
|
in a country, would infringe one or more identifiable patents in that
|
||||||
|
country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or
|
||||||
|
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||||
|
covered work, and grant a patent license to some of the parties
|
||||||
|
receiving the covered work authorizing them to use, propagate, modify
|
||||||
|
or convey a specific copy of the covered work, then the patent license
|
||||||
|
you grant is automatically extended to all recipients of the covered
|
||||||
|
work and works based on it.
|
||||||
|
|
||||||
|
A patent license is "discriminatory" if it does not include within
|
||||||
|
the scope of its coverage, prohibits the exercise of, or is
|
||||||
|
conditioned on the non-exercise of one or more of the rights that are
|
||||||
|
specifically granted under this License. You may not convey a covered
|
||||||
|
work if you are a party to an arrangement with a third party that is
|
||||||
|
in the business of distributing software, under which you make payment
|
||||||
|
to the third party based on the extent of your activity of conveying
|
||||||
|
the work, and under which the third party grants, to any of the
|
||||||
|
parties who would receive the covered work from you, a discriminatory
|
||||||
|
patent license (a) in connection with copies of the covered work
|
||||||
|
conveyed by you (or copies made from those copies), or (b) primarily
|
||||||
|
for and in connection with specific products or compilations that
|
||||||
|
contain the covered work, unless you entered into that arrangement,
|
||||||
|
or that patent license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting
|
||||||
|
any implied license or other defenses to infringement that may
|
||||||
|
otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot convey a
|
||||||
|
covered work so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you may
|
||||||
|
not convey it at all. For example, if you agree to terms that obligate you
|
||||||
|
to collect a royalty for further conveying from those to whom you convey
|
||||||
|
the Program, the only way you could satisfy both those terms and this
|
||||||
|
License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Use with the GNU Affero General Public License.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, you have
|
||||||
|
permission to link or combine any covered work with a work licensed
|
||||||
|
under version 3 of the GNU Affero General Public License into a single
|
||||||
|
combined work, and to convey the resulting work. The terms of this
|
||||||
|
License will continue to apply to the part which is the covered work,
|
||||||
|
but the special requirements of the GNU Affero General Public License,
|
||||||
|
section 13, concerning interaction through a network will apply to the
|
||||||
|
combination as such.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of
|
||||||
|
the GNU General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the
|
||||||
|
Program specifies that a certain numbered version of the GNU General
|
||||||
|
Public License "or any later version" applies to it, you have the
|
||||||
|
option of following the terms and conditions either of that numbered
|
||||||
|
version or of any later version published by the Free Software
|
||||||
|
Foundation. If the Program does not specify a version number of the
|
||||||
|
GNU General Public License, you may choose any version ever published
|
||||||
|
by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future
|
||||||
|
versions of the GNU General Public License can be used, that proxy's
|
||||||
|
public statement of acceptance of a version permanently authorizes you
|
||||||
|
to choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different
|
||||||
|
permissions. However, no additional obligations are imposed on any
|
||||||
|
author or copyright holder as a result of your choosing to follow a
|
||||||
|
later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||||
|
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||||
|
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||||
|
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||||
|
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||||
|
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||||
|
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||||
|
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||||
|
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||||
|
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||||
|
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||||
|
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
|
||||||
|
If the disclaimer of warranty and limitation of liability provided
|
||||||
|
above cannot be given local legal effect according to their terms,
|
||||||
|
reviewing courts shall apply local law that most closely approximates
|
||||||
|
an absolute waiver of all civil liability in connection with the
|
||||||
|
Program, unless a warranty or assumption of liability accompanies a
|
||||||
|
copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
state the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If the program does terminal interaction, make it output a short
|
||||||
|
notice like this when it starts in an interactive mode:
|
||||||
|
|
||||||
|
<program> Copyright (C) <year> <name of author>
|
||||||
|
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it
|
||||||
|
under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||||
|
parts of the General Public License. Of course, your program's commands
|
||||||
|
might be different; for a GUI interface, you would use an "about box".
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or school,
|
||||||
|
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||||
|
For more information on this, and how to apply and follow the GNU GPL, see
|
||||||
|
<https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
The GNU General Public License does not permit incorporating your program
|
||||||
|
into proprietary programs. If your program is a subroutine library, you
|
||||||
|
may consider it more useful to permit linking proprietary applications with
|
||||||
|
the library. If this is what you want to do, use the GNU Lesser General
|
||||||
|
Public License instead of this License. But first, please read
|
||||||
|
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
|
@ -0,0 +1,3 @@
|
||||||
|
# mcl_bubble_column
|
||||||
|
bubble_column mod for mineclone2
|
||||||
|
put in /mtdir/games/mineclone2/mods/CORE/
|
|
@ -0,0 +1,369 @@
|
||||||
|
local S = minetest.get_translator("mcl_bubble_column")
|
||||||
|
|
||||||
|
local WATER_ALPHA = 179
|
||||||
|
local WATER_VISC = 1
|
||||||
|
local LAVA_VISC = 7
|
||||||
|
local LIGHT_LAVA = minetest.LIGHT_MAX
|
||||||
|
local USE_TEXTURE_ALPHA
|
||||||
|
if minetest.features.use_texture_alpha_string_modes then
|
||||||
|
USE_TEXTURE_ALPHA = "blend"
|
||||||
|
WATER_ALPHA = nil
|
||||||
|
end
|
||||||
|
|
||||||
|
minetest.register_node("mcl_bubble_column:water_flowing_up", {
|
||||||
|
description = S("Bubble Column Flowing Water (up)"),
|
||||||
|
_doc_items_create_entry = false,
|
||||||
|
wield_image = "default_water_flowing_animated.png^[verticalframe:64:0",
|
||||||
|
drawtype = "flowingliquid",
|
||||||
|
tiles = {"default_water_flowing_animated.png^[verticalframe:64:0"},
|
||||||
|
special_tiles = {
|
||||||
|
{
|
||||||
|
image="default_water_flowing_animated.png",
|
||||||
|
backface_culling=false,
|
||||||
|
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=4.0}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
image="default_water_flowing_animated.png",
|
||||||
|
backface_culling=false,
|
||||||
|
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=4.0}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
sounds = mcl_sounds.node_sound_water_defaults(),
|
||||||
|
is_ground_content = false,
|
||||||
|
alpha = WATER_ALPHA,
|
||||||
|
use_texture_alpha = USE_TEXTURE_ALPHA,
|
||||||
|
paramtype = "light",
|
||||||
|
paramtype2 = "flowingliquid",
|
||||||
|
walkable = false,
|
||||||
|
pointable = false,
|
||||||
|
diggable = false,
|
||||||
|
buildable_to = true,
|
||||||
|
drop = "",
|
||||||
|
drowning = 4,
|
||||||
|
liquidtype = "flowing",
|
||||||
|
liquid_alternative_flowing = "mcl_bubble_column:water_flowing_up",
|
||||||
|
liquid_alternative_source = "mcl_bubble_column:water_source_up",
|
||||||
|
liquid_viscosity = WATER_VISC,
|
||||||
|
liquid_range = 7,
|
||||||
|
post_effect_color = {a=209, r=0x03, g=0x3C, b=0x5C},
|
||||||
|
groups = { water=3, liquid=3, puts_out_fire=1, not_in_creative_inventory=1, freezes=1, melt_around=1, dig_by_piston=1},
|
||||||
|
_mcl_blast_resistance = 100,
|
||||||
|
-- Hardness intentionally set to infinite instead of 100 (Minecraft value) to avoid problems in creative mode
|
||||||
|
_mcl_hardness = -1,
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("mcl_bubble_column:water_source_up", {
|
||||||
|
description = S("Bubble Column Water Source"),
|
||||||
|
_doc_items_entry_name = S("Water"),
|
||||||
|
_doc_items_longdesc = S("Boosts you up"),
|
||||||
|
_doc_items_hidden = false,
|
||||||
|
drawtype = "liquid",
|
||||||
|
tiles = {
|
||||||
|
{name="default_water_source_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=5.0}}
|
||||||
|
},
|
||||||
|
special_tiles = {
|
||||||
|
-- New-style water source material (mostly unused)
|
||||||
|
{
|
||||||
|
name="default_water_source_animated.png",
|
||||||
|
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=5.0},
|
||||||
|
backface_culling = false,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
sounds = mcl_sounds.node_sound_water_defaults(),
|
||||||
|
is_ground_content = false,
|
||||||
|
alpha = WATER_ALPHA,
|
||||||
|
use_texture_alpha = USE_TEXTURE_ALPHA,
|
||||||
|
paramtype = "light",
|
||||||
|
walkable = false,
|
||||||
|
pointable = false,
|
||||||
|
diggable = false,
|
||||||
|
buildable_to = true,
|
||||||
|
drop = "",
|
||||||
|
drowning = 4,
|
||||||
|
liquidtype = "source",
|
||||||
|
liquid_alternative_flowing = "mcl_bubble_column:water_flowing_up",
|
||||||
|
liquid_alternative_source = "mcl_bubble_column:water_source_up",
|
||||||
|
liquid_viscosity = WATER_VISC,
|
||||||
|
liquid_range = 7,
|
||||||
|
post_effect_color = {a=209, r=0x03, g=0x3C, b=0x5C},
|
||||||
|
stack_max = 64,
|
||||||
|
groups = { water=3, liquid=3, puts_out_fire=1, not_in_creative_inventory=1, dig_by_piston=1},
|
||||||
|
_mcl_blast_resistance = 100,
|
||||||
|
-- Hardness intentionally set to infinite instead of 100 (Minecraft value) to avoid problems in creative mode
|
||||||
|
_mcl_hardness = -1,
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_globalstep(function()
|
||||||
|
for _,player in ipairs(minetest.get_connected_players()) do
|
||||||
|
local name = player:get_player_name()
|
||||||
|
local pos = player:get_pos()
|
||||||
|
local node = minetest.get_node(pos)
|
||||||
|
if node.name == "mcl_bubble_column:water_source_up" then
|
||||||
|
local velocity = player:get_player_velocity()
|
||||||
|
local velocityadd = {x = 0, y = 3, z = 0}
|
||||||
|
player:add_player_velocity(velocityadd)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
|
||||||
|
minetest.register_abm{
|
||||||
|
label = "entities go up",
|
||||||
|
nodenames = {"mcl_bubble_column:water_source_up"},
|
||||||
|
interval = 0.05,
|
||||||
|
chance = 1,
|
||||||
|
action = function(pos)
|
||||||
|
for _,entity in pairs(minetest.get_objects_inside_radius(pos, 1.5)) do
|
||||||
|
local pos = entity:get_pos()
|
||||||
|
local velocity = entity:get_velocity()
|
||||||
|
local velocityadd = {x = 0, y = 2, z = 0}
|
||||||
|
entity:add_velocity(velocityadd)
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|
||||||
|
minetest.register_abm{
|
||||||
|
label = "bubbles go up",
|
||||||
|
nodenames = {"mcl_bubble_column:water_source_up"},
|
||||||
|
interval = 1,
|
||||||
|
chance = 1,
|
||||||
|
action = function(pos)
|
||||||
|
local uppos = vector.add(pos, {x = 0, y = 1, z = 0})
|
||||||
|
local upposnode = minetest.get_node(uppos)
|
||||||
|
if upposnode.name == "mcl_core:water_source" then
|
||||||
|
minetest.set_node(uppos, {name = "mcl_bubble_column:water_source_up"})
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|
||||||
|
minetest.register_abm{
|
||||||
|
label = "start bubble column",
|
||||||
|
nodenames = {"mcl_nether:soul_sand"},
|
||||||
|
interval = 1,
|
||||||
|
chance = 1,
|
||||||
|
action = function(pos)
|
||||||
|
local downpos = vector.add(pos, {x = 0, y = 1, z = 0})
|
||||||
|
local downposnode = minetest.get_node(downpos)
|
||||||
|
if downposnode.name == "mcl_core:water_source" then
|
||||||
|
minetest.set_node(downpos, {name = "mcl_bubble_column:water_source_up"})
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|
||||||
|
minetest.register_abm{
|
||||||
|
label = "stop bubble column",
|
||||||
|
nodenames = {"mcl_bubble_column:water_source_up"},
|
||||||
|
interval = 1,
|
||||||
|
chance = 1,
|
||||||
|
action = function(pos)
|
||||||
|
local downpos = vector.add(pos, {x = 0, y = -1, z = 0})
|
||||||
|
local downposnode = minetest.get_node(downpos)
|
||||||
|
if downposnode.name == "mcl_core:water_source" then
|
||||||
|
minetest.set_node(pos, {name = "mcl_core:water_source"})
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
minetest.register_abm{
|
||||||
|
label = "bubbles up",
|
||||||
|
nodenames = {"mcl_bubble_column:water_source_up"},
|
||||||
|
interval = 1,
|
||||||
|
chance = 1,
|
||||||
|
action = function(pos)
|
||||||
|
minetest.add_particlespawner({
|
||||||
|
amount = 10,
|
||||||
|
time = 0.15,
|
||||||
|
minpos = vector.add(pos, { x = -0.25, y = 0, z = -0.25 }),
|
||||||
|
maxpos = vector.add(pos, { x = 0.25, y = 0, z = 0.75 }),
|
||||||
|
attached = player,
|
||||||
|
minvel = {x = -0.2, y = 0, z = -0.2},
|
||||||
|
maxvel = {x = 0.5, y = 0, z = 0.5},
|
||||||
|
minacc = {x = -0.4, y = 4, z = -0.4},
|
||||||
|
maxacc = {x = 0.5, y = 1, z = 0.5},
|
||||||
|
minexptime = 0.3,
|
||||||
|
maxexptime = 0.8,
|
||||||
|
minsize = 0.7,
|
||||||
|
maxsize = 2.4,
|
||||||
|
texture = "mcl_particles_bubble.png"
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
--whirlpools(take you down)
|
||||||
|
|
||||||
|
|
||||||
|
minetest.register_node("mcl_bubble_column:water_flowing_down", {
|
||||||
|
description = S("Bubble Column Flowing Water(down)"),
|
||||||
|
_doc_items_create_entry = false,
|
||||||
|
wield_image = "default_water_flowing_animated.png^[verticalframe:64:0",
|
||||||
|
drawtype = "flowingliquid",
|
||||||
|
tiles = {"default_water_flowing_animated.png^[verticalframe:64:0"},
|
||||||
|
special_tiles = {
|
||||||
|
{
|
||||||
|
image="default_water_flowing_animated.png",
|
||||||
|
backface_culling=false,
|
||||||
|
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=4.0}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
image="default_water_flowing_animated.png",
|
||||||
|
backface_culling=false,
|
||||||
|
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=4.0}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
sounds = mcl_sounds.node_sound_water_defaults(),
|
||||||
|
is_ground_content = false,
|
||||||
|
alpha = WATER_ALPHA,
|
||||||
|
use_texture_alpha = USE_TEXTURE_ALPHA,
|
||||||
|
paramtype = "light",
|
||||||
|
paramtype2 = "flowingliquid",
|
||||||
|
walkable = false,
|
||||||
|
pointable = false,
|
||||||
|
diggable = false,
|
||||||
|
buildable_to = true,
|
||||||
|
drop = "",
|
||||||
|
drowning = 4,
|
||||||
|
liquidtype = "flowing",
|
||||||
|
liquid_alternative_flowing = "mcl_bubble_column:water_flowing_down",
|
||||||
|
liquid_alternative_source = "mcl_bubble_column:water_source_down",
|
||||||
|
liquid_viscosity = WATER_VISC,
|
||||||
|
liquid_range = 7,
|
||||||
|
post_effect_color = {a=209, r=0x03, g=0x3C, b=0x5C},
|
||||||
|
groups = { water=3, liquid=3, puts_out_fire=1, not_in_creative_inventory=1, freezes=1, melt_around=1, dig_by_piston=1},
|
||||||
|
_mcl_blast_resistance = 100,
|
||||||
|
-- Hardness intentionally set to infinite instead of 100 (Minecraft value) to avoid problems in creative mode
|
||||||
|
_mcl_hardness = -1,
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("mcl_bubble_column:water_source_down", {
|
||||||
|
description = S("Whirlpool Water Source"),
|
||||||
|
_doc_items_entry_name = S("Water"),
|
||||||
|
_doc_items_longdesc = S("Takes you down!"),
|
||||||
|
_doc_items_hidden = false,
|
||||||
|
drawtype = "liquid",
|
||||||
|
tiles = {
|
||||||
|
{name="default_water_source_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=5.0}}
|
||||||
|
},
|
||||||
|
special_tiles = {
|
||||||
|
-- New-style water source material (mostly unused)
|
||||||
|
{
|
||||||
|
name="default_water_source_animated.png",
|
||||||
|
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=5.0},
|
||||||
|
backface_culling = false,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
sounds = mcl_sounds.node_sound_water_defaults(),
|
||||||
|
is_ground_content = false,
|
||||||
|
alpha = WATER_ALPHA,
|
||||||
|
use_texture_alpha = USE_TEXTURE_ALPHA,
|
||||||
|
paramtype = "light",
|
||||||
|
walkable = false,
|
||||||
|
pointable = false,
|
||||||
|
diggable = false,
|
||||||
|
buildable_to = true,
|
||||||
|
drop = "",
|
||||||
|
drowning = 4,
|
||||||
|
liquidtype = "source",
|
||||||
|
liquid_alternative_flowing = "mcl_bubble_column:water_flowing_down",
|
||||||
|
liquid_alternative_source = "mcl_bubble_column:water_source_down",
|
||||||
|
liquid_viscosity = WATER_VISC,
|
||||||
|
liquid_range = 7,
|
||||||
|
post_effect_color = {a=209, r=0x03, g=0x3C, b=0x5C},
|
||||||
|
stack_max = 64,
|
||||||
|
groups = { water=3, liquid=3, puts_out_fire=1, not_in_creative_inventory=1, dig_by_piston=1},
|
||||||
|
_mcl_blast_resistance = 100,
|
||||||
|
-- Hardness intentionally set to infinite instead of 100 (Minecraft value) to avoid problems in creative mode
|
||||||
|
_mcl_hardness = -1,
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
minetest.register_globalstep(function()
|
||||||
|
for _,player in ipairs(minetest.get_connected_players()) do
|
||||||
|
local name = player:get_player_name()
|
||||||
|
local pos = player:get_pos()
|
||||||
|
local node = minetest.get_node(pos)
|
||||||
|
if node.name == "mcl_bubble_column:water_source_down" then
|
||||||
|
local velocity = player:get_player_velocity()
|
||||||
|
local velocityadd = {x = 0, y = -0.5, z = 0}
|
||||||
|
player:add_player_velocity(velocityadd)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
|
||||||
|
|
||||||
|
minetest.register_abm{
|
||||||
|
label = "entities go down",
|
||||||
|
nodenames = {"mcl_bubble_column:water_source_down"},
|
||||||
|
interval = 0.05,
|
||||||
|
chance = 1,
|
||||||
|
action = function(pos)
|
||||||
|
for _,entity in pairs(minetest.get_objects_inside_radius(pos, 1.5)) do
|
||||||
|
local pos = entity:get_pos()
|
||||||
|
local velocity = entity:get_velocity()
|
||||||
|
local velocityadd = {x = 0, y = -3, z = 0}
|
||||||
|
entity:add_velocity(velocityadd)
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|
||||||
|
minetest.register_abm{
|
||||||
|
label = "whirlpools go up",
|
||||||
|
nodenames = {"mcl_bubble_column:water_source_down"},
|
||||||
|
interval = 1,
|
||||||
|
chance = 1,
|
||||||
|
action = function(pos)
|
||||||
|
local uppos = vector.add(pos, {x = 0, y = 1, z = 0})
|
||||||
|
local upposnode = minetest.get_node(uppos)
|
||||||
|
if upposnode.name == "mcl_core:water_source" then
|
||||||
|
minetest.set_node(uppos, {name = "mcl_bubble_column:water_source_down"})
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|
||||||
|
minetest.register_abm{
|
||||||
|
label = "start whirlpool",
|
||||||
|
nodenames = {"mcl_nether:magma"},
|
||||||
|
interval = 1,
|
||||||
|
chance = 1,
|
||||||
|
action = function(pos)
|
||||||
|
local downpos = vector.add(pos, {x = 0, y = 1, z = 0})
|
||||||
|
local downposnode = minetest.get_node(downpos)
|
||||||
|
if downposnode.name == "mcl_core:water_source" then
|
||||||
|
minetest.set_node(downpos, {name = "mcl_bubble_column:water_source_down"})
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|
||||||
|
minetest.register_abm{
|
||||||
|
label = "stop whirlpool",
|
||||||
|
nodenames = {"mcl_bubble_column:water_source_down"},
|
||||||
|
interval = 1,
|
||||||
|
chance = 1,
|
||||||
|
action = function(pos)
|
||||||
|
local downpos = vector.add(pos, {x = 0, y = -1, z = 0})
|
||||||
|
local downposnode = minetest.get_node(downpos)
|
||||||
|
if downposnode.name == "mcl_core:water_source" then
|
||||||
|
minetest.set_node(pos, {name = "mcl_core:water_source"})
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
minetest.register_abm{
|
||||||
|
label = "bubbles down",
|
||||||
|
nodenames = {"mcl_bubble_column:water_source_down"},
|
||||||
|
interval = 1,
|
||||||
|
chance = 1,
|
||||||
|
action = function(pos)
|
||||||
|
minetest.add_particlespawner({
|
||||||
|
amount = 10,
|
||||||
|
time = 0.15,
|
||||||
|
minpos = vector.add(pos, { x = -0.25, y = 0, z = -0.25 }),
|
||||||
|
maxpos = vector.add(pos, { x = 0.25, y = 0, z = 0.75 }),
|
||||||
|
attached = player,
|
||||||
|
minvel = {x = -0.2, y = 0, z = -0.2},
|
||||||
|
maxvel = {x = 0.5, y = 0, z = 0.5},
|
||||||
|
minacc = {x = -0.4, y = -4, z = -0.4},
|
||||||
|
maxacc = {x = 0.5, y = -1, z = 0.5},
|
||||||
|
minexptime = 0.3,
|
||||||
|
maxexptime = 0.8,
|
||||||
|
minsize = 0.7,
|
||||||
|
maxsize = 2.4,
|
||||||
|
texture = "mcl_particles_bubble.png"
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
}
|
|
@ -1,15 +0,0 @@
|
||||||
# mcl_damage
|
|
||||||
|
|
||||||
This mod is intended to overall minetest's native damage system, to provide a better integration between features that deals with entities' health.
|
|
||||||
|
|
||||||
WARNING: Not using it inside your mods may cause strange bugs (using the native damage system may cause conflicts with this system).
|
|
||||||
|
|
||||||
## Callbacks
|
|
||||||
|
|
||||||
To modify the amount of damage made by something:
|
|
||||||
|
|
||||||
```lua
|
|
||||||
--obj: an ObjectRef
|
|
||||||
mcl_damage.register_modifier(function(obj, damage, reason)
|
|
||||||
end, 0)
|
|
||||||
```
|
|
|
@ -1,2 +0,0 @@
|
||||||
# textdomain:mcl_explosions
|
|
||||||
@1 was caught in an explosion.=@1 被炸飛了
|
|
|
@ -58,27 +58,26 @@ function mcl_loot.get_loot(loot_definitions, pr)
|
||||||
end
|
end
|
||||||
if item then
|
if item then
|
||||||
local itemstring = item.itemstring
|
local itemstring = item.itemstring
|
||||||
|
local itemstack = item.itemstack
|
||||||
if itemstring then
|
if itemstring then
|
||||||
local stack = ItemStack(itemstring)
|
|
||||||
|
|
||||||
if item.amount_min and item.amount_max then
|
if item.amount_min and item.amount_max then
|
||||||
stack:set_count(pr:next(item.amount_min, item.amount_max))
|
itemstring = itemstring .. " " .. pr:next(item.amount_min, item.amount_max)
|
||||||
end
|
end
|
||||||
|
|
||||||
if item.wear_min and item.wear_max then
|
if item.wear_min and item.wear_max then
|
||||||
-- Sadly, PseudoRandom only allows very narrow ranges, so we set wear in steps of 10
|
-- Sadly, PseudoRandom only allows very narrow ranges, so we set wear in steps of 10
|
||||||
local wear_min = math.floor(item.wear_min / 10)
|
local wear_min = math.floor(item.wear_min / 10)
|
||||||
local wear_max = math.floor(item.wear_max / 10)
|
local wear_max = math.floor(item.wear_max / 10)
|
||||||
|
local wear = pr:next(wear_min, wear_max) * 10
|
||||||
|
|
||||||
stack:set_wear(pr:next(wear_min, wear_max) * 10)
|
if not item.amount_min and not item.amount_max then
|
||||||
|
itemstring = itemstring .. " 1"
|
||||||
|
end
|
||||||
|
|
||||||
|
itemstring = itemstring .. " " .. tostring(wear)
|
||||||
end
|
end
|
||||||
|
table.insert(items, itemstring)
|
||||||
if item.func then
|
elseif itemstack then
|
||||||
item.func(stack, pr)
|
table.insert(items, itemstack)
|
||||||
end
|
|
||||||
|
|
||||||
table.insert(items, stack)
|
|
||||||
else
|
else
|
||||||
minetest.log("error", "[mcl_loot] INTERNAL ERROR! Failed to select random loot item!")
|
minetest.log("error", "[mcl_loot] INTERNAL ERROR! Failed to select random loot item!")
|
||||||
end
|
end
|
||||||
|
|
Before Width: | Height: | Size: 148 B |
Before Width: | Height: | Size: 154 B |
Before Width: | Height: | Size: 155 B |
Before Width: | Height: | Size: 165 B |
|
@ -1,27 +1,5 @@
|
||||||
mcl_util = {}
|
mcl_util = {}
|
||||||
|
|
||||||
-- Updates all values in t using values from to*.
|
|
||||||
function table.update(t, ...)
|
|
||||||
for _, to in ipairs{...} do
|
|
||||||
for k,v in pairs(to) do
|
|
||||||
t[k] = v
|
|
||||||
end
|
|
||||||
end
|
|
||||||
return t
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Updates nil values in t using values from to*.
|
|
||||||
function table.update_nil(t, ...)
|
|
||||||
for _, to in ipairs{...} do
|
|
||||||
for k,v in pairs(to) do
|
|
||||||
if t[k] == nil then
|
|
||||||
t[k] = v
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
return t
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Based on minetest.rotate_and_place
|
-- Based on minetest.rotate_and_place
|
||||||
|
|
||||||
--[[
|
--[[
|
||||||
|
@ -357,32 +335,6 @@ function mcl_util.get_first_occupied_inventory_slot(inventory, listname)
|
||||||
return mcl_util.get_eligible_transfer_item_slot(inventory, listname)
|
return mcl_util.get_eligible_transfer_item_slot(inventory, listname)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function drop_item_stack(pos, stack)
|
|
||||||
if not stack or stack:is_empty() then return end
|
|
||||||
local drop_offset = vector.new(math.random() - 0.5, 0, math.random() - 0.5)
|
|
||||||
minetest.add_item(vector.add(pos, drop_offset), stack)
|
|
||||||
end
|
|
||||||
|
|
||||||
function mcl_util.drop_items_from_meta_container(listname)
|
|
||||||
return function(pos, oldnode, oldmetadata)
|
|
||||||
if oldmetadata and oldmetadata.inventory then
|
|
||||||
-- process in after_dig_node callback
|
|
||||||
local main = oldmetadata.inventory.main
|
|
||||||
if not main then return end
|
|
||||||
for _, stack in pairs(main) do
|
|
||||||
drop_item_stack(pos, stack)
|
|
||||||
end
|
|
||||||
else
|
|
||||||
local meta = minetest.get_meta(pos)
|
|
||||||
local inv = meta:get_inventory()
|
|
||||||
for i = 1, inv:get_size("main") do
|
|
||||||
drop_item_stack(pos, inv:get_stack("main", i))
|
|
||||||
end
|
|
||||||
meta:from_table()
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Returns true if item (itemstring or ItemStack) can be used as a furnace fuel.
|
-- Returns true if item (itemstring or ItemStack) can be used as a furnace fuel.
|
||||||
-- Returns false otherwise
|
-- Returns false otherwise
|
||||||
function mcl_util.is_fuel(item)
|
function mcl_util.is_fuel(item)
|
||||||
|
@ -504,9 +456,7 @@ function mcl_util.calculate_durability(itemstack)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
uses = uses or (next(itemstack:get_tool_capabilities().groupcaps) or {}).uses
|
||||||
local _, groupcap = next(itemstack:get_tool_capabilities().groupcaps)
|
|
||||||
uses = uses or (groupcap or {}).uses
|
|
||||||
end
|
end
|
||||||
|
|
||||||
return uses or 0
|
return uses or 0
|
||||||
|
@ -588,25 +538,3 @@ function mcl_util.get_object_name(object)
|
||||||
return luaentity.nametag and luaentity.nametag ~= "" and luaentity.nametag or luaentity.description or luaentity.name
|
return luaentity.nametag and luaentity.nametag ~= "" and luaentity.nametag or luaentity.description or luaentity.name
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function mcl_util.replace_mob(obj, mob)
|
|
||||||
local rot = obj:get_yaw()
|
|
||||||
local pos = obj:get_pos()
|
|
||||||
obj:remove()
|
|
||||||
obj = minetest.add_entity(pos, mob)
|
|
||||||
obj:set_yaw(rot)
|
|
||||||
return obj
|
|
||||||
end
|
|
||||||
|
|
||||||
function mcl_util.get_pointed_thing(player, liquid)
|
|
||||||
local pos = vector.offset(player:get_pos(), 0, player:get_properties().eye_height, 0)
|
|
||||||
local look_dir = vector.multiply(player:get_look_dir(), 5)
|
|
||||||
local pos2 = vector.add(pos, look_dir)
|
|
||||||
local ray = minetest.raycast(pos, pos2, false, liquid)
|
|
||||||
|
|
||||||
if ray then
|
|
||||||
for pointed_thing in ray do
|
|
||||||
return pointed_thing
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ Params:
|
||||||
|
|
||||||
* pos: position
|
* pos: position
|
||||||
|
|
||||||
## mcl_worlds.y_to_layer(y)
|
## mcl_worlds.y_to_layer(y)
|
||||||
This function is used to calculate the minetest y layer and dimension of the given <y> minecraft layer.
|
This function is used to calculate the minetest y layer and dimension of the given <y> minecraft layer.
|
||||||
Mainly used for ore generation.
|
Mainly used for ore generation.
|
||||||
Takes an Y coordinate as input and returns:
|
Takes an Y coordinate as input and returns:
|
||||||
|
@ -78,4 +78,4 @@ Table containing all function registered with mcl_worlds.register_on_dimension_c
|
||||||
Notify this mod of a dimension change of <player> to <dimension>
|
Notify this mod of a dimension change of <player> to <dimension>
|
||||||
|
|
||||||
* player: player, player who changed the dimension
|
* player: player, player who changed the dimension
|
||||||
* dimension: string, new dimension ("overworld", "nether", "end", "void")
|
* dimension: string, new dimension ("overworld", "nether", "end", "void")
|
|
@ -38,32 +38,18 @@ function image:encode_header()
|
||||||
self.data = self.data
|
self.data = self.data
|
||||||
.. string.char(0) -- image id
|
.. string.char(0) -- image id
|
||||||
.. string.char(0) -- color map type
|
.. string.char(0) -- color map type
|
||||||
.. string.char(10) -- image type (RLE RGB = 10)
|
.. string.char(2) -- image type (uncompressed true-color image = 2)
|
||||||
self:encode_colormap_spec() -- color map specification
|
self:encode_colormap_spec() -- color map specification
|
||||||
self:encode_image_spec() -- image specification
|
self:encode_image_spec() -- image specification
|
||||||
end
|
end
|
||||||
|
|
||||||
function image:encode_data()
|
function image:encode_data()
|
||||||
local current_pixel = ''
|
|
||||||
local previous_pixel = ''
|
|
||||||
local count = 1
|
|
||||||
local packets = {}
|
|
||||||
local rle_packet = ''
|
|
||||||
for _, row in ipairs(self.pixels) do
|
for _, row in ipairs(self.pixels) do
|
||||||
for _, pixel in ipairs(row) do
|
for _, pixel in ipairs(row) do
|
||||||
current_pixel = string.char(pixel[3], pixel[2], pixel[1])
|
self.data = self.data
|
||||||
if current_pixel ~= previous_pixel or count == 128 then
|
.. string.char(pixel[3], pixel[2], pixel[1])
|
||||||
packets[#packets +1] = rle_packet
|
|
||||||
count = 1
|
|
||||||
previous_pixel = current_pixel
|
|
||||||
else
|
|
||||||
count = count + 1
|
|
||||||
end
|
|
||||||
rle_packet = string.char(128 + count - 1) .. current_pixel
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
packets[#packets +1] = rle_packet
|
|
||||||
self.data = self.data .. table.concat(packets)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function image:encode_footer()
|
function image:encode_footer()
|
||||||
|
@ -84,7 +70,7 @@ function image:encode()
|
||||||
end
|
end
|
||||||
|
|
||||||
function image:save(filename)
|
function image:save(filename)
|
||||||
local f = assert(io.open(filename, "wb"))
|
local f = assert(io.open(filename, "w"))
|
||||||
f:write(self.data)
|
f:write(self.data)
|
||||||
f:close()
|
f:close()
|
||||||
end
|
end
|
||||||
|
|
|
@ -2,45 +2,47 @@
|
||||||
|
|
||||||
local get_connected_players = minetest.get_connected_players
|
local get_connected_players = minetest.get_connected_players
|
||||||
local get_node = minetest.get_node
|
local get_node = minetest.get_node
|
||||||
local vector = vector
|
local vector_add = vector.add
|
||||||
local ceil = math.ceil
|
local ceil = math.ceil
|
||||||
local pairs = pairs
|
local pairs = pairs
|
||||||
|
|
||||||
walkover = {}
|
walkover = {}
|
||||||
|
walkover.registered_globals = {}
|
||||||
|
|
||||||
|
function walkover.register_global(func)
|
||||||
|
table.insert(walkover.registered_globals, func)
|
||||||
|
end
|
||||||
|
|
||||||
local on_walk = {}
|
local on_walk = {}
|
||||||
local registered_globals = {}
|
local registered_globals = {}
|
||||||
|
|
||||||
walkover.registered_globals = registered_globals
|
|
||||||
|
|
||||||
function walkover.register_global(func)
|
|
||||||
table.insert(registered_globals, func)
|
|
||||||
end
|
|
||||||
|
|
||||||
minetest.register_on_mods_loaded(function()
|
minetest.register_on_mods_loaded(function()
|
||||||
for name,def in pairs(minetest.registered_nodes) do
|
for name,def in pairs(minetest.registered_nodes) do
|
||||||
if def.on_walk_over then
|
if def.on_walk_over then
|
||||||
on_walk[name] = def.on_walk_over
|
on_walk[name] = def.on_walk_over
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
for _,func in ipairs(walkover.registered_globals) do --cache registered globals
|
||||||
|
table.insert(registered_globals, func)
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
local timer = 0
|
local timer = 0
|
||||||
minetest.register_globalstep(function(dtime)
|
minetest.register_globalstep(function(dtime)
|
||||||
timer = timer + dtime
|
timer = timer + dtime;
|
||||||
if timer >= 0.3 then
|
if timer >= 0.3 then
|
||||||
for _, player in pairs(get_connected_players()) do
|
for _,player in pairs(get_connected_players()) do
|
||||||
local ppos = player:get_pos()
|
local pp = player:get_pos()
|
||||||
ppos.y = ceil(ppos.y)
|
pp.y = ceil(pp.y)
|
||||||
local npos = vector.add(ppos, vector.new(0, -1, 0))
|
local loc = vector_add(pp, {x=0,y=-1,z=0})
|
||||||
if npos then
|
if loc then
|
||||||
local node = get_node(npos)
|
local nodeiamon = get_node(loc)
|
||||||
if node then
|
if nodeiamon then
|
||||||
if on_walk[node.name] then
|
if on_walk[nodeiamon.name] then
|
||||||
on_walk[node.name](npos, node, player)
|
on_walk[nodeiamon.name](loc, nodeiamon, player)
|
||||||
end
|
end
|
||||||
for i = 1, #registered_globals do
|
for i = 1, #registered_globals do
|
||||||
registered_globals[i](npos, node, player)
|
registered_globals[i](loc, nodeiamon, player)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -0,0 +1,114 @@
|
||||||
|
--Dripping Water Mod
|
||||||
|
--by kddekadenz
|
||||||
|
|
||||||
|
local math = math
|
||||||
|
|
||||||
|
-- License of code, textures & sounds: CC0
|
||||||
|
|
||||||
|
--Drop entities
|
||||||
|
|
||||||
|
--water
|
||||||
|
|
||||||
|
local water_tex = "default_water_source_animated.png^[verticalframe:16:0"
|
||||||
|
minetest.register_entity("drippingwater:drop_water", {
|
||||||
|
hp_max = 1,
|
||||||
|
physical = true,
|
||||||
|
collide_with_objects = false,
|
||||||
|
collisionbox = {-0.025,-0.05,-0.025,0.025,-0.01,0.025},
|
||||||
|
pointable = false,
|
||||||
|
visual = "cube",
|
||||||
|
visual_size = {x=0.05, y=0.1},
|
||||||
|
textures = {water_tex, water_tex, water_tex, water_tex, water_tex, water_tex},
|
||||||
|
spritediv = {x=1, y=1},
|
||||||
|
initial_sprite_basepos = {x=0, y=0},
|
||||||
|
static_save = false,
|
||||||
|
on_activate = function(self, staticdata)
|
||||||
|
self.object:set_sprite({x=0,y=0}, 1, 1, true)
|
||||||
|
end,
|
||||||
|
on_step = function(self, dtime)
|
||||||
|
local k = math.random(1,222)
|
||||||
|
local ownpos = self.object:get_pos()
|
||||||
|
if k==1 then
|
||||||
|
self.object:set_acceleration({x=0, y=-5, z=0})
|
||||||
|
end
|
||||||
|
if minetest.get_node({x=ownpos.x, y=ownpos.y +0.5, z=ownpos.z}).name == "air" then
|
||||||
|
self.object:set_acceleration({x=0, y=-5, z=0})
|
||||||
|
end
|
||||||
|
if minetest.get_node({x=ownpos.x, y=ownpos.y -0.5, z=ownpos.z}).name ~= "air" then
|
||||||
|
self.object:remove()
|
||||||
|
minetest.sound_play({name="drippingwater_drip"}, {pos = ownpos, gain = 0.5, max_hear_distance = 8}, true)
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
--lava
|
||||||
|
|
||||||
|
local lava_tex = "default_lava_source_animated.png^[verticalframe:16:0"
|
||||||
|
minetest.register_entity("drippingwater:drop_lava", {
|
||||||
|
hp_max = 1,
|
||||||
|
physical = true,
|
||||||
|
collide_with_objects = false,
|
||||||
|
collisionbox = {-0.025,-0.05,-0.025,0.025,-0.01,0.025},
|
||||||
|
glow = math.max(7, minetest.registered_nodes["mcl_core:lava_source"].light_source - 3),
|
||||||
|
pointable = false,
|
||||||
|
visual = "cube",
|
||||||
|
visual_size = {x=0.05, y=0.1},
|
||||||
|
textures = {lava_tex, lava_tex, lava_tex, lava_tex, lava_tex, lava_tex},
|
||||||
|
spritediv = {x=1, y=1},
|
||||||
|
initial_sprite_basepos = {x=0, y=0},
|
||||||
|
static_save = false,
|
||||||
|
on_activate = function(self, staticdata)
|
||||||
|
self.object:set_sprite({x=0,y=0}, 1, 0, true)
|
||||||
|
end,
|
||||||
|
on_step = function(self, dtime)
|
||||||
|
local k = math.random(1,222)
|
||||||
|
local ownpos = self.object:get_pos()
|
||||||
|
if k == 1 then
|
||||||
|
self.object:set_acceleration({x=0, y=-5, z=0})
|
||||||
|
end
|
||||||
|
if minetest.get_node({x=ownpos.x, y=ownpos.y +0.5, z=ownpos.z}).name == "air" then
|
||||||
|
self.object:set_acceleration({x=0, y=-5, z=0})
|
||||||
|
end
|
||||||
|
if minetest.get_node({x=ownpos.x, y=ownpos.y -0.5, z=ownpos.z}).name ~= "air" then
|
||||||
|
self.object:remove()
|
||||||
|
minetest.sound_play({name="drippingwater_lavadrip"}, {pos = ownpos, gain = 0.5, max_hear_distance = 8}, true)
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
--Create drop
|
||||||
|
|
||||||
|
minetest.register_abm({
|
||||||
|
label = "Create water drops",
|
||||||
|
nodenames = {"group:opaque", "group:leaves"},
|
||||||
|
neighbors = {"group:water"},
|
||||||
|
interval = 2,
|
||||||
|
chance = 22,
|
||||||
|
action = function(pos)
|
||||||
|
if minetest.get_item_group(minetest.get_node({x=pos.x, y=pos.y+1, z=pos.z}).name, "water") ~= 0
|
||||||
|
and minetest.get_node({x=pos.x, y=pos.y-1, z=pos.z}).name == "air" then
|
||||||
|
local i = math.random(-45,45) / 100
|
||||||
|
minetest.add_entity({x=pos.x + i, y=pos.y - 0.501, z=pos.z + i}, "drippingwater:drop_water")
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
|
--Create lava drop
|
||||||
|
|
||||||
|
minetest.register_abm({
|
||||||
|
label = "Create lava drops",
|
||||||
|
nodenames = {"group:opaque"},
|
||||||
|
neighbors = {"group:lava"},
|
||||||
|
interval = 2,
|
||||||
|
chance = 22,
|
||||||
|
action = function(pos)
|
||||||
|
if minetest.get_item_group(minetest.get_node({x=pos.x, y=pos.y+1, z=pos.z}).name, "lava") ~= 0
|
||||||
|
and minetest.get_node({x=pos.x, y=pos.y-1, z=pos.z}).name == "air" then
|
||||||
|
local i = math.random(-45,45) / 100
|
||||||
|
minetest.add_entity({x=pos.x + i, y=pos.y - 0.501, z=pos.z + i}, "drippingwater:drop_lava")
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
})
|
|
@ -1,4 +1,4 @@
|
||||||
name = mcl_dripping
|
name = drippingwater
|
||||||
author = kddekadenz
|
author = kddekadenz
|
||||||
description = Drops are generated rarely under solid nodes
|
description = Drops are generated rarely under solid nodes
|
||||||
depends = mcl_core
|
depends = mcl_core
|
|
@ -1,12 +1,12 @@
|
||||||
Dripping Mod
|
Dripping Water Mod
|
||||||
by kddekadenz
|
by kddekadenz
|
||||||
|
|
||||||
modified for MineClone 2 by Wuzzy and NO11
|
modified for MineClone 2 by Wuzzy
|
||||||
|
|
||||||
|
|
||||||
Installing instructions:
|
Installing instructions:
|
||||||
|
|
||||||
1. Copy the mcl_dripping mod folder into games/gamemode/mods
|
1. Copy the drippingwater mod folder into games/gamemode/mods
|
||||||
|
|
||||||
2. Start game and enjoy :)
|
2. Start game and enjoy :)
|
||||||
|
|
|
@ -0,0 +1,625 @@
|
||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
|
||||||
|
Version 3, 29 June 2007
|
||||||
|
|
||||||
|
Copyright © 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||||
|
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies of this license
|
||||||
|
document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The GNU General Public License is a free, copyleft license for software and
|
||||||
|
other kinds of works.
|
||||||
|
|
||||||
|
The licenses for most software and other practical works are designed to take
|
||||||
|
away your freedom to share and change the works. By contrast, the GNU General
|
||||||
|
Public License is intended to guarantee your freedom to share and change all
|
||||||
|
versions of a program--to make sure it remains free software for all its users.
|
||||||
|
We, the Free Software Foundation, use the GNU General Public License for most
|
||||||
|
of our software; it applies also to any other work released this way by its
|
||||||
|
authors. You can apply it to your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not price. Our
|
||||||
|
General Public Licenses are designed to make sure that you have the freedom
|
||||||
|
to distribute copies of free software (and charge for them if you wish), that
|
||||||
|
you receive source code or can get it if you want it, that you can change
|
||||||
|
the software or use pieces of it in new free programs, and that you know you
|
||||||
|
can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to prevent others from denying you these rights
|
||||||
|
or asking you to surrender the rights. Therefore, you have certain responsibilities
|
||||||
|
if you distribute copies of the software, or if you modify it: responsibilities
|
||||||
|
to respect the freedom of others.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether gratis or
|
||||||
|
for a fee, you must pass on to the recipients the same freedoms that you received.
|
||||||
|
You must make sure that they, too, receive or can get the source code. And
|
||||||
|
you must show them these terms so they know their rights.
|
||||||
|
|
||||||
|
Developers that use the GNU GPL protect your rights with two steps: (1) assert
|
||||||
|
copyright on the software, and (2) offer you this License giving you legal
|
||||||
|
permission to copy, distribute and/or modify it.
|
||||||
|
|
||||||
|
For the developers' and authors' protection, the GPL clearly explains that
|
||||||
|
there is no warranty for this free software. For both users' and authors'
|
||||||
|
sake, the GPL requires that modified versions be marked as changed, so that
|
||||||
|
their problems will not be attributed erroneously to authors of previous versions.
|
||||||
|
|
||||||
|
Some devices are designed to deny users access to install or run modified
|
||||||
|
versions of the software inside them, although the manufacturer can do so.
|
||||||
|
This is fundamentally incompatible with the aim of protecting users' freedom
|
||||||
|
to change the software. The systematic pattern of such abuse occurs in the
|
||||||
|
area of products for individuals to use, which is precisely where it is most
|
||||||
|
unacceptable. Therefore, we have designed this version of the GPL to prohibit
|
||||||
|
the practice for those products. If such problems arise substantially in other
|
||||||
|
domains, we stand ready to extend this provision to those domains in future
|
||||||
|
versions of the GPL, as needed to protect the freedom of users.
|
||||||
|
|
||||||
|
Finally, every program is threatened constantly by software patents. States
|
||||||
|
should not allow patents to restrict development and use of software on general-purpose
|
||||||
|
computers, but in those that do, we wish to avoid the special danger that
|
||||||
|
patents applied to a free program could make it effectively proprietary. To
|
||||||
|
prevent this, the GPL assures that patents cannot be used to render the program
|
||||||
|
non-free.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and modification
|
||||||
|
follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
"This License" refers to version 3 of the GNU General Public License.
|
||||||
|
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds of works,
|
||||||
|
such as semiconductor masks.
|
||||||
|
|
||||||
|
"The Program" refers to any copyrightable work licensed under this License.
|
||||||
|
Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals
|
||||||
|
or organizations.
|
||||||
|
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work in
|
||||||
|
a fashion requiring copyright permission, other than the making of an exact
|
||||||
|
copy. The resulting work is called a "modified version" of the earlier work
|
||||||
|
or a work "based on" the earlier work.
|
||||||
|
|
||||||
|
A "covered work" means either the unmodified Program or a work based on the
|
||||||
|
Program.
|
||||||
|
|
||||||
|
To "propagate" a work means to do anything with it that, without permission,
|
||||||
|
would make you directly or secondarily liable for infringement under applicable
|
||||||
|
copyright law, except executing it on a computer or modifying a private copy.
|
||||||
|
Propagation includes copying, distribution (with or without modification),
|
||||||
|
making available to the public, and in some countries other activities as
|
||||||
|
well.
|
||||||
|
|
||||||
|
To "convey" a work means any kind of propagation that enables other parties
|
||||||
|
to make or receive copies. Mere interaction with a user through a computer
|
||||||
|
network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices" to the
|
||||||
|
extent that it includes a convenient and prominently visible feature that
|
||||||
|
(1) displays an appropriate copyright notice, and (2) tells the user that
|
||||||
|
there is no warranty for the work (except to the extent that warranties are
|
||||||
|
provided), that licensees may convey the work under this License, and how
|
||||||
|
to view a copy of this License. If the interface presents a list of user commands
|
||||||
|
or options, such as a menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
|
||||||
|
The "source code" for a work means the preferred form of the work for making
|
||||||
|
modifications to it. "Object code" means any non-source form of a work.
|
||||||
|
|
||||||
|
A "Standard Interface" means an interface that either is an official standard
|
||||||
|
defined by a recognized standards body, or, in the case of interfaces specified
|
||||||
|
for a particular programming language, one that is widely used among developers
|
||||||
|
working in that language.
|
||||||
|
|
||||||
|
The "System Libraries" of an executable work include anything, other than
|
||||||
|
the work as a whole, that (a) is included in the normal form of packaging
|
||||||
|
a Major Component, but which is not part of that Major Component, and (b)
|
||||||
|
serves only to enable use of the work with that Major Component, or to implement
|
||||||
|
a Standard Interface for which an implementation is available to the public
|
||||||
|
in source code form. A "Major Component", in this context, means a major essential
|
||||||
|
component (kernel, window system, and so on) of the specific operating system
|
||||||
|
(if any) on which the executable work runs, or a compiler used to produce
|
||||||
|
the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The "Corresponding Source" for a work in object code form means all the source
|
||||||
|
code needed to generate, install, and (for an executable work) run the object
|
||||||
|
code and to modify the work, including scripts to control those activities.
|
||||||
|
However, it does not include the work's System Libraries, or general-purpose
|
||||||
|
tools or generally available free programs which are used unmodified in performing
|
||||||
|
those activities but which are not part of the work. For example, Corresponding
|
||||||
|
Source includes interface definition files associated with source files for
|
||||||
|
the work, and the source code for shared libraries and dynamically linked
|
||||||
|
subprograms that the work is specifically designed to require, such as by
|
||||||
|
intimate data communication or control flow between those subprograms and
|
||||||
|
other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users can regenerate
|
||||||
|
automatically from other parts of the Corresponding Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
|
||||||
|
All rights granted under this License are granted for the term of copyright
|
||||||
|
on the Program, and are irrevocable provided the stated conditions are met.
|
||||||
|
This License explicitly affirms your unlimited permission to run the unmodified
|
||||||
|
Program. The output from running a covered work is covered by this License
|
||||||
|
only if the output, given its content, constitutes a covered work. This License
|
||||||
|
acknowledges your rights of fair use or other equivalent, as provided by copyright
|
||||||
|
law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not convey, without
|
||||||
|
conditions so long as your license otherwise remains in force. You may convey
|
||||||
|
covered works to others for the sole purpose of having them make modifications
|
||||||
|
exclusively for you, or provide you with facilities for running those works,
|
||||||
|
provided that you comply with the terms of this License in conveying all material
|
||||||
|
for which you do not control copyright. Those thus making or running the covered
|
||||||
|
works for you must do so exclusively on your behalf, under your direction
|
||||||
|
and control, on terms that prohibit them from making any copies of your copyrighted
|
||||||
|
material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under the conditions
|
||||||
|
stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
|
||||||
|
No covered work shall be deemed part of an effective technological measure
|
||||||
|
under any applicable law fulfilling obligations under article 11 of the WIPO
|
||||||
|
copyright treaty adopted on 20 December 1996, or similar laws prohibiting
|
||||||
|
or restricting circumvention of such measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid circumvention
|
||||||
|
of technological measures to the extent such circumvention is effected by
|
||||||
|
exercising rights under this License with respect to the covered work, and
|
||||||
|
you disclaim any intention to limit operation or modification of the work
|
||||||
|
as a means of enforcing, against the work's users, your or third parties'
|
||||||
|
legal rights to forbid circumvention of technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
|
||||||
|
You may convey verbatim copies of the Program's source code as you receive
|
||||||
|
it, in any medium, provided that you conspicuously and appropriately publish
|
||||||
|
on each copy an appropriate copyright notice; keep intact all notices stating
|
||||||
|
that this License and any non-permissive terms added in accord with section
|
||||||
|
7 apply to the code; keep intact all notices of the absence of any warranty;
|
||||||
|
and give all recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey, and you
|
||||||
|
may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
|
||||||
|
You may convey a work based on the Program, or the modifications to produce
|
||||||
|
it from the Program, in the form of source code under the terms of section
|
||||||
|
4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified it, and
|
||||||
|
giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is released under
|
||||||
|
this License and any conditions added under section 7. This requirement modifies
|
||||||
|
the requirement in section 4 to "keep intact all notices".
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this License to anyone
|
||||||
|
who comes into possession of a copy. This License will therefore apply, along
|
||||||
|
with any applicable section 7 additional terms, to the whole of the work,
|
||||||
|
and all its parts, regardless of how they are packaged. This License gives
|
||||||
|
no permission to license the work in any other way, but it does not invalidate
|
||||||
|
such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display Appropriate
|
||||||
|
Legal Notices; however, if the Program has interactive interfaces that do
|
||||||
|
not display Appropriate Legal Notices, your work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent works,
|
||||||
|
which are not by their nature extensions of the covered work, and which are
|
||||||
|
not combined with it such as to form a larger program, in or on a volume of
|
||||||
|
a storage or distribution medium, is called an "aggregate" if the compilation
|
||||||
|
and its resulting copyright are not used to limit the access or legal rights
|
||||||
|
of the compilation's users beyond what the individual works permit. Inclusion
|
||||||
|
of a covered work in an aggregate does not cause this License to apply to
|
||||||
|
the other parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
|
||||||
|
You may convey a covered work in object code form under the terms of sections
|
||||||
|
4 and 5, provided that you also convey the machine-readable Corresponding
|
||||||
|
Source under the terms of this License, in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product (including
|
||||||
|
a physical distribution medium), accompanied by the Corresponding Source fixed
|
||||||
|
on a durable physical medium customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product (including
|
||||||
|
a physical distribution medium), accompanied by a written offer, valid for
|
||||||
|
at least three years and valid for as long as you offer spare parts or customer
|
||||||
|
support for that product model, to give anyone who possesses the object code
|
||||||
|
either (1) a copy of the Corresponding Source for all the software in the
|
||||||
|
product that is covered by this License, on a durable physical medium customarily
|
||||||
|
used for software interchange, for a price no more than your reasonable cost
|
||||||
|
of physically performing this conveying of source, or (2) access to copy the
|
||||||
|
Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the written
|
||||||
|
offer to provide the Corresponding Source. This alternative is allowed only
|
||||||
|
occasionally and noncommercially, and only if you received the object code
|
||||||
|
with such an offer, in accord with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated place (gratis
|
||||||
|
or for a charge), and offer equivalent access to the Corresponding Source
|
||||||
|
in the same way through the same place at no further charge. You need not
|
||||||
|
require recipients to copy the Corresponding Source along with the object
|
||||||
|
code. If the place to copy the object code is a network server, the Corresponding
|
||||||
|
Source may be on a different server (operated by you or a third party) that
|
||||||
|
supports equivalent copying facilities, provided you maintain clear directions
|
||||||
|
next to the object code saying where to find the Corresponding Source. Regardless
|
||||||
|
of what server hosts the Corresponding Source, you remain obligated to ensure
|
||||||
|
that it is available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided you inform
|
||||||
|
other peers where the object code and Corresponding Source of the work are
|
||||||
|
being offered to the general public at no charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded from
|
||||||
|
the Corresponding Source as a System Library, need not be included in conveying
|
||||||
|
the object code work.
|
||||||
|
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any tangible
|
||||||
|
personal property which is normally used for personal, family, or household
|
||||||
|
purposes, or (2) anything designed or sold for incorporation into a dwelling.
|
||||||
|
In determining whether a product is a consumer product, doubtful cases shall
|
||||||
|
be resolved in favor of coverage. For a particular product received by a particular
|
||||||
|
user, "normally used" refers to a typical or common use of that class of product,
|
||||||
|
regardless of the status of the particular user or of the way in which the
|
||||||
|
particular user actually uses, or expects or is expected to use, the product.
|
||||||
|
A product is a consumer product regardless of whether the product has substantial
|
||||||
|
commercial, industrial or non-consumer uses, unless such uses represent the
|
||||||
|
only significant mode of use of the product.
|
||||||
|
|
||||||
|
"Installation Information" for a User Product means any methods, procedures,
|
||||||
|
authorization keys, or other information required to install and execute modified
|
||||||
|
versions of a covered work in that User Product from a modified version of
|
||||||
|
its Corresponding Source. The information must suffice to ensure that the
|
||||||
|
continued functioning of the modified object code is in no case prevented
|
||||||
|
or interfered with solely because modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or specifically
|
||||||
|
for use in, a User Product, and the conveying occurs as part of a transaction
|
||||||
|
in which the right of possession and use of the User Product is transferred
|
||||||
|
to the recipient in perpetuity or for a fixed term (regardless of how the
|
||||||
|
transaction is characterized), the Corresponding Source conveyed under this
|
||||||
|
section must be accompanied by the Installation Information. But this requirement
|
||||||
|
does not apply if neither you nor any third party retains the ability to install
|
||||||
|
modified object code on the User Product (for example, the work has been installed
|
||||||
|
in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a requirement
|
||||||
|
to continue to provide support service, warranty, or updates for a work that
|
||||||
|
has been modified or installed by the recipient, or for the User Product in
|
||||||
|
which it has been modified or installed. Access to a network may be denied
|
||||||
|
when the modification itself materially and adversely affects the operation
|
||||||
|
of the network or violates the rules and protocols for communication across
|
||||||
|
the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided, in accord
|
||||||
|
with this section must be in a format that is publicly documented (and with
|
||||||
|
an implementation available to the public in source code form), and must require
|
||||||
|
no special password or key for unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
|
||||||
|
"Additional permissions" are terms that supplement the terms of this License
|
||||||
|
by making exceptions from one or more of its conditions. Additional permissions
|
||||||
|
that are applicable to the entire Program shall be treated as though they
|
||||||
|
were included in this License, to the extent that they are valid under applicable
|
||||||
|
law. If additional permissions apply only to part of the Program, that part
|
||||||
|
may be used separately under those permissions, but the entire Program remains
|
||||||
|
governed by this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option remove any
|
||||||
|
additional permissions from that copy, or from any part of it. (Additional
|
||||||
|
permissions may be written to require their own removal in certain cases when
|
||||||
|
you modify the work.) You may place additional permissions on material, added
|
||||||
|
by you to a covered work, for which you have or can give appropriate copyright
|
||||||
|
permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you add
|
||||||
|
to a covered work, you may (if authorized by the copyright holders of that
|
||||||
|
material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the terms of
|
||||||
|
sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or author
|
||||||
|
attributions in that material or in the Appropriate Legal Notices displayed
|
||||||
|
by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or requiring
|
||||||
|
that modified versions of such material be marked in reasonable ways as different
|
||||||
|
from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or authors
|
||||||
|
of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some trade names,
|
||||||
|
trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that material by
|
||||||
|
anyone who conveys the material (or modified versions of it) with contractual
|
||||||
|
assumptions of liability to the recipient, for any liability that these contractual
|
||||||
|
assumptions directly impose on those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered "further restrictions"
|
||||||
|
within the meaning of section 10. If the Program as you received it, or any
|
||||||
|
part of it, contains a notice stating that it is governed by this License
|
||||||
|
along with a term that is a further restriction, you may remove that term.
|
||||||
|
If a license document contains a further restriction but permits relicensing
|
||||||
|
or conveying under this License, you may add to a covered work material governed
|
||||||
|
by the terms of that license document, provided that the further restriction
|
||||||
|
does not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you must place,
|
||||||
|
in the relevant source files, a statement of the additional terms that apply
|
||||||
|
to those files, or a notice indicating where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the form
|
||||||
|
of a separately written license, or stated as exceptions; the above requirements
|
||||||
|
apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
|
||||||
|
You may not propagate or modify a covered work except as expressly provided
|
||||||
|
under this License. Any attempt otherwise to propagate or modify it is void,
|
||||||
|
and will automatically terminate your rights under this License (including
|
||||||
|
any patent licenses granted under the third paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your license from
|
||||||
|
a particular copyright holder is reinstated (a) provisionally, unless and
|
||||||
|
until the copyright holder explicitly and finally terminates your license,
|
||||||
|
and (b) permanently, if the copyright holder fails to notify you of the violation
|
||||||
|
by some reasonable means prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is reinstated permanently
|
||||||
|
if the copyright holder notifies you of the violation by some reasonable means,
|
||||||
|
this is the first time you have received notice of violation of this License
|
||||||
|
(for any work) from that copyright holder, and you cure the violation prior
|
||||||
|
to 30 days after your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the licenses
|
||||||
|
of parties who have received copies or rights from you under this License.
|
||||||
|
If your rights have been terminated and not permanently reinstated, you do
|
||||||
|
not qualify to receive new licenses for the same material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
|
||||||
|
You are not required to accept this License in order to receive or run a copy
|
||||||
|
of the Program. Ancillary propagation of a covered work occurring solely as
|
||||||
|
a consequence of using peer-to-peer transmission to receive a copy likewise
|
||||||
|
does not require acceptance. However, nothing other than this License grants
|
||||||
|
you permission to propagate or modify any covered work. These actions infringe
|
||||||
|
copyright if you do not accept this License. Therefore, by modifying or propagating
|
||||||
|
a covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
|
||||||
|
Each time you convey a covered work, the recipient automatically receives
|
||||||
|
a license from the original licensors, to run, modify and propagate that work,
|
||||||
|
subject to this License. You are not responsible for enforcing compliance
|
||||||
|
by third parties with this License.
|
||||||
|
|
||||||
|
An "entity transaction" is a transaction transferring control of an organization,
|
||||||
|
or substantially all assets of one, or subdividing an organization, or merging
|
||||||
|
organizations. If propagation of a covered work results from an entity transaction,
|
||||||
|
each party to that transaction who receives a copy of the work also receives
|
||||||
|
whatever licenses to the work the party's predecessor in interest had or could
|
||||||
|
give under the previous paragraph, plus a right to possession of the Corresponding
|
||||||
|
Source of the work from the predecessor in interest, if the predecessor has
|
||||||
|
it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the rights
|
||||||
|
granted or affirmed under this License. For example, you may not impose a
|
||||||
|
license fee, royalty, or other charge for exercise of rights granted under
|
||||||
|
this License, and you may not initiate litigation (including a cross-claim
|
||||||
|
or counterclaim in a lawsuit) alleging that any patent claim is infringed
|
||||||
|
by making, using, selling, offering for sale, or importing the Program or
|
||||||
|
any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this License
|
||||||
|
of the Program or a work on which the Program is based. The work thus licensed
|
||||||
|
is called the contributor's "contributor version".
|
||||||
|
|
||||||
|
A contributor's "essential patent claims" are all patent claims owned or controlled
|
||||||
|
by the contributor, whether already acquired or hereafter acquired, that would
|
||||||
|
be infringed by some manner, permitted by this License, of making, using,
|
||||||
|
or selling its contributor version, but do not include claims that would be
|
||||||
|
infringed only as a consequence of further modification of the contributor
|
||||||
|
version. For purposes of this definition, "control" includes the right to
|
||||||
|
grant patent sublicenses in a manner consistent with the requirements of this
|
||||||
|
License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free patent
|
||||||
|
license under the contributor's essential patent claims, to make, use, sell,
|
||||||
|
offer for sale, import and otherwise run, modify and propagate the contents
|
||||||
|
of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a "patent license" is any express agreement
|
||||||
|
or commitment, however denominated, not to enforce a patent (such as an express
|
||||||
|
permission to practice a patent or covenant not to sue for patent infringement).
|
||||||
|
To "grant" such a patent license to a party means to make such an agreement
|
||||||
|
or commitment not to enforce a patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license, and the
|
||||||
|
Corresponding Source of the work is not available for anyone to copy, free
|
||||||
|
of charge and under the terms of this License, through a publicly available
|
||||||
|
network server or other readily accessible means, then you must either (1)
|
||||||
|
cause the Corresponding Source to be so available, or (2) arrange to deprive
|
||||||
|
yourself of the benefit of the patent license for this particular work, or
|
||||||
|
(3) arrange, in a manner consistent with the requirements of this License,
|
||||||
|
to extend the patent license to downstream recipients. "Knowingly relying"
|
||||||
|
means you have actual knowledge that, but for the patent license, your conveying
|
||||||
|
the covered work in a country, or your recipient's use of the covered work
|
||||||
|
in a country, would infringe one or more identifiable patents in that country
|
||||||
|
that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or arrangement,
|
||||||
|
you convey, or propagate by procuring conveyance of, a covered work, and grant
|
||||||
|
a patent license to some of the parties receiving the covered work authorizing
|
||||||
|
them to use, propagate, modify or convey a specific copy of the covered work,
|
||||||
|
then the patent license you grant is automatically extended to all recipients
|
||||||
|
of the covered work and works based on it.
|
||||||
|
|
||||||
|
A patent license is "discriminatory" if it does not include within the scope
|
||||||
|
of its coverage, prohibits the exercise of, or is conditioned on the non-exercise
|
||||||
|
of one or more of the rights that are specifically granted under this License.
|
||||||
|
You may not convey a covered work if you are a party to an arrangement with
|
||||||
|
a third party that is in the business of distributing software, under which
|
||||||
|
you make payment to the third party based on the extent of your activity of
|
||||||
|
conveying the work, and under which the third party grants, to any of the
|
||||||
|
parties who would receive the covered work from you, a discriminatory patent
|
||||||
|
license (a) in connection with copies of the covered work conveyed by you
|
||||||
|
(or copies made from those copies), or (b) primarily for and in connection
|
||||||
|
with specific products or compilations that contain the covered work, unless
|
||||||
|
you entered into that arrangement, or that patent license was granted, prior
|
||||||
|
to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting any implied
|
||||||
|
license or other defenses to infringement that may otherwise be available
|
||||||
|
to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or otherwise)
|
||||||
|
that contradict the conditions of this License, they do not excuse you from
|
||||||
|
the conditions of this License. If you cannot convey a covered work so as
|
||||||
|
to satisfy simultaneously your obligations under this License and any other
|
||||||
|
pertinent obligations, then as a consequence you may not convey it at all.
|
||||||
|
For example, if you agree to terms that obligate you to collect a royalty
|
||||||
|
for further conveying from those to whom you convey the Program, the only
|
||||||
|
way you could satisfy both those terms and this License would be to refrain
|
||||||
|
entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Use with the GNU Affero General Public License.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, you have permission to
|
||||||
|
link or combine any covered work with a work licensed under version 3 of the
|
||||||
|
GNU Affero General Public License into a single combined work, and to convey
|
||||||
|
the resulting work. The terms of this License will continue to apply to the
|
||||||
|
part which is the covered work, but the special requirements of the GNU Affero
|
||||||
|
General Public License, section 13, concerning interaction through a network
|
||||||
|
will apply to the combination as such.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of the
|
||||||
|
GNU General Public License from time to time. Such new versions will be similar
|
||||||
|
in spirit to the present version, but may differ in detail to address new
|
||||||
|
problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the Program specifies
|
||||||
|
that a certain numbered version of the GNU General Public License "or any
|
||||||
|
later version" applies to it, you have the option of following the terms and
|
||||||
|
conditions either of that numbered version or of any later version published
|
||||||
|
by the Free Software Foundation. If the Program does not specify a version
|
||||||
|
number of the GNU General Public License, you may choose any version ever
|
||||||
|
published by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future versions of
|
||||||
|
the GNU General Public License can be used, that proxy's public statement
|
||||||
|
of acceptance of a version permanently authorizes you to choose that version
|
||||||
|
for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different permissions. However,
|
||||||
|
no additional obligations are imposed on any author or copyright holder as
|
||||||
|
a result of your choosing to follow a later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE
|
||||||
|
LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
|
||||||
|
OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
|
||||||
|
EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||||
|
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||||
|
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM
|
||||||
|
PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR
|
||||||
|
CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL
|
||||||
|
ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM
|
||||||
|
AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL,
|
||||||
|
INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO
|
||||||
|
USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED
|
||||||
|
INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE
|
||||||
|
PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER
|
||||||
|
PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
|
||||||
|
If the disclaimer of warranty and limitation of liability provided above cannot
|
||||||
|
be given local legal effect according to their terms, reviewing courts shall
|
||||||
|
apply local law that most closely approximates an absolute waiver of all civil
|
||||||
|
liability in connection with the Program, unless a warranty or assumption
|
||||||
|
of liability accompanies a copy of the Program in return for a fee. END OF
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest possible
|
||||||
|
use to the public, the best way to achieve this is to make it free software
|
||||||
|
which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest to attach
|
||||||
|
them to the start of each source file to most effectively state the exclusion
|
||||||
|
of warranty; and each file should have at least the "copyright" line and a
|
||||||
|
pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify it under
|
||||||
|
the terms of the GNU General Public License as published by the Free Software
|
||||||
|
Foundation, either version 3 of the License, or (at your option) any later
|
||||||
|
version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with
|
||||||
|
this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If the program does terminal interaction, make it output a short notice like
|
||||||
|
this when it starts in an interactive mode:
|
||||||
|
|
||||||
|
<program> Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
|
||||||
|
This is free software, and you are welcome to redistribute it under certain
|
||||||
|
conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||||
|
parts of the General Public License. Of course, your program's commands might
|
||||||
|
be different; for a GUI interface, you would use an "about box".
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or school,
|
||||||
|
if any, to sign a "copyright disclaimer" for the program, if necessary. For
|
||||||
|
more information on this, and how to apply and follow the GNU GPL, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
The GNU General Public License does not permit incorporating your program
|
||||||
|
into proprietary programs. If your program is a subroutine library, you may
|
||||||
|
consider it more useful to permit linking proprietary applications with the
|
||||||
|
library. If this is what you want to do, use the GNU Lesser General Public
|
||||||
|
License instead of this License. But first, please read <https://www.gnu.org/
|
||||||
|
licenses /why-not-lgpl.html>.
|
|
@ -0,0 +1,3 @@
|
||||||
|
# extra_mobs
|
||||||
|
|
||||||
|
A mod that adds aditional mobs to Mineclone 2, namely mobs that were added in updates of Minecraft past 1.12 (Mineclone's goal)
|
|
@ -0,0 +1,39 @@
|
||||||
|
TODO.Mobs:
|
||||||
|
|
||||||
|
Mountain Goats
|
||||||
|
|
||||||
|
Fish
|
||||||
|
|
||||||
|
Dolfins
|
||||||
|
|
||||||
|
Fox
|
||||||
|
|
||||||
|
Pandas
|
||||||
|
|
||||||
|
Zombified Piglins
|
||||||
|
|
||||||
|
Pillagers
|
||||||
|
|
||||||
|
Ravagers
|
||||||
|
|
||||||
|
Phantoms
|
||||||
|
|
||||||
|
Hoglins
|
||||||
|
|
||||||
|
Zoglins
|
||||||
|
|
||||||
|
Drowneds
|
||||||
|
|
||||||
|
Glow Squids
|
||||||
|
|
||||||
|
Axolotls
|
||||||
|
|
||||||
|
Done.Mobs:
|
||||||
|
|
||||||
|
Piglins
|
||||||
|
|
||||||
|
Strider
|
||||||
|
|
||||||
|
Herobrine (optional)
|
||||||
|
|
||||||
|
Hoglin/Zoglin
|
|
@ -0,0 +1,262 @@
|
||||||
|
--MCmobs v0.4
|
||||||
|
--maikerumine
|
||||||
|
--made for MC like Survival game
|
||||||
|
--License for code WTFPL and otherwise stated in readmes
|
||||||
|
|
||||||
|
local pi = math.pi
|
||||||
|
local atann = math.atan
|
||||||
|
local atan = function(x)
|
||||||
|
if not x or x ~= x then
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
return atann(x)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
local dir_to_pitch = function(dir)
|
||||||
|
local dir2 = vector.normalize(dir)
|
||||||
|
local xz = math.abs(dir.x) + math.abs(dir.z)
|
||||||
|
return -math.atan2(-dir.y, xz)
|
||||||
|
end
|
||||||
|
|
||||||
|
local function degrees(rad)
|
||||||
|
return rad * 180.0 / math.pi
|
||||||
|
end
|
||||||
|
|
||||||
|
local S = minetest.get_translator("extra_mobs")
|
||||||
|
|
||||||
|
--###################
|
||||||
|
--################### cod
|
||||||
|
--###################
|
||||||
|
|
||||||
|
local cod = {
|
||||||
|
type = "animal",
|
||||||
|
spawn_class = "water",
|
||||||
|
can_despawn = true,
|
||||||
|
passive = true,
|
||||||
|
hp_min = 3,
|
||||||
|
hp_max = 3,
|
||||||
|
xp_min = 1,
|
||||||
|
xp_max = 3,
|
||||||
|
armor = 100,
|
||||||
|
rotate = 270,
|
||||||
|
tilt_swim = true,
|
||||||
|
collisionbox = {-0.3, 0.0, -0.3, 0.3, 0.79, 0.3},
|
||||||
|
visual = "mesh",
|
||||||
|
mesh = "extra_mobs_cod.b3d",
|
||||||
|
textures = {
|
||||||
|
{"extra_mobs_cod.png"}
|
||||||
|
},
|
||||||
|
sounds = {
|
||||||
|
},
|
||||||
|
animation = {
|
||||||
|
stand_start = 1,
|
||||||
|
stand_end = 20,
|
||||||
|
walk_start = 1,
|
||||||
|
walk_end = 20,
|
||||||
|
run_start = 1,
|
||||||
|
run_end = 20,
|
||||||
|
},
|
||||||
|
drops = {
|
||||||
|
{name = "mcl_fishing:fish_raw",
|
||||||
|
chance = 1,
|
||||||
|
min = 1,
|
||||||
|
max = 1,},
|
||||||
|
{name = "mcl_dye:white",
|
||||||
|
chance = 20,
|
||||||
|
min = 1,
|
||||||
|
max = 1,},
|
||||||
|
},
|
||||||
|
visual_size = {x=3, y=3},
|
||||||
|
makes_footstep_sound = false,
|
||||||
|
swim = true,
|
||||||
|
breathes_in_water = true,
|
||||||
|
jump = false,
|
||||||
|
view_range = 16,
|
||||||
|
runaway = true,
|
||||||
|
fear_height = 4,
|
||||||
|
do_custom = function(self)
|
||||||
|
self.object:set_bone_position("body", vector.new(0,1,0), vector.new(degrees(dir_to_pitch(self.object:get_velocity())) * -1 + 90,0,0))
|
||||||
|
if minetest.get_item_group(self.standing_in, "water") ~= 0 then
|
||||||
|
if self.object:get_velocity().y < 2.5 then
|
||||||
|
self.object:add_velocity({ x = 0 , y = math.random(-.002, .002) , z = 0 })
|
||||||
|
end
|
||||||
|
end
|
||||||
|
for _,object in pairs(minetest.get_objects_inside_radius(self.object:get_pos(), 10)) do
|
||||||
|
local lp = object:get_pos()
|
||||||
|
local s = self.object:get_pos()
|
||||||
|
local vec = {
|
||||||
|
x = lp.x - s.x,
|
||||||
|
y = lp.y - s.y,
|
||||||
|
z = lp.z - s.z
|
||||||
|
}
|
||||||
|
if object and not object:is_player() and object:get_luaentity() and object:get_luaentity().name == "extra_mobs:cod" then
|
||||||
|
self.state = "runaway"
|
||||||
|
self.object:set_rotation({x=0,y=(atan(vec.z / vec.x) + 3 * pi / 2) - self.rotate,z=0})
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
}
|
||||||
|
|
||||||
|
mobs:register_mob("extra_mobs:cod", cod)
|
||||||
|
|
||||||
|
|
||||||
|
--spawning TODO: in schools
|
||||||
|
|
||||||
|
local water = mobs_mc.spawn_height.water + 1
|
||||||
|
|
||||||
|
mobs:spawn_specific(
|
||||||
|
"extra_mobs:cod",
|
||||||
|
"overworld",
|
||||||
|
"water",
|
||||||
|
{
|
||||||
|
"Mesa",
|
||||||
|
"FlowerForest",
|
||||||
|
"Swampland",
|
||||||
|
"Taiga",
|
||||||
|
"ExtremeHills",
|
||||||
|
"Jungle",
|
||||||
|
"Savanna",
|
||||||
|
"BirchForest",
|
||||||
|
"MegaSpruceTaiga",
|
||||||
|
"MegaTaiga",
|
||||||
|
"ExtremeHills+",
|
||||||
|
"Forest",
|
||||||
|
"Plains",
|
||||||
|
"Desert",
|
||||||
|
"ColdTaiga",
|
||||||
|
"MushroomIsland",
|
||||||
|
"IcePlainsSpikes",
|
||||||
|
"SunflowerPlains",
|
||||||
|
"IcePlains",
|
||||||
|
"RoofedForest",
|
||||||
|
"ExtremeHills+_snowtop",
|
||||||
|
"MesaPlateauFM_grasstop",
|
||||||
|
"JungleEdgeM",
|
||||||
|
"ExtremeHillsM",
|
||||||
|
"JungleM",
|
||||||
|
"BirchForestM",
|
||||||
|
"MesaPlateauF",
|
||||||
|
"MesaPlateauFM",
|
||||||
|
"MesaPlateauF_grasstop",
|
||||||
|
"MesaBryce",
|
||||||
|
"JungleEdge",
|
||||||
|
"SavannaM",
|
||||||
|
"FlowerForest_beach",
|
||||||
|
"Forest_beach",
|
||||||
|
"StoneBeach",
|
||||||
|
"ColdTaiga_beach_water",
|
||||||
|
"Taiga_beach",
|
||||||
|
"Savanna_beach",
|
||||||
|
"Plains_beach",
|
||||||
|
"ExtremeHills_beach",
|
||||||
|
"ColdTaiga_beach",
|
||||||
|
"Swampland_shore",
|
||||||
|
"MushroomIslandShore",
|
||||||
|
"JungleM_shore",
|
||||||
|
"Jungle_shore",
|
||||||
|
"MesaPlateauFM_sandlevel",
|
||||||
|
"MesaPlateauF_sandlevel",
|
||||||
|
"MesaBryce_sandlevel",
|
||||||
|
"Mesa_sandlevel",
|
||||||
|
"RoofedForest_ocean",
|
||||||
|
"JungleEdgeM_ocean",
|
||||||
|
"BirchForestM_ocean",
|
||||||
|
"BirchForest_ocean",
|
||||||
|
"IcePlains_deep_ocean",
|
||||||
|
"Jungle_deep_ocean",
|
||||||
|
"Savanna_ocean",
|
||||||
|
"MesaPlateauF_ocean",
|
||||||
|
"ExtremeHillsM_deep_ocean",
|
||||||
|
"Savanna_deep_ocean",
|
||||||
|
"SunflowerPlains_ocean",
|
||||||
|
"Swampland_deep_ocean",
|
||||||
|
"Swampland_ocean",
|
||||||
|
"MegaSpruceTaiga_deep_ocean",
|
||||||
|
"ExtremeHillsM_ocean",
|
||||||
|
"JungleEdgeM_deep_ocean",
|
||||||
|
"SunflowerPlains_deep_ocean",
|
||||||
|
"BirchForest_deep_ocean",
|
||||||
|
"IcePlainsSpikes_ocean",
|
||||||
|
"Mesa_ocean",
|
||||||
|
"StoneBeach_ocean",
|
||||||
|
"Plains_deep_ocean",
|
||||||
|
"JungleEdge_deep_ocean",
|
||||||
|
"SavannaM_deep_ocean",
|
||||||
|
"Desert_deep_ocean",
|
||||||
|
"Mesa_deep_ocean",
|
||||||
|
"ColdTaiga_deep_ocean",
|
||||||
|
"Plains_ocean",
|
||||||
|
"MesaPlateauFM_ocean",
|
||||||
|
"Forest_deep_ocean",
|
||||||
|
"JungleM_deep_ocean",
|
||||||
|
"FlowerForest_deep_ocean",
|
||||||
|
"MushroomIsland_ocean",
|
||||||
|
"MegaTaiga_ocean",
|
||||||
|
"StoneBeach_deep_ocean",
|
||||||
|
"IcePlainsSpikes_deep_ocean",
|
||||||
|
"ColdTaiga_ocean",
|
||||||
|
"SavannaM_ocean",
|
||||||
|
"MesaPlateauF_deep_ocean",
|
||||||
|
"MesaBryce_deep_ocean",
|
||||||
|
"ExtremeHills+_deep_ocean",
|
||||||
|
"ExtremeHills_ocean",
|
||||||
|
"MushroomIsland_deep_ocean",
|
||||||
|
"Forest_ocean",
|
||||||
|
"MegaTaiga_deep_ocean",
|
||||||
|
"JungleEdge_ocean",
|
||||||
|
"MesaBryce_ocean",
|
||||||
|
"MegaSpruceTaiga_ocean",
|
||||||
|
"ExtremeHills+_ocean",
|
||||||
|
"Jungle_ocean",
|
||||||
|
"RoofedForest_deep_ocean",
|
||||||
|
"IcePlains_ocean",
|
||||||
|
"FlowerForest_ocean",
|
||||||
|
"ExtremeHills_deep_ocean",
|
||||||
|
"MesaPlateauFM_deep_ocean",
|
||||||
|
"Desert_ocean",
|
||||||
|
"Taiga_ocean",
|
||||||
|
"BirchForestM_deep_ocean",
|
||||||
|
"Taiga_deep_ocean",
|
||||||
|
"JungleM_ocean",
|
||||||
|
"FlowerForest_underground",
|
||||||
|
"JungleEdge_underground",
|
||||||
|
"StoneBeach_underground",
|
||||||
|
"MesaBryce_underground",
|
||||||
|
"Mesa_underground",
|
||||||
|
"RoofedForest_underground",
|
||||||
|
"Jungle_underground",
|
||||||
|
"Swampland_underground",
|
||||||
|
"MushroomIsland_underground",
|
||||||
|
"BirchForest_underground",
|
||||||
|
"Plains_underground",
|
||||||
|
"MesaPlateauF_underground",
|
||||||
|
"ExtremeHills_underground",
|
||||||
|
"MegaSpruceTaiga_underground",
|
||||||
|
"BirchForestM_underground",
|
||||||
|
"SavannaM_underground",
|
||||||
|
"MesaPlateauFM_underground",
|
||||||
|
"Desert_underground",
|
||||||
|
"Savanna_underground",
|
||||||
|
"Forest_underground",
|
||||||
|
"SunflowerPlains_underground",
|
||||||
|
"ColdTaiga_underground",
|
||||||
|
"IcePlains_underground",
|
||||||
|
"IcePlainsSpikes_underground",
|
||||||
|
"MegaTaiga_underground",
|
||||||
|
"Taiga_underground",
|
||||||
|
"ExtremeHills+_underground",
|
||||||
|
"JungleM_underground",
|
||||||
|
"ExtremeHillsM_underground",
|
||||||
|
"JungleEdgeM_underground",
|
||||||
|
},
|
||||||
|
0,
|
||||||
|
minetest.LIGHT_MAX+1,
|
||||||
|
30,
|
||||||
|
4000,
|
||||||
|
3,
|
||||||
|
water-16,
|
||||||
|
water)
|
||||||
|
|
||||||
|
--spawn egg
|
||||||
|
mobs:register_egg("extra_mobs:cod", S("Cod"), "extra_mobs_spawn_icon_cod.png", 0)
|
|
@ -0,0 +1,3 @@
|
||||||
|
Strider textures -- [NO11]
|
||||||
|
Fox textures -- [NO11]
|
||||||
|
fungus on a stick ability -- [TechDudie]
|
|
@ -0,0 +1 @@
|
||||||
|
mobs_mc
|
|
@ -0,0 +1,249 @@
|
||||||
|
--MCmobs v0.4
|
||||||
|
--maikerumine
|
||||||
|
--made for MC like Survival game
|
||||||
|
--License for code WTFPL and otherwise stated in readmes
|
||||||
|
|
||||||
|
local pi = math.pi
|
||||||
|
local atann = math.atan
|
||||||
|
local atan = function(x)
|
||||||
|
if not x or x ~= x then
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
return atann(x)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
local dir_to_pitch = function(dir)
|
||||||
|
local dir2 = vector.normalize(dir)
|
||||||
|
local xz = math.abs(dir.x) + math.abs(dir.z)
|
||||||
|
return -math.atan2(-dir.y, xz)
|
||||||
|
end
|
||||||
|
|
||||||
|
local function degrees(rad)
|
||||||
|
return rad * 180.0 / math.pi
|
||||||
|
end
|
||||||
|
|
||||||
|
local S = minetest.get_translator("extra_mobs")
|
||||||
|
|
||||||
|
--###################
|
||||||
|
--################### dolphin
|
||||||
|
--###################
|
||||||
|
|
||||||
|
local dolphin = {
|
||||||
|
type = "monster",
|
||||||
|
spawn_class = "water",
|
||||||
|
can_despawn = true,
|
||||||
|
passive = true,
|
||||||
|
hp_min = 10,
|
||||||
|
hp_max = 10,
|
||||||
|
xp_min = 1,
|
||||||
|
xp_max = 3,
|
||||||
|
armor = 100,
|
||||||
|
walk_chance = 100,
|
||||||
|
breath_max = 120,
|
||||||
|
rotate = 270,
|
||||||
|
tilt_swim = true,
|
||||||
|
collisionbox = {-0.3, 0.0, -0.3, 0.3, 0.79, 0.3},
|
||||||
|
visual = "mesh",
|
||||||
|
mesh = "extra_mobs_dolphin.b3d",
|
||||||
|
textures = {
|
||||||
|
{"extra_mobs_dolphin.png"}
|
||||||
|
},
|
||||||
|
sounds = {
|
||||||
|
},
|
||||||
|
animation = {
|
||||||
|
stand_start = 20,
|
||||||
|
stand_end = 20,
|
||||||
|
walk_start = 0,
|
||||||
|
walk_end = 15,
|
||||||
|
run_start = 30,
|
||||||
|
run_end = 45,
|
||||||
|
},
|
||||||
|
drops = {
|
||||||
|
{name = "mcl_fishing:fish_raw",
|
||||||
|
chance = 1,
|
||||||
|
min = 0,
|
||||||
|
max = 1,},
|
||||||
|
},
|
||||||
|
visual_size = {x=3, y=3},
|
||||||
|
makes_footstep_sound = false,
|
||||||
|
swim = true,
|
||||||
|
breathes_in_water = true,
|
||||||
|
jump = false,
|
||||||
|
view_range = 16,
|
||||||
|
fear_height = 4,
|
||||||
|
walk_velocity = 3,
|
||||||
|
run_velocity = 6,
|
||||||
|
reach = 2,
|
||||||
|
damage = 2.5,
|
||||||
|
attack_type = "dogfight",
|
||||||
|
do_custom = function(self)
|
||||||
|
self.object:set_bone_position("body", vector.new(0,1,0), vector.new(degrees(dir_to_pitch(self.object:get_velocity())) * -1 + 90,0,0))
|
||||||
|
if minetest.get_item_group(self.standing_in, "water") ~= 0 then
|
||||||
|
if self.object:get_velocity().y < 5 then
|
||||||
|
self.object:add_velocity({ x = 0 , y = math.random(-.007, .007), z = 0 })
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|
||||||
|
mobs:register_mob("extra_mobs:dolphin", dolphin)
|
||||||
|
|
||||||
|
|
||||||
|
--spawning TODO: in schools
|
||||||
|
local water = mobs_mc.spawn_height.water + 1
|
||||||
|
mobs:spawn_specific(
|
||||||
|
"extra_mobs:dolphin",
|
||||||
|
"overworld",
|
||||||
|
"water",
|
||||||
|
{
|
||||||
|
"Mesa",
|
||||||
|
"FlowerForest",
|
||||||
|
"Swampland",
|
||||||
|
"Taiga",
|
||||||
|
"ExtremeHills",
|
||||||
|
"Jungle",
|
||||||
|
"Savanna",
|
||||||
|
"BirchForest",
|
||||||
|
"MegaSpruceTaiga",
|
||||||
|
"MegaTaiga",
|
||||||
|
"ExtremeHills+",
|
||||||
|
"Forest",
|
||||||
|
"Plains",
|
||||||
|
"Desert",
|
||||||
|
"ColdTaiga",
|
||||||
|
"MushroomIsland",
|
||||||
|
"IcePlainsSpikes",
|
||||||
|
"SunflowerPlains",
|
||||||
|
"IcePlains",
|
||||||
|
"RoofedForest",
|
||||||
|
"ExtremeHills+_snowtop",
|
||||||
|
"MesaPlateauFM_grasstop",
|
||||||
|
"JungleEdgeM",
|
||||||
|
"ExtremeHillsM",
|
||||||
|
"JungleM",
|
||||||
|
"BirchForestM",
|
||||||
|
"MesaPlateauF",
|
||||||
|
"MesaPlateauFM",
|
||||||
|
"MesaPlateauF_grasstop",
|
||||||
|
"MesaBryce",
|
||||||
|
"JungleEdge",
|
||||||
|
"SavannaM",
|
||||||
|
"FlowerForest_beach",
|
||||||
|
"Forest_beach",
|
||||||
|
"StoneBeach",
|
||||||
|
"ColdTaiga_beach_water",
|
||||||
|
"Taiga_beach",
|
||||||
|
"Savanna_beach",
|
||||||
|
"Plains_beach",
|
||||||
|
"ExtremeHills_beach",
|
||||||
|
"ColdTaiga_beach",
|
||||||
|
"Swampland_shore",
|
||||||
|
"MushroomIslandShore",
|
||||||
|
"JungleM_shore",
|
||||||
|
"Jungle_shore",
|
||||||
|
"MesaPlateauFM_sandlevel",
|
||||||
|
"MesaPlateauF_sandlevel",
|
||||||
|
"MesaBryce_sandlevel",
|
||||||
|
"Mesa_sandlevel",
|
||||||
|
"RoofedForest_ocean",
|
||||||
|
"JungleEdgeM_ocean",
|
||||||
|
"BirchForestM_ocean",
|
||||||
|
"BirchForest_ocean",
|
||||||
|
"IcePlains_deep_ocean",
|
||||||
|
"Jungle_deep_ocean",
|
||||||
|
"Savanna_ocean",
|
||||||
|
"MesaPlateauF_ocean",
|
||||||
|
"ExtremeHillsM_deep_ocean",
|
||||||
|
"Savanna_deep_ocean",
|
||||||
|
"SunflowerPlains_ocean",
|
||||||
|
"Swampland_deep_ocean",
|
||||||
|
"Swampland_ocean",
|
||||||
|
"MegaSpruceTaiga_deep_ocean",
|
||||||
|
"ExtremeHillsM_ocean",
|
||||||
|
"JungleEdgeM_deep_ocean",
|
||||||
|
"SunflowerPlains_deep_ocean",
|
||||||
|
"BirchForest_deep_ocean",
|
||||||
|
"IcePlainsSpikes_ocean",
|
||||||
|
"Mesa_ocean",
|
||||||
|
"StoneBeach_ocean",
|
||||||
|
"Plains_deep_ocean",
|
||||||
|
"JungleEdge_deep_ocean",
|
||||||
|
"SavannaM_deep_ocean",
|
||||||
|
"Desert_deep_ocean",
|
||||||
|
"Mesa_deep_ocean",
|
||||||
|
"ColdTaiga_deep_ocean",
|
||||||
|
"Plains_ocean",
|
||||||
|
"MesaPlateauFM_ocean",
|
||||||
|
"Forest_deep_ocean",
|
||||||
|
"JungleM_deep_ocean",
|
||||||
|
"FlowerForest_deep_ocean",
|
||||||
|
"MushroomIsland_ocean",
|
||||||
|
"MegaTaiga_ocean",
|
||||||
|
"StoneBeach_deep_ocean",
|
||||||
|
"IcePlainsSpikes_deep_ocean",
|
||||||
|
"ColdTaiga_ocean",
|
||||||
|
"SavannaM_ocean",
|
||||||
|
"MesaPlateauF_deep_ocean",
|
||||||
|
"MesaBryce_deep_ocean",
|
||||||
|
"ExtremeHills+_deep_ocean",
|
||||||
|
"ExtremeHills_ocean",
|
||||||
|
"MushroomIsland_deep_ocean",
|
||||||
|
"Forest_ocean",
|
||||||
|
"MegaTaiga_deep_ocean",
|
||||||
|
"JungleEdge_ocean",
|
||||||
|
"MesaBryce_ocean",
|
||||||
|
"MegaSpruceTaiga_ocean",
|
||||||
|
"ExtremeHills+_ocean",
|
||||||
|
"Jungle_ocean",
|
||||||
|
"RoofedForest_deep_ocean",
|
||||||
|
"IcePlains_ocean",
|
||||||
|
"FlowerForest_ocean",
|
||||||
|
"ExtremeHills_deep_ocean",
|
||||||
|
"MesaPlateauFM_deep_ocean",
|
||||||
|
"Desert_ocean",
|
||||||
|
"Taiga_ocean",
|
||||||
|
"BirchForestM_deep_ocean",
|
||||||
|
"Taiga_deep_ocean",
|
||||||
|
"JungleM_ocean",
|
||||||
|
"FlowerForest_underground",
|
||||||
|
"JungleEdge_underground",
|
||||||
|
"StoneBeach_underground",
|
||||||
|
"MesaBryce_underground",
|
||||||
|
"Mesa_underground",
|
||||||
|
"RoofedForest_underground",
|
||||||
|
"Jungle_underground",
|
||||||
|
"Swampland_underground",
|
||||||
|
"MushroomIsland_underground",
|
||||||
|
"BirchForest_underground",
|
||||||
|
"Plains_underground",
|
||||||
|
"MesaPlateauF_underground",
|
||||||
|
"ExtremeHills_underground",
|
||||||
|
"MegaSpruceTaiga_underground",
|
||||||
|
"BirchForestM_underground",
|
||||||
|
"SavannaM_underground",
|
||||||
|
"MesaPlateauFM_underground",
|
||||||
|
"Desert_underground",
|
||||||
|
"Savanna_underground",
|
||||||
|
"Forest_underground",
|
||||||
|
"SunflowerPlains_underground",
|
||||||
|
"ColdTaiga_underground",
|
||||||
|
"IcePlains_underground",
|
||||||
|
"IcePlainsSpikes_underground",
|
||||||
|
"MegaTaiga_underground",
|
||||||
|
"Taiga_underground",
|
||||||
|
"ExtremeHills+_underground",
|
||||||
|
"JungleM_underground",
|
||||||
|
"ExtremeHillsM_underground",
|
||||||
|
"JungleEdgeM_underground",
|
||||||
|
},
|
||||||
|
0,
|
||||||
|
minetest.LIGHT_MAX+1,
|
||||||
|
30,
|
||||||
|
4000,
|
||||||
|
3,
|
||||||
|
water-16,
|
||||||
|
water)
|
||||||
|
|
||||||
|
--spawn egg
|
||||||
|
mobs:register_egg("extra_mobs:dolphin", S("dolphin"), "extra_mobs_spawn_icon_dolphin.png", 0)
|
|
@ -0,0 +1,177 @@
|
||||||
|
--MCmobs v0.4
|
||||||
|
--maikerumine
|
||||||
|
--made for MC like Survival game
|
||||||
|
--License for code WTFPL and otherwise stated in readmes
|
||||||
|
local pi = math.pi
|
||||||
|
local atann = math.atan
|
||||||
|
local atan = function(x)
|
||||||
|
if not x or x ~= x then
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
return atann(x)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
local S = minetest.get_translator("extra_mobs")
|
||||||
|
|
||||||
|
--###################
|
||||||
|
--################### fox
|
||||||
|
--###################
|
||||||
|
|
||||||
|
local followitem = ""
|
||||||
|
if minetest.get_modpath("mc_sweet_berry") then
|
||||||
|
followitem = "mc_sweet_berry:sweet_berry"
|
||||||
|
else
|
||||||
|
followitem = nil
|
||||||
|
end
|
||||||
|
|
||||||
|
local fox = {
|
||||||
|
type = "monster",
|
||||||
|
passive = false,
|
||||||
|
spawn_class = "hostile",
|
||||||
|
hp_min = 10,
|
||||||
|
hp_max = 10,
|
||||||
|
xp_min = 1,
|
||||||
|
xp_max = 2,
|
||||||
|
armor = {fleshy = 90},
|
||||||
|
attack_type = "dogfight",
|
||||||
|
damage = 2,
|
||||||
|
reach = 1.5,
|
||||||
|
collisionbox = {-0.3, -0.01, -0.3, 0.3, 0.84, 0.3},
|
||||||
|
visual = "mesh",
|
||||||
|
mesh = "extra_mobs_fox.b3d",
|
||||||
|
textures = { {
|
||||||
|
"extra_mobs_fox.png",
|
||||||
|
"extra_mobs_trans.png",
|
||||||
|
} },
|
||||||
|
visual_size = {x=3, y=3},
|
||||||
|
sounds = {
|
||||||
|
},
|
||||||
|
jump = true,
|
||||||
|
makes_footstep_sound = true,
|
||||||
|
walk_velocity = 3,
|
||||||
|
run_velocity = 6,
|
||||||
|
drops = {
|
||||||
|
},
|
||||||
|
animation = {
|
||||||
|
stand_speed = 7,
|
||||||
|
walk_speed = 7,
|
||||||
|
run_speed = 15,
|
||||||
|
stand_start = 11,
|
||||||
|
stand_end = 11,
|
||||||
|
walk_start = 0,
|
||||||
|
walk_end = 10,
|
||||||
|
run_start = 0,
|
||||||
|
run_end = 10,
|
||||||
|
pounce_start = 11,
|
||||||
|
pounce_end = 31,
|
||||||
|
lay_start = 34,
|
||||||
|
lay_end = 34,
|
||||||
|
},
|
||||||
|
runaway = true,
|
||||||
|
on_spawn = function(self)
|
||||||
|
if minetest.find_node_near(self.object:get_pos(), 4, "mcl_core:snow") ~= nil or minetest.find_node_near(self.object:get_pos(), 4, "mcl_core:dirt_with_grass_snow") ~= nil then
|
||||||
|
self.object:set_properties({textures={"extra_mobs_artic_fox.png", "extra_mobs_trans.png"}})
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
do_custom = function(self)
|
||||||
|
if self.child == true then
|
||||||
|
self.object:set_properties({textures={self.base_texture[1], self.base_texture[1]}})
|
||||||
|
end
|
||||||
|
if self.state ~= "attack" and math.random(1, 5000) == 1 then
|
||||||
|
self.state = "lay"
|
||||||
|
self.object:set_animation({x= 12, y=16})
|
||||||
|
minetest.after(math.random(10, 500), function()
|
||||||
|
if self.state == "lay" then
|
||||||
|
self.state = "stand"
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
for _,object in pairs(minetest.get_objects_inside_radius(self.object:get_pos(), 8)) do
|
||||||
|
if object and not object:is_player() and object:get_luaentity() and object:get_luaentity().name == "extra_mobs:fox" and self.state ~= "attack" and math.random(1, 500) == 1 then
|
||||||
|
self.horny = true
|
||||||
|
end
|
||||||
|
local lp = object:get_pos()
|
||||||
|
local s = self.object:get_pos()
|
||||||
|
local vec = {
|
||||||
|
x = lp.x - s.x,
|
||||||
|
y = lp.y - s.y,
|
||||||
|
z = lp.z - s.z
|
||||||
|
}
|
||||||
|
if object and object:is_player() and not object:get_player_control().sneak or not object:is_player() and object:get_luaentity() and object:get_luaentity().name == "mobs_mc:wolf" then
|
||||||
|
self.state = "runaway"
|
||||||
|
self.object:set_rotation({x=0,y=(atan(vec.z / vec.x) + 3 * pi / 2) - self.rotate,z=0})
|
||||||
|
if self.reach > vector.distance(self.object:get_pos(), object:get_pos()) and self.timer > .9 then
|
||||||
|
self.timer = 0
|
||||||
|
object:punch(self.object, 1.0, {
|
||||||
|
full_punch_interval = 1.0,
|
||||||
|
damage_groups = {fleshy = self.damage}
|
||||||
|
}, nil)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
do_punch = function(self)
|
||||||
|
self.state = "runaway"
|
||||||
|
end,
|
||||||
|
follow = followitem,
|
||||||
|
fear_height = 4,
|
||||||
|
view_range = 16,
|
||||||
|
specific_attack = { "mobs_mc:chicken", "extra_mobs:cod", "extra_mobs:salmon" },
|
||||||
|
}
|
||||||
|
|
||||||
|
mobs:register_mob("extra_mobs:fox", fox)
|
||||||
|
|
||||||
|
-- spawning
|
||||||
|
mobs:spawn_specific(
|
||||||
|
"extra_mobs:fox",
|
||||||
|
"overworld",
|
||||||
|
"ground",
|
||||||
|
{
|
||||||
|
"FlowerForest",
|
||||||
|
"Swampland",
|
||||||
|
"Taiga",
|
||||||
|
"ExtremeHills",
|
||||||
|
"BirchForest",
|
||||||
|
"MegaSpruceTaiga",
|
||||||
|
"MegaTaiga",
|
||||||
|
"ExtremeHills+",
|
||||||
|
"Forest",
|
||||||
|
"Plains",
|
||||||
|
"ColdTaiga",
|
||||||
|
"SunflowerPlains",
|
||||||
|
"RoofedForest",
|
||||||
|
"MesaPlateauFM_grasstop",
|
||||||
|
"ExtremeHillsM",
|
||||||
|
"BirchForestM",
|
||||||
|
},
|
||||||
|
0,
|
||||||
|
minetest.LIGHT_MAX+1,
|
||||||
|
30,
|
||||||
|
6000,
|
||||||
|
3,
|
||||||
|
mobs_mc.spawn_height.water,
|
||||||
|
mobs_mc.spawn_height.overworld_max)
|
||||||
|
|
||||||
|
--mobs:spawn_specific("extra_mobs:fox", "overworld", "ground", 0, minetest.LIGHT_MAX+1, 30, 6000, 3, 0, 500)
|
||||||
|
--[[
|
||||||
|
mobs:spawn_specific(
|
||||||
|
"extra_mobs:artic_fox",
|
||||||
|
"overworld",
|
||||||
|
"ground",
|
||||||
|
{
|
||||||
|
"ColdTaiga",
|
||||||
|
"IcePlainsSpikes",
|
||||||
|
"IcePlains",
|
||||||
|
"ExtremeHills+_snowtop",
|
||||||
|
},
|
||||||
|
0,
|
||||||
|
minetest.LIGHT_MAX+1,
|
||||||
|
30,
|
||||||
|
6000,
|
||||||
|
3,
|
||||||
|
mobs_mc.spawn_height.water,
|
||||||
|
mobs_mc.spawn_height.overworld_max)
|
||||||
|
]]--
|
||||||
|
-- spawn eggs
|
||||||
|
mobs:register_egg("extra_mobs:fox", S("Fox"), "extra_mobs_spawn_icon_fox.png", 0)
|
|
@ -0,0 +1,233 @@
|
||||||
|
--MCmobs v0.4
|
||||||
|
--maikerumine
|
||||||
|
--made for MC like Survival game
|
||||||
|
--License for code WTFPL and otherwise stated in readmes
|
||||||
|
|
||||||
|
local S = minetest.get_translator("extra_mobs")
|
||||||
|
|
||||||
|
mobs:register_mob("extra_mobs:glow_squid",{
|
||||||
|
type = "animal",
|
||||||
|
spawn_class = "water",
|
||||||
|
can_despawn = true,
|
||||||
|
passive = true,
|
||||||
|
hp_min = 10,
|
||||||
|
hp_max = 10,
|
||||||
|
xp_min = 1,
|
||||||
|
xp_max = 3,
|
||||||
|
armor = 100,
|
||||||
|
rotate = 270,
|
||||||
|
tilt_swim = true,
|
||||||
|
-- FIXME: If the qlow squid is near the floor, it turns black
|
||||||
|
collisionbox = {-0.4, 0.0, -0.4, 0.4, 0.9, 0.4},
|
||||||
|
visual = "mesh",
|
||||||
|
mesh = "extra_mobs_glow_squid.b3d",
|
||||||
|
textures = {
|
||||||
|
{"extra_mobs_glow_squid.png"}
|
||||||
|
},
|
||||||
|
sounds = {
|
||||||
|
damage = {name="mobs_mc_squid_hurt", gain=0.3},
|
||||||
|
death = {name="mobs_mc_squid_death", gain=0.4},
|
||||||
|
flop = "mobs_mc_squid_flop",
|
||||||
|
distance = 16,
|
||||||
|
},
|
||||||
|
animation = {
|
||||||
|
stand_start = 1,
|
||||||
|
stand_end = 60,
|
||||||
|
walk_start = 1,
|
||||||
|
walk_end = 60,
|
||||||
|
run_start = 1,
|
||||||
|
run_end = 60,
|
||||||
|
},
|
||||||
|
drops = {
|
||||||
|
{name = "extra_mobs:glow_ink_sac",
|
||||||
|
chance = 1,
|
||||||
|
min = 1,
|
||||||
|
max = 3,
|
||||||
|
looting = "common",},
|
||||||
|
},
|
||||||
|
visual_size = {x=3, y=3},
|
||||||
|
makes_footstep_sound = false,
|
||||||
|
swim = true,
|
||||||
|
breathes_in_water = true,
|
||||||
|
jump = false,
|
||||||
|
view_range = 16,
|
||||||
|
runaway = true,
|
||||||
|
fear_height = 4,
|
||||||
|
glow = minetest.LIGHT_MAX,
|
||||||
|
do_custom = function(self, dtime)
|
||||||
|
local glowSquidPos = self.object:get_pos()
|
||||||
|
local chanceOfParticle = math.random(0, 2)
|
||||||
|
if chanceOfParticle >= 1 then
|
||||||
|
minetest.add_particle({
|
||||||
|
pos = {x=glowSquidPos.x+math.random(-2,2)*math.random()/2,y=glowSquidPos.y+math.random(-1,2),z=glowSquidPos.z+math.random(-2,2)*math.random()/2},
|
||||||
|
velocity = {x=math.random(-0.25,0.25), y=math.random(-0.25,0.25), z=math.random(-0.25,0.25)},
|
||||||
|
acceleration = {x=math.random(-0.5,0.5), y=math.random(-0.5,0.5), z=math.random(-0.5,0.5)},
|
||||||
|
expirationtime = math.random(),
|
||||||
|
size = 1.5 + math.random(),
|
||||||
|
collisiondetection = true,
|
||||||
|
vertical = false,
|
||||||
|
texture = "glint"..math.random(1, 4)..".png",
|
||||||
|
glow = minetest.LIGHT_MAX,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
end
|
||||||
|
})
|
||||||
|
|
||||||
|
-- spawning
|
||||||
|
|
||||||
|
local water = mobs_mc.spawn_height.water + 1
|
||||||
|
mobs:spawn_specific(
|
||||||
|
"extra_mobs:glow_squid",
|
||||||
|
"overworld",
|
||||||
|
"water",
|
||||||
|
{
|
||||||
|
"Mesa",
|
||||||
|
"FlowerForest",
|
||||||
|
"Swampland",
|
||||||
|
"Taiga",
|
||||||
|
"ExtremeHills",
|
||||||
|
"Jungle",
|
||||||
|
"Savanna",
|
||||||
|
"BirchForest",
|
||||||
|
"MegaSpruceTaiga",
|
||||||
|
"MegaTaiga",
|
||||||
|
"ExtremeHills+",
|
||||||
|
"Forest",
|
||||||
|
"Plains",
|
||||||
|
"Desert",
|
||||||
|
"ColdTaiga",
|
||||||
|
"MushroomIsland",
|
||||||
|
"IcePlainsSpikes",
|
||||||
|
"SunflowerPlains",
|
||||||
|
"IcePlains",
|
||||||
|
"RoofedForest",
|
||||||
|
"ExtremeHills+_snowtop",
|
||||||
|
"MesaPlateauFM_grasstop",
|
||||||
|
"JungleEdgeM",
|
||||||
|
"ExtremeHillsM",
|
||||||
|
"JungleM",
|
||||||
|
"BirchForestM",
|
||||||
|
"MesaPlateauF",
|
||||||
|
"MesaPlateauFM",
|
||||||
|
"MesaPlateauF_grasstop",
|
||||||
|
"MesaBryce",
|
||||||
|
"JungleEdge",
|
||||||
|
"SavannaM",
|
||||||
|
"FlowerForest_beach",
|
||||||
|
"Forest_beach",
|
||||||
|
"StoneBeach",
|
||||||
|
"ColdTaiga_beach_water",
|
||||||
|
"Taiga_beach",
|
||||||
|
"Savanna_beach",
|
||||||
|
"Plains_beach",
|
||||||
|
"ExtremeHills_beach",
|
||||||
|
"ColdTaiga_beach",
|
||||||
|
"Swampland_shore",
|
||||||
|
"MushroomIslandShore",
|
||||||
|
"JungleM_shore",
|
||||||
|
"Jungle_shore",
|
||||||
|
"MesaPlateauFM_sandlevel",
|
||||||
|
"MesaPlateauF_sandlevel",
|
||||||
|
"MesaBryce_sandlevel",
|
||||||
|
"Mesa_sandlevel",
|
||||||
|
"RoofedForest_ocean",
|
||||||
|
"JungleEdgeM_ocean",
|
||||||
|
"BirchForestM_ocean",
|
||||||
|
"BirchForest_ocean",
|
||||||
|
"IcePlains_deep_ocean",
|
||||||
|
"Jungle_deep_ocean",
|
||||||
|
"Savanna_ocean",
|
||||||
|
"MesaPlateauF_ocean",
|
||||||
|
"ExtremeHillsM_deep_ocean",
|
||||||
|
"Savanna_deep_ocean",
|
||||||
|
"SunflowerPlains_ocean",
|
||||||
|
"Swampland_deep_ocean",
|
||||||
|
"Swampland_ocean",
|
||||||
|
"MegaSpruceTaiga_deep_ocean",
|
||||||
|
"ExtremeHillsM_ocean",
|
||||||
|
"JungleEdgeM_deep_ocean",
|
||||||
|
"SunflowerPlains_deep_ocean",
|
||||||
|
"BirchForest_deep_ocean",
|
||||||
|
"IcePlainsSpikes_ocean",
|
||||||
|
"Mesa_ocean",
|
||||||
|
"StoneBeach_ocean",
|
||||||
|
"Plains_deep_ocean",
|
||||||
|
"JungleEdge_deep_ocean",
|
||||||
|
"SavannaM_deep_ocean",
|
||||||
|
"Desert_deep_ocean",
|
||||||
|
"Mesa_deep_ocean",
|
||||||
|
"ColdTaiga_deep_ocean",
|
||||||
|
"Plains_ocean",
|
||||||
|
"MesaPlateauFM_ocean",
|
||||||
|
"Forest_deep_ocean",
|
||||||
|
"JungleM_deep_ocean",
|
||||||
|
"FlowerForest_deep_ocean",
|
||||||
|
"MushroomIsland_ocean",
|
||||||
|
"MegaTaiga_ocean",
|
||||||
|
"StoneBeach_deep_ocean",
|
||||||
|
"IcePlainsSpikes_deep_ocean",
|
||||||
|
"ColdTaiga_ocean",
|
||||||
|
"SavannaM_ocean",
|
||||||
|
"MesaPlateauF_deep_ocean",
|
||||||
|
"MesaBryce_deep_ocean",
|
||||||
|
"ExtremeHills+_deep_ocean",
|
||||||
|
"ExtremeHills_ocean",
|
||||||
|
"MushroomIsland_deep_ocean",
|
||||||
|
"Forest_ocean",
|
||||||
|
"MegaTaiga_deep_ocean",
|
||||||
|
"JungleEdge_ocean",
|
||||||
|
"MesaBryce_ocean",
|
||||||
|
"MegaSpruceTaiga_ocean",
|
||||||
|
"ExtremeHills+_ocean",
|
||||||
|
"Jungle_ocean",
|
||||||
|
"RoofedForest_deep_ocean",
|
||||||
|
"IcePlains_ocean",
|
||||||
|
"FlowerForest_ocean",
|
||||||
|
"ExtremeHills_deep_ocean",
|
||||||
|
"MesaPlateauFM_deep_ocean",
|
||||||
|
"Desert_ocean",
|
||||||
|
"Taiga_ocean",
|
||||||
|
"BirchForestM_deep_ocean",
|
||||||
|
"Taiga_deep_ocean",
|
||||||
|
"JungleM_ocean",
|
||||||
|
"FlowerForest_underground",
|
||||||
|
"JungleEdge_underground",
|
||||||
|
"StoneBeach_underground",
|
||||||
|
"MesaBryce_underground",
|
||||||
|
"Mesa_underground",
|
||||||
|
"RoofedForest_underground",
|
||||||
|
"Jungle_underground",
|
||||||
|
"Swampland_underground",
|
||||||
|
"MushroomIsland_underground",
|
||||||
|
"BirchForest_underground",
|
||||||
|
"Plains_underground",
|
||||||
|
"MesaPlateauF_underground",
|
||||||
|
"ExtremeHills_underground",
|
||||||
|
"MegaSpruceTaiga_underground",
|
||||||
|
"BirchForestM_underground",
|
||||||
|
"SavannaM_underground",
|
||||||
|
"MesaPlateauFM_underground",
|
||||||
|
"Desert_underground",
|
||||||
|
"Savanna_underground",
|
||||||
|
"Forest_underground",
|
||||||
|
"SunflowerPlains_underground",
|
||||||
|
"ColdTaiga_underground",
|
||||||
|
"IcePlains_underground",
|
||||||
|
"IcePlainsSpikes_underground",
|
||||||
|
"MegaTaiga_underground",
|
||||||
|
"Taiga_underground",
|
||||||
|
"ExtremeHills+_underground",
|
||||||
|
"JungleM_underground",
|
||||||
|
"ExtremeHillsM_underground",
|
||||||
|
"JungleEdgeM_underground",
|
||||||
|
},
|
||||||
|
0,
|
||||||
|
minetest.LIGHT_MAX+1,
|
||||||
|
30,
|
||||||
|
10000,
|
||||||
|
3,
|
||||||
|
water-16,
|
||||||
|
water)
|
||||||
|
|
||||||
|
-- spawn egg
|
||||||
|
mobs:register_egg("extra_mobs:glow_squid", S("Glow Squid"), "extra_mobs_spawn_icon_glow_squid.png", 0)
|
|
@ -0,0 +1,329 @@
|
||||||
|
local S = minetest.get_translator("extra_mobs")
|
||||||
|
|
||||||
|
minetest.register_craftitem("extra_mobs:glow_ink_sac", {
|
||||||
|
description = S("Glow Ink Sac"),
|
||||||
|
_doc_items_longdesc = S("Use it to craft the Glow Item Frame."),
|
||||||
|
_doc_items_usagehelp = S("Use the Glow Ink Sac and the normal Item Frame to craft the Glow Item Frame."),
|
||||||
|
inventory_image = "extra_mobs_glow_ink_sac.png",
|
||||||
|
groups = { craftitem = 1 },
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
--------------------
|
||||||
|
|
||||||
|
--[[This mod is originally by Zeg9, but heavily modified for MineClone 2.
|
||||||
|
|
||||||
|
Model created by 22i, licensed under the
|
||||||
|
GNU GPLv3 <https://www.gnu.org/licenses/gpl-3.0.html>.
|
||||||
|
|
||||||
|
Source: <https://github.com/22i/amc>
|
||||||
|
]]
|
||||||
|
|
||||||
|
|
||||||
|
local VISUAL_SIZE = 0.3
|
||||||
|
|
||||||
|
minetest.register_entity("extra_mobs:glow_item_frame_item",{
|
||||||
|
hp_max = 1,
|
||||||
|
visual = "wielditem",
|
||||||
|
visual_size = {x=VISUAL_SIZE, y=VISUAL_SIZE},
|
||||||
|
physical = false,
|
||||||
|
pointable = false,
|
||||||
|
textures = { "blank.png" },
|
||||||
|
_texture = "blank.png",
|
||||||
|
_scale = 1,
|
||||||
|
glow = minetest.LIGHT_MAX,
|
||||||
|
|
||||||
|
on_activate = function(self, staticdata)
|
||||||
|
if staticdata ~= nil and staticdata ~= "" then
|
||||||
|
local data = staticdata:split(';')
|
||||||
|
if data and data[1] and data[2] then
|
||||||
|
self._nodename = data[1]
|
||||||
|
self._texture = data[2]
|
||||||
|
if data[3] then
|
||||||
|
self._scale = data[3]
|
||||||
|
else
|
||||||
|
self._scale = 1
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
if self._texture ~= nil then
|
||||||
|
self.object:set_properties({
|
||||||
|
textures={self._texture},
|
||||||
|
visual_size={x=VISUAL_SIZE/self._scale, y=VISUAL_SIZE/self._scale},
|
||||||
|
})
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
get_staticdata = function(self)
|
||||||
|
if self._nodename ~= nil and self._texture ~= nil then
|
||||||
|
local ret = self._nodename .. ';' .. self._texture
|
||||||
|
if self._scale ~= nil then
|
||||||
|
ret = ret .. ';' .. self._scale
|
||||||
|
end
|
||||||
|
return ret
|
||||||
|
end
|
||||||
|
return ""
|
||||||
|
end,
|
||||||
|
|
||||||
|
_update_texture = function(self)
|
||||||
|
if self._texture ~= nil then
|
||||||
|
self.object:set_properties({
|
||||||
|
textures={self._texture},
|
||||||
|
visual_size={x=VISUAL_SIZE/self._scale, y=VISUAL_SIZE/self._scale},
|
||||||
|
})
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
local facedir = {}
|
||||||
|
facedir[0] = {x=0,y=0,z=1}
|
||||||
|
facedir[1] = {x=1,y=0,z=0}
|
||||||
|
facedir[2] = {x=0,y=0,z=-1}
|
||||||
|
facedir[3] = {x=-1,y=0,z=0}
|
||||||
|
|
||||||
|
local remove_item_entity = function(pos, node)
|
||||||
|
local objs = nil
|
||||||
|
if node.name == "extra_mobs:glow_item_frame" then
|
||||||
|
objs = minetest.get_objects_inside_radius(pos, .5)
|
||||||
|
end
|
||||||
|
if objs then
|
||||||
|
for _, obj in ipairs(objs) do
|
||||||
|
if obj and obj:get_luaentity() and obj:get_luaentity().name == "extra_mobs:glow_item_frame_item" then
|
||||||
|
obj:remove()
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
local update_item_entity = function(pos, node, param2)
|
||||||
|
remove_item_entity(pos, node)
|
||||||
|
local meta = minetest.get_meta(pos)
|
||||||
|
local inv = meta:get_inventory()
|
||||||
|
local item = inv:get_stack("main", 1)
|
||||||
|
if not item:is_empty() then
|
||||||
|
if not param2 then
|
||||||
|
param2 = node.param2
|
||||||
|
end
|
||||||
|
if node.name == "extra_mobs:glow_item_frame" then
|
||||||
|
local posad = facedir[param2]
|
||||||
|
pos.x = pos.x + posad.x*6.5/16
|
||||||
|
pos.y = pos.y + posad.y*6.5/16
|
||||||
|
pos.z = pos.z + posad.z*6.5/16
|
||||||
|
end
|
||||||
|
local e = minetest.add_entity(pos, "extra_mobs:glow_item_frame_item")
|
||||||
|
local lua = e:get_luaentity()
|
||||||
|
lua._nodename = node.name
|
||||||
|
local itemname = item:get_name()
|
||||||
|
if itemname == "" or itemname == nil then
|
||||||
|
lua._texture = "blank.png"
|
||||||
|
lua._scale = 1
|
||||||
|
else
|
||||||
|
lua._texture = itemname
|
||||||
|
local def = minetest.registered_items[itemname]
|
||||||
|
if def and def.wield_scale then
|
||||||
|
lua._scale = def.wield_scale.x
|
||||||
|
else
|
||||||
|
lua._scale = 1
|
||||||
|
end
|
||||||
|
end
|
||||||
|
lua:_update_texture()
|
||||||
|
if node.name == "extra_mobs:glow_item_frame" then
|
||||||
|
local yaw = math.pi*2 - param2 * math.pi/2
|
||||||
|
e:set_yaw(yaw)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
local drop_item = function(pos, node, meta, clicker)
|
||||||
|
local cname = ""
|
||||||
|
if clicker and clicker:is_player() then
|
||||||
|
cname = clicker:get_player_name()
|
||||||
|
end
|
||||||
|
if node.name == "extra_mobs:glow_item_frame" and not minetest.is_creative_enabled(cname) then
|
||||||
|
local inv = meta:get_inventory()
|
||||||
|
local item = inv:get_stack("main", 1)
|
||||||
|
if not item:is_empty() then
|
||||||
|
minetest.add_item(pos, item)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
meta:set_string("infotext", "")
|
||||||
|
remove_item_entity(pos, node)
|
||||||
|
end
|
||||||
|
|
||||||
|
minetest.register_node("extra_mobs:glow_item_frame",{
|
||||||
|
description = S("Glow Item Frame"),
|
||||||
|
_tt_help = S("Can hold an item and glows"),
|
||||||
|
_doc_items_longdesc = S("Glow Item frames are decorative blocks in which items can be placed."),
|
||||||
|
_doc_items_usagehelp = S("Just place any item on the item frame. Use the item frame again to retrieve the item."),
|
||||||
|
drawtype = "mesh",
|
||||||
|
is_ground_content = false,
|
||||||
|
mesh = "extra_mobs_glow_item_frame.obj",
|
||||||
|
selection_box = { type = "fixed", fixed = {-6/16, -6/16, 7/16, 6/16, 6/16, 0.5} },
|
||||||
|
collision_box = { type = "fixed", fixed = {-6/16, -6/16, 7/16, 6/16, 6/16, 0.5} },
|
||||||
|
tiles = {"extra_mobs_glow_item_frame_border.png", "extra_mobs_glow_item_frame_border.png", "extra_mobs_glow_item_frame_border.png", "extra_mobs_glow_item_frame_border.png", "extra_mobs_glow_item_frame_border.png", "extra_mobs_glow_item_frame_border.png"},
|
||||||
|
inventory_image = "extra_mobs_glow_item_frame_item.png",
|
||||||
|
wield_image = "extra_mobs_glow_item_frame.png",
|
||||||
|
paramtype = "light",
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
|
||||||
|
--FIXME: should only be glowing, no light source. How is that possible with a node?
|
||||||
|
light_source = 1,
|
||||||
|
|
||||||
|
sunlight_propagates = true,
|
||||||
|
groups = { dig_immediate=3,deco_block=1,dig_by_piston=1,container=7,attached_node_facedir=1 },
|
||||||
|
sounds = mcl_sounds.node_sound_defaults(),
|
||||||
|
node_placement_prediction = "",
|
||||||
|
on_place = function(itemstack, placer, pointed_thing)
|
||||||
|
if pointed_thing.type ~= "node" then
|
||||||
|
return itemstack
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Use pointed node's on_rightclick function first, if present
|
||||||
|
local node = minetest.get_node(pointed_thing.under)
|
||||||
|
if placer and not placer:get_player_control().sneak then
|
||||||
|
if minetest.registered_nodes[node.name] and minetest.registered_nodes[node.name].on_rightclick then
|
||||||
|
return minetest.registered_nodes[node.name].on_rightclick(pointed_thing.under, node, placer, itemstack) or itemstack
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
return minetest.item_place(itemstack, placer, pointed_thing, minetest.dir_to_facedir(vector.direction(pointed_thing.above, pointed_thing.under)))
|
||||||
|
end,
|
||||||
|
on_construct = function(pos)
|
||||||
|
local meta = minetest.get_meta(pos)
|
||||||
|
local inv = meta:get_inventory()
|
||||||
|
inv:set_size("main", 1)
|
||||||
|
end,
|
||||||
|
on_rightclick = function(pos, node, clicker, itemstack)
|
||||||
|
if not itemstack then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
local pname = clicker:get_player_name()
|
||||||
|
if minetest.is_protected(pos, pname) then
|
||||||
|
minetest.record_protection_violation(pos, pname)
|
||||||
|
return
|
||||||
|
end
|
||||||
|
local meta = minetest.get_meta(pos)
|
||||||
|
drop_item(pos, node, meta, clicker)
|
||||||
|
local inv = meta:get_inventory()
|
||||||
|
if itemstack:is_empty() then
|
||||||
|
remove_item_entity(pos, node)
|
||||||
|
meta:set_string("infotext", "")
|
||||||
|
inv:set_stack("main", 1, "")
|
||||||
|
return itemstack
|
||||||
|
end
|
||||||
|
local put_itemstack = ItemStack(itemstack)
|
||||||
|
put_itemstack:set_count(1)
|
||||||
|
inv:set_stack("main", 1, put_itemstack)
|
||||||
|
update_item_entity(pos, node)
|
||||||
|
-- Add node infotext when item has been named
|
||||||
|
local imeta = itemstack:get_meta()
|
||||||
|
local iname = imeta:get_string("name")
|
||||||
|
if iname then
|
||||||
|
meta:set_string("infotext", iname)
|
||||||
|
end
|
||||||
|
|
||||||
|
if not minetest.is_creative_enabled(clicker:get_player_name()) then
|
||||||
|
itemstack:take_item()
|
||||||
|
end
|
||||||
|
return itemstack
|
||||||
|
end,
|
||||||
|
allow_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
|
||||||
|
local name = player:get_player_name()
|
||||||
|
if minetest.is_protected(pos, name) then
|
||||||
|
minetest.record_protection_violation(pos, name)
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
return count
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
allow_metadata_inventory_take = function(pos, listname, index, stack, player)
|
||||||
|
local name = player:get_player_name()
|
||||||
|
if minetest.is_protected(pos, name) then
|
||||||
|
minetest.record_protection_violation(pos, name)
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
return stack:get_count()
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
allow_metadata_inventory_put = function(pos, listname, index, stack, player)
|
||||||
|
local name = player:get_player_name()
|
||||||
|
if minetest.is_protected(pos, name) then
|
||||||
|
minetest.record_protection_violation(pos, name)
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
return stack:get_count()
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
on_destruct = function(pos)
|
||||||
|
local meta = minetest.get_meta(pos)
|
||||||
|
local node = minetest.get_node(pos)
|
||||||
|
drop_item(pos, node, meta)
|
||||||
|
end,
|
||||||
|
on_rotate = function(pos, node, user, mode, param2)
|
||||||
|
if mode == screwdriver.ROTATE_FACE then
|
||||||
|
-- Rotate face
|
||||||
|
local meta = minetest.get_meta(pos)
|
||||||
|
local node = minetest.get_node(pos)
|
||||||
|
|
||||||
|
local objs = nil
|
||||||
|
if node.name == "extra_mobs:glow_item_frame" then
|
||||||
|
objs = minetest.get_objects_inside_radius(pos, .5)
|
||||||
|
end
|
||||||
|
if objs then
|
||||||
|
for _, obj in ipairs(objs) do
|
||||||
|
if obj and obj:get_luaentity() and obj:get_luaentity().name == "extra_mobs:glow_item_frame_item" then
|
||||||
|
update_item_entity(pos, node, (node.param2+1) % 4)
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
return
|
||||||
|
elseif mode == screwdriver.ROTATE_AXIS then
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = 'extra_mobs:glow_item_frame',
|
||||||
|
recipe = {'mcl_itemframes:item_frame', 'extra_mobs:glow_ink_sac'},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_lbm({
|
||||||
|
label = "Update legacy item frames",
|
||||||
|
name = "extra_mobs:update_legacy_glow_item_frames",
|
||||||
|
nodenames = {"extra_mobs:glow_frame"},
|
||||||
|
action = function(pos, node)
|
||||||
|
-- Swap legacy node, then respawn entity
|
||||||
|
node.name = "extra_mobs:glow_item_frame"
|
||||||
|
local meta = minetest.get_meta(pos)
|
||||||
|
local item = meta:get_string("item")
|
||||||
|
minetest.swap_node(pos, node)
|
||||||
|
if item ~= "" then
|
||||||
|
local itemstack = ItemStack(minetest.deserialize(meta:get_string("itemdata")))
|
||||||
|
local inv = meta:get_inventory()
|
||||||
|
inv:set_size("main", 1)
|
||||||
|
if not itemstack:is_empty() then
|
||||||
|
inv:set_stack("main", 1, itemstack)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
update_item_entity(pos, node)
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
|
-- FIXME: Item entities can get destroyed by /clearobjects
|
||||||
|
minetest.register_lbm({
|
||||||
|
label = "Respawn item frame item entities",
|
||||||
|
name = "extra_mobs:respawn_entities",
|
||||||
|
nodenames = {"extra_mobs:glow_item_frame"},
|
||||||
|
run_at_every_load = true,
|
||||||
|
action = function(pos, node)
|
||||||
|
update_item_entity(pos, node)
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_alias("extra_mobs:glow_frame", "extra_mobs:glow_item_frame")
|
||||||
|
|
||||||
|
--------------------
|
|
@ -0,0 +1,85 @@
|
||||||
|
local S = minetest.get_translator("extra_mobs")
|
||||||
|
|
||||||
|
local pr = PseudoRandom(os.time()*(-334))
|
||||||
|
|
||||||
|
minetest.register_entity("extra_mobs:hb_eye", {
|
||||||
|
visual = "mesh",
|
||||||
|
mesh = "mcl_armor_character.b3d",
|
||||||
|
textures = {"extra_mobs_herobrine_eyes.png", "extra_mobs_trans.png", "extra_mobs_trans.png" },
|
||||||
|
visual_size = {x=1, y=1},
|
||||||
|
on_activate = function(self)
|
||||||
|
for _,hb in pairs(minetest.get_objects_inside_radius(self.object:get_pos(), 1)) do
|
||||||
|
if not hb:is_player() and hb:get_luaentity().name == "extra_mobs:herobrine" then
|
||||||
|
self.object:set_attach(hb, "Head", {x=0,y=-13.5,z=0}, {x=0,y=0,z=0})
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
do_custom = function(self)
|
||||||
|
if self.object:get_attach() == nil then
|
||||||
|
self.object:remove()
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
glow = 10
|
||||||
|
})
|
||||||
|
|
||||||
|
mobs:register_mob("extra_mobs:herobrine", {
|
||||||
|
type = "monster",
|
||||||
|
spawn_class = "hostile",
|
||||||
|
hp_min = 20,
|
||||||
|
hp_max = 20,
|
||||||
|
xp_min = 1000,
|
||||||
|
xp_max = 1000,
|
||||||
|
collisionbox = {-0.3, -0.01, -0.3, 0.3, 2, 0.3},
|
||||||
|
visual = "mesh",
|
||||||
|
mesh = "mcl_armor_character.b3d",
|
||||||
|
textures = {"character.png", "extra_mobs_trans.png", "extra_mobs_trans.png" },
|
||||||
|
visual_size = {x=1, y=1},
|
||||||
|
makes_footstep_sound = false,
|
||||||
|
walk_velocity = 0,
|
||||||
|
run_velocity = 0,
|
||||||
|
damage = 10,
|
||||||
|
reach = 1,
|
||||||
|
armor = {fleshy = 0},
|
||||||
|
view_range = 1000,
|
||||||
|
attack_type = "dogfight",
|
||||||
|
can_despawn = false,
|
||||||
|
on_spawn = function(self)
|
||||||
|
--if self.object:get_children() == nil then
|
||||||
|
minetest.add_entity(self.object:get_pos(), "extra_mobs:hb_eye")
|
||||||
|
--end
|
||||||
|
end,
|
||||||
|
do_custom = function(self)
|
||||||
|
for _,object in pairs(minetest.get_objects_inside_radius(self.object:get_pos(), 30)) do
|
||||||
|
if object:is_player() then
|
||||||
|
pos = self.object:get_pos()
|
||||||
|
local randomCube = vector.new( pos.x + 8*(pr:next(0,16)-8), pos.y + 8*(pr:next(0,16)-8), pos.z + 8*(pr:next(0,16)-8) )
|
||||||
|
local nodes = minetest.find_nodes_in_area_under_air(vector.subtract(randomCube, 4), vector.add(randomCube, 4), {"group:solid", "group:cracky", "group:crumbly"})
|
||||||
|
local telepos
|
||||||
|
if nodes ~= nil then
|
||||||
|
if #nodes > 0 then
|
||||||
|
-- Up to 64 attempts to teleport
|
||||||
|
for n=1, math.min(64, #nodes) do
|
||||||
|
local r = pr:next(1, #nodes)
|
||||||
|
local nodepos = nodes[r]
|
||||||
|
local node_ok = true
|
||||||
|
-- Selected node needs to have 3 nodes of free space above
|
||||||
|
for u=1, 3 do
|
||||||
|
local node = minetest.get_node({x=nodepos.x, y=nodepos.y+u, z=nodepos.z})
|
||||||
|
if minetest.registered_nodes[node.name].walkable then
|
||||||
|
node_ok = false
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
if node_ok then
|
||||||
|
telepos = {x=nodepos.x, y=nodepos.y+1, z=nodepos.z}
|
||||||
|
end
|
||||||
|
end
|
||||||
|
if telepos then
|
||||||
|
self.object:set_pos(telepos)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
})
|
|
@ -0,0 +1,134 @@
|
||||||
|
--MCmobs v0.4
|
||||||
|
--maikerumine
|
||||||
|
--made for MC like Survival game
|
||||||
|
--License for code WTFPL and otherwise stated in readmes
|
||||||
|
|
||||||
|
local S = minetest.get_translator("extra_mobs")
|
||||||
|
|
||||||
|
--###################
|
||||||
|
--################### hoglin
|
||||||
|
--###################
|
||||||
|
|
||||||
|
local hoglin = {
|
||||||
|
type = "monster",
|
||||||
|
passive = false,
|
||||||
|
spawn_class = "hostile",
|
||||||
|
hp_min = 40,
|
||||||
|
hp_max = 40,
|
||||||
|
xp_min = 9,
|
||||||
|
xp_max = 9,
|
||||||
|
armor = {fleshy = 90},
|
||||||
|
attack_type = "dogfight",
|
||||||
|
damage = 4,
|
||||||
|
reach = 3,
|
||||||
|
collisionbox = {-.6, -0.01, -.6, .6, 1.4, .6},
|
||||||
|
visual = "mesh",
|
||||||
|
mesh = "extra_mobs_hoglin.b3d",
|
||||||
|
textures = { {
|
||||||
|
"extra_mobs_hoglin.png",
|
||||||
|
} },
|
||||||
|
visual_size = {x=3, y=3},
|
||||||
|
sounds = {
|
||||||
|
random = "extra_mobs_hoglin",
|
||||||
|
damage = "extra_mobs_hoglin_hurt",
|
||||||
|
distance = 16,
|
||||||
|
},
|
||||||
|
jump = true,
|
||||||
|
makes_footstep_sound = true,
|
||||||
|
walk_velocity = 1,
|
||||||
|
run_velocity = 4,
|
||||||
|
drops = {
|
||||||
|
{name = "mcl_mobsitems:leather",
|
||||||
|
chance = 1,
|
||||||
|
min = 0,
|
||||||
|
max = 1,},
|
||||||
|
},
|
||||||
|
drops = {
|
||||||
|
{name = "mcl_mobitems:porkchop",
|
||||||
|
chance = 1,
|
||||||
|
min = 2,
|
||||||
|
max = 4,},
|
||||||
|
},
|
||||||
|
animation = {
|
||||||
|
stand_speed = 7,
|
||||||
|
walk_speed = 7,
|
||||||
|
run_speed = 15,
|
||||||
|
stand_start = 24,
|
||||||
|
stand_end = 24,
|
||||||
|
walk_start = 11,
|
||||||
|
walk_end = 21,
|
||||||
|
run_start = 1,
|
||||||
|
run_end = 10,
|
||||||
|
punch_start = 22,
|
||||||
|
punch_end = 32,
|
||||||
|
},
|
||||||
|
fear_height = 4,
|
||||||
|
view_range = 32,
|
||||||
|
floats = 0,
|
||||||
|
custom_attack = function(self)
|
||||||
|
if self.state == "attack" and self.reach > vector.distance(self.object:get_pos(), self.attack:get_pos()) then
|
||||||
|
self.attack:add_velocity({x=0,y=13,z=0})
|
||||||
|
self.attack:punch(self.object, 1.0, {
|
||||||
|
full_punch_interval = 1.0,
|
||||||
|
damage_groups = {fleshy = self.damage}
|
||||||
|
}, nil)
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
do_custom = function(self)
|
||||||
|
if self.object:get_pos().y > -100 then
|
||||||
|
local zog = minetest.add_entity(self.object:get_pos(), "extra_mobs:zoglin")
|
||||||
|
zog:set_rotation(self.object:get_rotation())
|
||||||
|
self.object:remove()
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
attack_animals = true,
|
||||||
|
}
|
||||||
|
|
||||||
|
mobs:register_mob("extra_mobs:hoglin", hoglin)
|
||||||
|
|
||||||
|
local zoglin = table.copy(hoglin)
|
||||||
|
zoglin.fire_resistant = 1
|
||||||
|
zoglin.textures = {"extra_mobs_zoglin.png"}
|
||||||
|
zoglin.do_custom = function()
|
||||||
|
return
|
||||||
|
end
|
||||||
|
zoglin.attacks_monsters = true
|
||||||
|
zoglin.lava_damage = 0
|
||||||
|
zoglin.fire_damage = 0
|
||||||
|
mobs:register_mob("extra_mobs:zoglin", zoglin)
|
||||||
|
|
||||||
|
-- Baby hoglin.
|
||||||
|
--[[
|
||||||
|
local baby_hoglin = table.copy(hoglin)
|
||||||
|
baby_hoglin.collisionbox = {-.3, -0.01, -.3, .3, 0.94, .3}
|
||||||
|
baby_hoglin.xp_min = 20
|
||||||
|
baby_hoglin.xp_max = 20
|
||||||
|
baby_hoglin.visual_size = {x=hoglin.visual_size.x/2, y=hoglin.visual_size.y/2}
|
||||||
|
textures = { {
|
||||||
|
"extra_mobs_hoglin.png",
|
||||||
|
"extra_mobs_trans.png",
|
||||||
|
} }
|
||||||
|
baby_hoglin.walk_velocity = 1.2
|
||||||
|
baby_hoglin.run_velocity = 2.4
|
||||||
|
baby_hoglin.child = 1
|
||||||
|
|
||||||
|
mobs:register_mob("extra_mobs:baby_hoglin", baby_hoglin)]]
|
||||||
|
|
||||||
|
-- Regular spawning in the Nether
|
||||||
|
mobs:spawn_specific(
|
||||||
|
"extra_mobs:hoglin",
|
||||||
|
"nether",
|
||||||
|
"ground",
|
||||||
|
{
|
||||||
|
"Nether"
|
||||||
|
},
|
||||||
|
0,
|
||||||
|
minetest.LIGHT_MAX+1,
|
||||||
|
30,
|
||||||
|
6000,
|
||||||
|
3,
|
||||||
|
mobs_mc.spawn_height.nether_min,
|
||||||
|
mobs_mc.spawn_height.nether_max)
|
||||||
|
|
||||||
|
-- spawn eggs
|
||||||
|
mobs:register_egg("extra_mobs:hoglin", S("Hoglin"), "extra_mobs_spawn_icon_hoglin.png", 0)
|
|
@ -0,0 +1,28 @@
|
||||||
|
--MCmobs v0.4
|
||||||
|
--maikerumine
|
||||||
|
--made for MC like Survival game
|
||||||
|
--License for code WTFPL and otherwise stated in readmes
|
||||||
|
|
||||||
|
local path = minetest.get_modpath("extra_mobs")
|
||||||
|
|
||||||
|
if not minetest.get_modpath("mobs_mc_gameconfig") then
|
||||||
|
mobs_mc = {}
|
||||||
|
end
|
||||||
|
|
||||||
|
--Monsters
|
||||||
|
dofile(path .. "/herobrine.lua")
|
||||||
|
dofile(path .. "/hoglin+zoglin.lua")
|
||||||
|
dofile(path .. "/piglin.lua")
|
||||||
|
|
||||||
|
--Animals
|
||||||
|
dofile(path .. "/strider.lua")
|
||||||
|
dofile(path .. "/fox.lua")
|
||||||
|
dofile(path .. "/cod.lua")
|
||||||
|
dofile(path .. "/salmon.lua")
|
||||||
|
dofile(path .. "/dolphin.lua")
|
||||||
|
dofile(path .. "/glow_squid.lua")
|
||||||
|
|
||||||
|
--Items
|
||||||
|
dofile(path .. "/glow_squid_items.lua")
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
name = extra_mobs
|
||||||
|
depends = mcl_mobs, mobs_mc
|
||||||
|
optional_depends = mc_warped_fungus_stick, mc_sweet_berry
|
|
@ -0,0 +1,156 @@
|
||||||
|
# Blender v2.76 (sub 0) OBJ File: 'itemframe1facedir.blend'
|
||||||
|
# www.blender.org
|
||||||
|
mtllib itemframe1facedir.mtl
|
||||||
|
o right.frame_Cube.005
|
||||||
|
v -0.313413 -0.313413 0.435326
|
||||||
|
v -0.313413 0.313413 0.435326
|
||||||
|
v -0.313413 -0.313413 0.498008
|
||||||
|
v -0.313413 0.313413 0.498008
|
||||||
|
v -0.376095 -0.313413 0.435326
|
||||||
|
v -0.376095 0.313413 0.435326
|
||||||
|
v -0.376095 -0.313413 0.498008
|
||||||
|
v -0.376095 0.313413 0.498008
|
||||||
|
vt 0.875000 0.812500
|
||||||
|
vt 0.812500 0.812500
|
||||||
|
vt 0.812500 0.187500
|
||||||
|
vt 0.875000 0.187500
|
||||||
|
vt 1.000000 0.812500
|
||||||
|
vt 0.937500 0.812500
|
||||||
|
vt 0.937500 0.187500
|
||||||
|
vt 1.000000 0.187500
|
||||||
|
vt -0.000000 0.937500
|
||||||
|
vt 0.062500 0.937500
|
||||||
|
vt 0.062500 1.000000
|
||||||
|
vt -0.000000 1.000000
|
||||||
|
vn 1.000000 0.000000 -0.000000
|
||||||
|
vn 0.000000 0.000000 1.000000
|
||||||
|
vn -1.000000 0.000000 0.000000
|
||||||
|
vn -0.000000 0.000000 -1.000000
|
||||||
|
vn 0.000000 -1.000000 -0.000000
|
||||||
|
vn 0.000000 1.000000 0.000000
|
||||||
|
usemtl None
|
||||||
|
s off
|
||||||
|
f 2/1/1 4/2/1 3/3/1 1/4/1
|
||||||
|
f 4/1/2 8/2/2 7/3/2 3/4/2
|
||||||
|
f 8/5/3 6/6/3 5/7/3 7/8/3
|
||||||
|
f 6/1/4 2/2/4 1/3/4 5/4/4
|
||||||
|
f 1/9/5 3/10/5 7/11/5 5/12/5
|
||||||
|
f 6/9/6 8/10/6 4/11/6 2/12/6
|
||||||
|
o left.frame_Cube.004
|
||||||
|
v 0.376095 -0.313413 0.435326
|
||||||
|
v 0.376095 0.313413 0.435326
|
||||||
|
v 0.376095 -0.313413 0.498008
|
||||||
|
v 0.376095 0.313413 0.498008
|
||||||
|
v 0.313413 -0.313413 0.435326
|
||||||
|
v 0.313413 0.313413 0.435326
|
||||||
|
v 0.313413 -0.313413 0.498008
|
||||||
|
v 0.313413 0.313413 0.498008
|
||||||
|
vt 0.875000 0.812500
|
||||||
|
vt 0.812500 0.812500
|
||||||
|
vt 0.812500 0.187500
|
||||||
|
vt 0.875000 0.187500
|
||||||
|
vt 1.000000 0.812500
|
||||||
|
vt 0.937500 0.812500
|
||||||
|
vt 0.937500 0.187500
|
||||||
|
vt 1.000000 0.187500
|
||||||
|
vt -0.000000 0.937500
|
||||||
|
vt 0.062500 0.937500
|
||||||
|
vt 0.062500 1.000000
|
||||||
|
vt -0.000000 1.000000
|
||||||
|
vn 1.000000 0.000000 -0.000000
|
||||||
|
vn 0.000000 0.000000 1.000000
|
||||||
|
vn -1.000000 0.000000 0.000000
|
||||||
|
vn 0.000000 0.000000 -1.000000
|
||||||
|
vn 0.000000 -1.000000 -0.000000
|
||||||
|
vn 0.000000 1.000000 0.000000
|
||||||
|
usemtl None
|
||||||
|
s off
|
||||||
|
f 10/13/7 12/14/7 11/15/7 9/16/7
|
||||||
|
f 12/13/8 16/14/8 15/15/8 11/16/8
|
||||||
|
f 16/17/9 14/18/9 13/19/9 15/20/9
|
||||||
|
f 14/13/10 10/14/10 9/15/10 13/16/10
|
||||||
|
f 9/21/11 11/22/11 15/23/11 13/24/11
|
||||||
|
f 14/21/12 16/22/12 12/23/12 10/24/12
|
||||||
|
o lower.frame_Cube.003
|
||||||
|
v 0.376095 -0.376095 0.435326
|
||||||
|
v 0.376095 -0.313413 0.435326
|
||||||
|
v 0.376095 -0.376095 0.498008
|
||||||
|
v 0.376095 -0.313413 0.498008
|
||||||
|
v -0.376095 -0.376095 0.435326
|
||||||
|
v -0.376095 -0.313413 0.435326
|
||||||
|
v -0.376095 -0.376095 0.498008
|
||||||
|
v -0.376095 -0.313413 0.498008
|
||||||
|
vt 0.187500 0.187500
|
||||||
|
vt 0.125000 0.187500
|
||||||
|
vt 0.125000 0.125000
|
||||||
|
vt 0.187500 0.125000
|
||||||
|
vt 0.875000 0.187500
|
||||||
|
vt 0.875000 0.125000
|
||||||
|
vt 0.812500 0.187500
|
||||||
|
vt 0.812500 0.125000
|
||||||
|
vt 0.875000 0.937500
|
||||||
|
vt 0.875000 1.000000
|
||||||
|
vt 0.125000 1.000000
|
||||||
|
vt 0.125000 0.937500
|
||||||
|
vn 1.000000 0.000000 0.000000
|
||||||
|
vn 0.000000 0.000000 1.000000
|
||||||
|
vn -1.000000 0.000000 0.000000
|
||||||
|
vn -0.000000 0.000000 -1.000000
|
||||||
|
vn 0.000000 -1.000000 0.000000
|
||||||
|
vn 0.000000 1.000000 0.000000
|
||||||
|
usemtl None
|
||||||
|
s off
|
||||||
|
f 18/25/13 20/26/13 19/27/13 17/28/13
|
||||||
|
f 20/29/14 24/26/14 23/27/14 19/30/14
|
||||||
|
f 24/29/15 22/31/15 21/32/15 23/30/15
|
||||||
|
f 22/29/16 18/26/16 17/27/16 21/30/16
|
||||||
|
f 17/33/17 19/34/17 23/35/17 21/36/17
|
||||||
|
f 22/30/18 24/29/18 20/26/18 18/27/18
|
||||||
|
o upper.frame_Cube.002
|
||||||
|
v 0.376095 0.313413 0.435326
|
||||||
|
v 0.376095 0.376095 0.435326
|
||||||
|
v 0.376095 0.313413 0.498008
|
||||||
|
v 0.376095 0.376095 0.498008
|
||||||
|
v -0.376095 0.313413 0.435326
|
||||||
|
v -0.376095 0.376095 0.435326
|
||||||
|
v -0.376095 0.313413 0.498008
|
||||||
|
v -0.376095 0.376095 0.498008
|
||||||
|
vt 0.187500 0.875000
|
||||||
|
vt 0.125000 0.875000
|
||||||
|
vt 0.125000 0.812500
|
||||||
|
vt 0.187500 0.812500
|
||||||
|
vt 0.875000 0.875000
|
||||||
|
vt 0.875000 0.812500
|
||||||
|
vt 0.812500 0.875000
|
||||||
|
vt 0.812500 0.812500
|
||||||
|
vt 0.875000 0.937500
|
||||||
|
vt 0.875000 1.000000
|
||||||
|
vt 0.125000 1.000000
|
||||||
|
vt 0.125000 0.937500
|
||||||
|
vn 1.000000 0.000000 0.000000
|
||||||
|
vn 0.000000 0.000000 1.000000
|
||||||
|
vn -1.000000 0.000000 0.000000
|
||||||
|
vn -0.000000 0.000000 -1.000000
|
||||||
|
vn 0.000000 -1.000000 0.000000
|
||||||
|
vn 0.000000 1.000000 0.000000
|
||||||
|
usemtl None
|
||||||
|
s off
|
||||||
|
f 26/37/19 28/38/19 27/39/19 25/40/19
|
||||||
|
f 28/41/20 32/38/20 31/39/20 27/42/20
|
||||||
|
f 32/41/21 30/43/21 29/44/21 31/42/21
|
||||||
|
f 30/41/22 26/38/22 25/39/22 29/42/22
|
||||||
|
f 25/45/23 27/46/23 31/47/23 29/48/23
|
||||||
|
f 30/48/24 32/38/24 28/41/24 26/45/24
|
||||||
|
o background_Plane
|
||||||
|
v 0.313413 -0.313413 0.466667
|
||||||
|
v -0.313413 -0.313413 0.466667
|
||||||
|
v 0.313413 0.313413 0.466667
|
||||||
|
v -0.313413 0.313413 0.466667
|
||||||
|
vt 0.187500 0.187500
|
||||||
|
vt 0.812500 0.187500
|
||||||
|
vt 0.812500 0.812500
|
||||||
|
vt 0.187500 0.812500
|
||||||
|
vn -0.000000 0.000000 -1.000000
|
||||||
|
usemtl None
|
||||||
|
s off
|
||||||
|
f 33/49/25 34/50/25 36/51/25 35/52/25
|
|
@ -0,0 +1,300 @@
|
||||||
|
--MCmobs v0.4
|
||||||
|
--maikerumine
|
||||||
|
--made for MC like Survival game
|
||||||
|
--License for code WTFPL and otherwise stated in readmes
|
||||||
|
|
||||||
|
local trading_items = {
|
||||||
|
{ itemstring = "mcl_core:obsidian", amount_min = 1, amount_max = 1 },
|
||||||
|
{ itemstring = "mcl_core:gravel", amount_min = 8, amount_max = 16 },
|
||||||
|
{ itemstring = "mcl_mobitems:leather", amount_min = 4, amount_max = 10 },
|
||||||
|
{ itemstring = "mcl_nether:soul_sand", amount_min = 4, amount_max = 16 },
|
||||||
|
{ itemstring = "mcl_nether:nether_brick", amount_min = 4, amount_max = 16 },
|
||||||
|
{ itemstring = "mcl_mobitems:string", amount_min = 3, amount_max = 9 },
|
||||||
|
{ itemstring = "mcl_nether:quartz", amount_min = 4, amount_max = 10 },
|
||||||
|
{ itemstring = "mcl_potions:water", amount_min = 1, amount_max = 1 },
|
||||||
|
{ itemstring = "mcl_core:iron_nugget", amount_min = 10, amount_max = 36 },
|
||||||
|
{ itemstring = "mcl_throwing:ender_pearl", amount_min = 2, amount_max = 6 },
|
||||||
|
{ itemstring = "mcl_potions:fire_resistance", amount_min = 1, amount_max = 1 },
|
||||||
|
{ itemstring = "mcl_potions:fire_resistance_splash", amount_min = 1, amount_max = 1 },
|
||||||
|
}
|
||||||
|
|
||||||
|
local S = minetest.get_translator("extra_mobs")
|
||||||
|
local mod_bows = minetest.get_modpath("mcl_bows") ~= nil
|
||||||
|
|
||||||
|
--###################
|
||||||
|
--################### piglin
|
||||||
|
--###################
|
||||||
|
local piglin = {
|
||||||
|
type = "monster",
|
||||||
|
passive = false,
|
||||||
|
spawn_class = "hostile",
|
||||||
|
hp_min = 16,
|
||||||
|
hp_max = 16,
|
||||||
|
xp_min = 9,
|
||||||
|
xp_max = 9,
|
||||||
|
armor = {fleshy = 90},
|
||||||
|
damage = 4,
|
||||||
|
reach = 3,
|
||||||
|
collisionbox = {-0.3, -0.01, -0.3, 0.3, 1.94, 0.3},
|
||||||
|
visual = "mesh",
|
||||||
|
mesh = "extra_mobs_piglin.b3d",
|
||||||
|
textures = { {
|
||||||
|
"extra_mobs_piglin.png",
|
||||||
|
"mcl_bows_bow_2.png",
|
||||||
|
} },
|
||||||
|
visual_size = {x=1, y=1},
|
||||||
|
sounds = {
|
||||||
|
random = "extra_mobs_piglin",
|
||||||
|
damage = "extra_mobs_piglin_hurt",
|
||||||
|
distance = 16,
|
||||||
|
},
|
||||||
|
jump = true,
|
||||||
|
makes_footstep_sound = true,
|
||||||
|
walk_velocity = 4.317,
|
||||||
|
run_velocity = 5.6121,
|
||||||
|
drops = {
|
||||||
|
{name = "mcl_bows:crossbow",
|
||||||
|
chance = 10,
|
||||||
|
min = 1,
|
||||||
|
max = 1,},
|
||||||
|
},
|
||||||
|
animation = {
|
||||||
|
stand_speed = 30,
|
||||||
|
walk_speed = 30,
|
||||||
|
run_speed = 30,
|
||||||
|
stand_start = 0,
|
||||||
|
stand_end = 79,
|
||||||
|
walk_start = 168,
|
||||||
|
walk_end = 187,
|
||||||
|
run_start = 440,
|
||||||
|
run_end = 459,
|
||||||
|
},
|
||||||
|
fear_height = 4,
|
||||||
|
view_range = 16,
|
||||||
|
on_spawn = function(self)
|
||||||
|
self.weapon = self.base_texture[2]
|
||||||
|
self.gold_items = 0
|
||||||
|
end,
|
||||||
|
do_custom = function(self)
|
||||||
|
if self.object:get_pos().y > -100 then
|
||||||
|
--local zog = minetest.add_entity(self.object:get_pos(), "extra_mobs:zombified_piglin")
|
||||||
|
--zog:set_rotation(self.object:get_rotation())
|
||||||
|
--self.object:remove()
|
||||||
|
end
|
||||||
|
if self.trading == true then
|
||||||
|
self.state = "trading"
|
||||||
|
self.object:set_bone_position("Arm_Right_Pitch_Control", vector.new(-3,5.785,0), vector.new(20,-20,18))
|
||||||
|
self.object:set_bone_position("Head", vector.new(0,6.3,0), vector.new(-40,0,0))
|
||||||
|
self.base_texture[2] = "default_gold_ingot.png"
|
||||||
|
self.object:set_properties({textures = self.base_texture})
|
||||||
|
else
|
||||||
|
self.object:set_bone_position("Wield_Item", vector.new(.5,4.5,-1.6), vector.new(90,0,20))
|
||||||
|
self.base_texture[2] = self.weapon
|
||||||
|
self.object:set_properties({textures = self.base_texture})
|
||||||
|
self.object:set_bone_position("Head", vector.new(0,6.3,0), vector.new(0,0,0))
|
||||||
|
self.object:set_bone_position("Arm_Right_Pitch_Control", vector.new(-3,5.785,0), vector.new(0,0,0))
|
||||||
|
end
|
||||||
|
|
||||||
|
if self.state ~= "attack" then
|
||||||
|
self._attacked_by_player = false
|
||||||
|
end
|
||||||
|
if self.state == "attack" and self.attack:is_player() then
|
||||||
|
for i=1, 6 do
|
||||||
|
local stack = self.attack:get_inventory():get_stack("armor", i)
|
||||||
|
local item = stack:get_name()
|
||||||
|
if item == "mcl_armor:chestplate_gold" or item == "mcl_armor:leggings_gold" or item == "mcl_armor:helmet_gold" or item == "mcl_armor:boots_gold" then
|
||||||
|
if self._attacked_by_player == false then
|
||||||
|
self.state = "stand"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
on_rightclick = function(self, clicker)
|
||||||
|
if clicker:is_player() and clicker:get_wielded_item():get_name() == "mcl_core:gold_ingot" and self.state ~= "attack" and self.gold_items < 3 then
|
||||||
|
local item_gold = clicker:get_wielded_item()
|
||||||
|
item_gold:take_item(1)
|
||||||
|
clicker:set_wielded_item(item_gold)
|
||||||
|
self.state = "stand"
|
||||||
|
self.object:set_animation({x=0,y=79})
|
||||||
|
self.trading = true
|
||||||
|
self.gold_items = self.gold_items + 1
|
||||||
|
self.object:set_bone_position("Wield_Item", vector.new(-1.5,4.9,1.8), vector.new(135,0,90))
|
||||||
|
minetest.after(5, function()
|
||||||
|
self.gold_items = self.gold_items - 1
|
||||||
|
if self.gold_items == 0 then
|
||||||
|
self.trading = false
|
||||||
|
self.state = "stand"
|
||||||
|
end
|
||||||
|
local c_pos = self.object:get_pos()
|
||||||
|
if c_pos then
|
||||||
|
self.what_traded = trading_items[math.random(#trading_items)]
|
||||||
|
for x = 1, math.random(self.what_traded.amount_min, self.what_traded.amount_max) do
|
||||||
|
minetest.add_item({x=math.random(c_pos.x - 1, c_pos.x + 1), y=math.random(c_pos.y - 1, c_pos.y + 1), z= math.random(c_pos.z - 1, c_pos.z + 1)}, self.what_traded.itemstring)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
do_punch = function(self, hitter)
|
||||||
|
if hitter:is_player() then
|
||||||
|
self._attacked_by_player = true
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
attack_type = "dogshoot",
|
||||||
|
arrow = "mcl_bows:arrow_entity",
|
||||||
|
shoot_arrow = function(self, pos, dir)
|
||||||
|
if mod_bows then
|
||||||
|
-- 2-4 damage per arrow
|
||||||
|
local dmg = math.max(4, math.random(2, 8))
|
||||||
|
mobs.shoot_projectile_handling("mcl_bows:arrow", pos, dir, self.object:get_yaw(), self.object, nil, dmg)
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
shoot_interval = 1.2,
|
||||||
|
shoot_offset = 1.5,
|
||||||
|
dogshoot_switch = 1,
|
||||||
|
dogshoot_count_max =1.8,
|
||||||
|
}
|
||||||
|
|
||||||
|
mobs:register_mob("extra_mobs:piglin", piglin)
|
||||||
|
|
||||||
|
|
||||||
|
local sword_piglin = table.copy(piglin)
|
||||||
|
sword_piglin.mesh = "extra_mobs_sword_piglin.b3d"
|
||||||
|
sword_piglin.textures = {"extra_mobs_piglin.png", "default_tool_goldsword.png"}
|
||||||
|
sword_piglin.on_spawn = function(self)
|
||||||
|
self.gold_items = 0
|
||||||
|
self.weapon = self.base_texture[2]
|
||||||
|
self.object:set_bone_position("Wield_Item", vector.new(0,3.9,1.3), vector.new(90,0,0))
|
||||||
|
end
|
||||||
|
sword_piglin.drops = {
|
||||||
|
{name = "mcl_tools:sword_gold",
|
||||||
|
chance = 10,
|
||||||
|
min = 1,
|
||||||
|
max = 1,},
|
||||||
|
}
|
||||||
|
sword_piglin.attack_type = "dogfight"
|
||||||
|
sword_piglin.animation = {
|
||||||
|
stand_speed = 30,
|
||||||
|
walk_speed = 30,
|
||||||
|
punch_speed = 45,
|
||||||
|
run_speed = 30,
|
||||||
|
stand_start = 0,
|
||||||
|
stand_end = 79,
|
||||||
|
walk_start = 168,
|
||||||
|
walk_end = 187,
|
||||||
|
run_start = 440,
|
||||||
|
run_end = 459,
|
||||||
|
punch_start = 189,
|
||||||
|
punch_end = 198,
|
||||||
|
}
|
||||||
|
mobs:register_mob("extra_mobs:sword_piglin", sword_piglin)
|
||||||
|
|
||||||
|
local zombified_piglin = table.copy(piglin)
|
||||||
|
zombified_piglin.fire_resistant = 1
|
||||||
|
zombified_piglin.do_custom = function()
|
||||||
|
return
|
||||||
|
end
|
||||||
|
zombified_piglin.on_spawn = function()
|
||||||
|
return
|
||||||
|
end
|
||||||
|
zombified_piglin.on_rightclick = function()
|
||||||
|
return
|
||||||
|
end
|
||||||
|
zombified_piglin.lava_damage = 0
|
||||||
|
zombified_piglin.fire_damage = 0
|
||||||
|
zombified_piglin.attack_animals = true
|
||||||
|
zombified_piglin.mesh = "extra_mobs_sword_piglin.b3d"
|
||||||
|
zombified_piglin.textures = {"extra_mobs_zombified_piglin.png", "default_tool_goldsword.png", "extra_mobs_trans.png"}
|
||||||
|
zombified_piglin.attack_type = "dogfight"
|
||||||
|
zombified_piglin.animation = {
|
||||||
|
stand_speed = 30,
|
||||||
|
walk_speed = 30,
|
||||||
|
punch_speed = 45,
|
||||||
|
run_speed = 30,
|
||||||
|
stand_start = 0,
|
||||||
|
stand_end = 79,
|
||||||
|
walk_start = 168,
|
||||||
|
walk_end = 187,
|
||||||
|
run_start = 440,
|
||||||
|
run_end = 459,
|
||||||
|
punch_start = 189,
|
||||||
|
punch_end = 198,
|
||||||
|
}
|
||||||
|
mobs:register_mob("extra_mobs:zombified_piglin", zombified_piglin)
|
||||||
|
|
||||||
|
|
||||||
|
local piglin_brute = table.copy(piglin)
|
||||||
|
piglin_brute.xp_min = 20
|
||||||
|
piglin_brute.xp_max = 20
|
||||||
|
piglin_brute.hp_min = 50
|
||||||
|
piglin_brute.hp_max = 50
|
||||||
|
piglin_brute.fire_resistant = 1
|
||||||
|
piglin_brute.do_custom = function()
|
||||||
|
return
|
||||||
|
end
|
||||||
|
piglin_brute.on_spawn = function()
|
||||||
|
return
|
||||||
|
end
|
||||||
|
piglin_brute.on_rightclick = function()
|
||||||
|
return
|
||||||
|
end
|
||||||
|
piglin_brute.attacks_monsters = true
|
||||||
|
piglin_brute.lava_damage = 0
|
||||||
|
piglin_brute.fire_damage = 0
|
||||||
|
piglin_brute.attack_animals = true
|
||||||
|
piglin_brute.mesh = "extra_mobs_sword_piglin.b3d"
|
||||||
|
piglin_brute.textures = {"extra_mobs_piglin_brute.png", "default_tool_goldaxe.png", "extra_mobs_trans.png"}
|
||||||
|
piglin_brute.attack_type = "dogfight"
|
||||||
|
piglin_brute.animation = {
|
||||||
|
stand_speed = 30,
|
||||||
|
walk_speed = 30,
|
||||||
|
punch_speed = 45,
|
||||||
|
run_speed = 30,
|
||||||
|
stand_start = 0,
|
||||||
|
stand_end = 79,
|
||||||
|
walk_start = 168,
|
||||||
|
walk_end = 187,
|
||||||
|
run_start = 440,
|
||||||
|
run_end = 459,
|
||||||
|
punch_start = 189,
|
||||||
|
punch_end = 198,
|
||||||
|
}
|
||||||
|
piglin_brute.can_despawn = false
|
||||||
|
piglin_brute.group_attack = { "extra_mobs:piglin", "extra_mobs:piglin_brute" }
|
||||||
|
mobs:register_mob("extra_mobs:piglin_brute", piglin_brute)
|
||||||
|
|
||||||
|
|
||||||
|
-- Regular spawning in the Nether
|
||||||
|
mobs:spawn_specific(
|
||||||
|
"extra_mobs:piglin",
|
||||||
|
"nether",
|
||||||
|
"ground",
|
||||||
|
{
|
||||||
|
"Nether"
|
||||||
|
},
|
||||||
|
0,
|
||||||
|
minetest.LIGHT_MAX+1,
|
||||||
|
30,
|
||||||
|
6000,
|
||||||
|
3,
|
||||||
|
mobs_mc.spawn_height.nether_min,
|
||||||
|
mobs_mc.spawn_height.nether_max)
|
||||||
|
|
||||||
|
mobs:spawn_specific(
|
||||||
|
"extra_mobs:sword_piglin",
|
||||||
|
"nether",
|
||||||
|
"ground",
|
||||||
|
{
|
||||||
|
"Nether"
|
||||||
|
},
|
||||||
|
0,
|
||||||
|
minetest.LIGHT_MAX+1,
|
||||||
|
30,
|
||||||
|
6000,
|
||||||
|
3,
|
||||||
|
mobs_mc.spawn_height.nether_min,
|
||||||
|
mobs_mc.spawn_height.nether_max)
|
||||||
|
-- spawn eggs
|
||||||
|
mobs:register_egg("extra_mobs:piglin", S("piglin"), "extra_mobs_spawn_icon_piglin.png", 0)
|
||||||
|
mobs:register_egg("extra_mobs:piglin_brute", S("piglin Brute"), "extra_mobs_spawn_icon_piglin.png", 0)
|
|
@ -0,0 +1,219 @@
|
||||||
|
--MCmobs v0.4
|
||||||
|
--maikerumine
|
||||||
|
--made for MC like Survival game
|
||||||
|
--License for code WTFPL and otherwise stated in readmes
|
||||||
|
|
||||||
|
local S = minetest.get_translator("extra_mobs")
|
||||||
|
|
||||||
|
--###################
|
||||||
|
--################### salmon
|
||||||
|
--###################
|
||||||
|
|
||||||
|
local salmon = {
|
||||||
|
type = "animal",
|
||||||
|
spawn_class = "water",
|
||||||
|
can_despawn = true,
|
||||||
|
passive = true,
|
||||||
|
hp_min = 3,
|
||||||
|
hp_max = 3,
|
||||||
|
xp_min = 1,
|
||||||
|
xp_max = 3,
|
||||||
|
armor = 100,
|
||||||
|
rotate = 270,
|
||||||
|
tilt_swim = true,
|
||||||
|
collisionbox = {-0.4, 0.0, -0.4, 0.4, 0.79, 0.4},
|
||||||
|
visual = "mesh",
|
||||||
|
mesh = "extra_mobs_salmon.b3d",
|
||||||
|
textures = {
|
||||||
|
{"extra_mobs_salmon.png"}
|
||||||
|
},
|
||||||
|
sounds = {
|
||||||
|
},
|
||||||
|
animation = {
|
||||||
|
stand_start = 1,
|
||||||
|
stand_end = 20,
|
||||||
|
walk_start = 1,
|
||||||
|
walk_end = 20,
|
||||||
|
run_start = 1,
|
||||||
|
run_end = 20,
|
||||||
|
},
|
||||||
|
drops = {
|
||||||
|
{name = "mcl_fishing:salmon_raw",
|
||||||
|
chance = 1,
|
||||||
|
min = 1,
|
||||||
|
max = 1,},
|
||||||
|
{name = "mcl_dye:white",
|
||||||
|
chance = 20,
|
||||||
|
min = 1,
|
||||||
|
max = 1,},
|
||||||
|
},
|
||||||
|
visual_size = {x=3, y=3},
|
||||||
|
makes_footstep_sound = false,
|
||||||
|
swim = true,
|
||||||
|
breathes_in_water = true,
|
||||||
|
jump = false,
|
||||||
|
view_range = 16,
|
||||||
|
runaway = true,
|
||||||
|
fear_height = 4,
|
||||||
|
}
|
||||||
|
|
||||||
|
mobs:register_mob("extra_mobs:salmon", salmon)
|
||||||
|
|
||||||
|
|
||||||
|
--spawning TODO: in schools
|
||||||
|
local water = mobs_mc.spawn_height.water + 1
|
||||||
|
mobs:spawn_specific(
|
||||||
|
"extra_mobs:salmon",
|
||||||
|
"overworld",
|
||||||
|
"water",
|
||||||
|
{
|
||||||
|
"Mesa",
|
||||||
|
"FlowerForest",
|
||||||
|
"Swampland",
|
||||||
|
"Taiga",
|
||||||
|
"ExtremeHills",
|
||||||
|
"Jungle",
|
||||||
|
"Savanna",
|
||||||
|
"BirchForest",
|
||||||
|
"MegaSpruceTaiga",
|
||||||
|
"MegaTaiga",
|
||||||
|
"ExtremeHills+",
|
||||||
|
"Forest",
|
||||||
|
"Plains",
|
||||||
|
"Desert",
|
||||||
|
"ColdTaiga",
|
||||||
|
"MushroomIsland",
|
||||||
|
"IcePlainsSpikes",
|
||||||
|
"SunflowerPlains",
|
||||||
|
"IcePlains",
|
||||||
|
"RoofedForest",
|
||||||
|
"ExtremeHills+_snowtop",
|
||||||
|
"MesaPlateauFM_grasstop",
|
||||||
|
"JungleEdgeM",
|
||||||
|
"ExtremeHillsM",
|
||||||
|
"JungleM",
|
||||||
|
"BirchForestM",
|
||||||
|
"MesaPlateauF",
|
||||||
|
"MesaPlateauFM",
|
||||||
|
"MesaPlateauF_grasstop",
|
||||||
|
"MesaBryce",
|
||||||
|
"JungleEdge",
|
||||||
|
"SavannaM",
|
||||||
|
"FlowerForest_beach",
|
||||||
|
"Forest_beach",
|
||||||
|
"StoneBeach",
|
||||||
|
"ColdTaiga_beach_water",
|
||||||
|
"Taiga_beach",
|
||||||
|
"Savanna_beach",
|
||||||
|
"Plains_beach",
|
||||||
|
"ExtremeHills_beach",
|
||||||
|
"ColdTaiga_beach",
|
||||||
|
"Swampland_shore",
|
||||||
|
"MushroomIslandShore",
|
||||||
|
"JungleM_shore",
|
||||||
|
"Jungle_shore",
|
||||||
|
"MesaPlateauFM_sandlevel",
|
||||||
|
"MesaPlateauF_sandlevel",
|
||||||
|
"MesaBryce_sandlevel",
|
||||||
|
"Mesa_sandlevel",
|
||||||
|
"RoofedForest_ocean",
|
||||||
|
"JungleEdgeM_ocean",
|
||||||
|
"BirchForestM_ocean",
|
||||||
|
"BirchForest_ocean",
|
||||||
|
"IcePlains_deep_ocean",
|
||||||
|
"Jungle_deep_ocean",
|
||||||
|
"Savanna_ocean",
|
||||||
|
"MesaPlateauF_ocean",
|
||||||
|
"ExtremeHillsM_deep_ocean",
|
||||||
|
"Savanna_deep_ocean",
|
||||||
|
"SunflowerPlains_ocean",
|
||||||
|
"Swampland_deep_ocean",
|
||||||
|
"Swampland_ocean",
|
||||||
|
"MegaSpruceTaiga_deep_ocean",
|
||||||
|
"ExtremeHillsM_ocean",
|
||||||
|
"JungleEdgeM_deep_ocean",
|
||||||
|
"SunflowerPlains_deep_ocean",
|
||||||
|
"BirchForest_deep_ocean",
|
||||||
|
"IcePlainsSpikes_ocean",
|
||||||
|
"Mesa_ocean",
|
||||||
|
"StoneBeach_ocean",
|
||||||
|
"Plains_deep_ocean",
|
||||||
|
"JungleEdge_deep_ocean",
|
||||||
|
"SavannaM_deep_ocean",
|
||||||
|
"Desert_deep_ocean",
|
||||||
|
"Mesa_deep_ocean",
|
||||||
|
"ColdTaiga_deep_ocean",
|
||||||
|
"Plains_ocean",
|
||||||
|
"MesaPlateauFM_ocean",
|
||||||
|
"Forest_deep_ocean",
|
||||||
|
"JungleM_deep_ocean",
|
||||||
|
"FlowerForest_deep_ocean",
|
||||||
|
"MushroomIsland_ocean",
|
||||||
|
"MegaTaiga_ocean",
|
||||||
|
"StoneBeach_deep_ocean",
|
||||||
|
"IcePlainsSpikes_deep_ocean",
|
||||||
|
"ColdTaiga_ocean",
|
||||||
|
"SavannaM_ocean",
|
||||||
|
"MesaPlateauF_deep_ocean",
|
||||||
|
"MesaBryce_deep_ocean",
|
||||||
|
"ExtremeHills+_deep_ocean",
|
||||||
|
"ExtremeHills_ocean",
|
||||||
|
"MushroomIsland_deep_ocean",
|
||||||
|
"Forest_ocean",
|
||||||
|
"MegaTaiga_deep_ocean",
|
||||||
|
"JungleEdge_ocean",
|
||||||
|
"MesaBryce_ocean",
|
||||||
|
"MegaSpruceTaiga_ocean",
|
||||||
|
"ExtremeHills+_ocean",
|
||||||
|
"Jungle_ocean",
|
||||||
|
"RoofedForest_deep_ocean",
|
||||||
|
"IcePlains_ocean",
|
||||||
|
"FlowerForest_ocean",
|
||||||
|
"ExtremeHills_deep_ocean",
|
||||||
|
"MesaPlateauFM_deep_ocean",
|
||||||
|
"Desert_ocean",
|
||||||
|
"Taiga_ocean",
|
||||||
|
"BirchForestM_deep_ocean",
|
||||||
|
"Taiga_deep_ocean",
|
||||||
|
"JungleM_ocean",
|
||||||
|
"FlowerForest_underground",
|
||||||
|
"JungleEdge_underground",
|
||||||
|
"StoneBeach_underground",
|
||||||
|
"MesaBryce_underground",
|
||||||
|
"Mesa_underground",
|
||||||
|
"RoofedForest_underground",
|
||||||
|
"Jungle_underground",
|
||||||
|
"Swampland_underground",
|
||||||
|
"MushroomIsland_underground",
|
||||||
|
"BirchForest_underground",
|
||||||
|
"Plains_underground",
|
||||||
|
"MesaPlateauF_underground",
|
||||||
|
"ExtremeHills_underground",
|
||||||
|
"MegaSpruceTaiga_underground",
|
||||||
|
"BirchForestM_underground",
|
||||||
|
"SavannaM_underground",
|
||||||
|
"MesaPlateauFM_underground",
|
||||||
|
"Desert_underground",
|
||||||
|
"Savanna_underground",
|
||||||
|
"Forest_underground",
|
||||||
|
"SunflowerPlains_underground",
|
||||||
|
"ColdTaiga_underground",
|
||||||
|
"IcePlains_underground",
|
||||||
|
"IcePlainsSpikes_underground",
|
||||||
|
"MegaTaiga_underground",
|
||||||
|
"Taiga_underground",
|
||||||
|
"ExtremeHills+_underground",
|
||||||
|
"JungleM_underground",
|
||||||
|
"ExtremeHillsM_underground",
|
||||||
|
"JungleEdgeM_underground",
|
||||||
|
},
|
||||||
|
0,
|
||||||
|
minetest.LIGHT_MAX+1,
|
||||||
|
30,
|
||||||
|
4000,
|
||||||
|
3,
|
||||||
|
water-16,
|
||||||
|
water)
|
||||||
|
|
||||||
|
--spawn egg
|
||||||
|
mobs:register_egg("extra_mobs:salmon", S("Salmon"), "extra_mobs_spawn_icon_salmon.png", 0)
|
|
@ -0,0 +1,232 @@
|
||||||
|
--MCmobs v0.4
|
||||||
|
--maikerumine
|
||||||
|
--made for MC like Survival game
|
||||||
|
--License for code WTFPL and otherwise stated in readmes
|
||||||
|
|
||||||
|
local S = minetest.get_translator("extra_mobs")
|
||||||
|
|
||||||
|
--###################
|
||||||
|
--################### STRIDER
|
||||||
|
--###################
|
||||||
|
|
||||||
|
|
||||||
|
local strider = {
|
||||||
|
type = "animal",
|
||||||
|
passive = true,
|
||||||
|
spawn_class = "passive",
|
||||||
|
hp_min = 20,
|
||||||
|
hp_max = 20,
|
||||||
|
xp_min = 9,
|
||||||
|
xp_max = 9,
|
||||||
|
armor = {fleshy = 90},
|
||||||
|
attack_type = "dogfight",
|
||||||
|
damage = 2,
|
||||||
|
reach = 2,
|
||||||
|
collisionbox = {-.6, -0.01, -.6, .6, 1.94, .6},
|
||||||
|
visual = "mesh",
|
||||||
|
mesh = "extra_mobs_strider.b3d",
|
||||||
|
textures = { {
|
||||||
|
"extra_mobs_strider.png",
|
||||||
|
} },
|
||||||
|
visual_size = {x=3, y=3},
|
||||||
|
sounds = {
|
||||||
|
},
|
||||||
|
jump = true,
|
||||||
|
makes_footstep_sound = true,
|
||||||
|
walk_velocity = 2,
|
||||||
|
run_velocity = 4,
|
||||||
|
runaway = true,
|
||||||
|
drops = {
|
||||||
|
{name = "mcl_mobsitems:string",
|
||||||
|
chance = 1,
|
||||||
|
min = 2,
|
||||||
|
max = 5,},
|
||||||
|
},
|
||||||
|
animation = {
|
||||||
|
stand_speed = 15,
|
||||||
|
walk_speed = 15,
|
||||||
|
run_speed = 30,
|
||||||
|
stand_start = 5,
|
||||||
|
stand_end = 5,
|
||||||
|
walk_start = 1,
|
||||||
|
walk_end = 20,
|
||||||
|
},
|
||||||
|
lava_damage = 0,
|
||||||
|
fire_damage = 0,
|
||||||
|
light_damage = 0,
|
||||||
|
water_damage = 5,
|
||||||
|
fear_height = 4,
|
||||||
|
view_range = 16,
|
||||||
|
fire_resistant = true,
|
||||||
|
floats_on_lava = 1,
|
||||||
|
floats = 0,
|
||||||
|
do_custom = function(self, dtime)
|
||||||
|
|
||||||
|
if minetest.find_node_near(self.object:get_pos(), 2, "mcl_core:lava_source") ~= nil or minetest.find_node_near(self.object:get_pos(), 2, "mcl_core:lava_flowing") ~= nil or minetest.find_node_near(self.object:get_pos(), 2, "mcl_nether:nether_lava_source") ~= nil or minetest.find_node_near(self.object:get_pos(), 2, "mcl_nether:nether_lava_flowing") ~= nil then
|
||||||
|
self.walk_velocity = 2
|
||||||
|
self.run_velocity = 4
|
||||||
|
self.base_texture[1] = "extra_mobs_strider.png"
|
||||||
|
self.shaking = false
|
||||||
|
else
|
||||||
|
self.base_texture[1] = "extra_mobs_strider_cold.png"
|
||||||
|
self.walk_velocity = .5
|
||||||
|
self.run_velocity = 1
|
||||||
|
self.shaking = true
|
||||||
|
end
|
||||||
|
|
||||||
|
self.object:set_properties({textures=self.base_texture, shaking=self.shaking, run_velocity=self.run_velocity, walk_velocity=self.walk_velocity})
|
||||||
|
|
||||||
|
-- set needed values if not already present
|
||||||
|
if not self.v2 then
|
||||||
|
self.v2 = 0
|
||||||
|
self.max_speed_forward = 8
|
||||||
|
self.max_speed_reverse = 4
|
||||||
|
self.accel = 2
|
||||||
|
self.terrain_type = 3
|
||||||
|
self.driver_attach_at = {x = 0, y = 5.5, z = -1.75}
|
||||||
|
self.driver_eye_offset = {x = 0, y = 10, z = 0}
|
||||||
|
self.driver_scale = {x = 1/self.visual_size.x, y = 1/self.visual_size.y}
|
||||||
|
end
|
||||||
|
|
||||||
|
-- if driver present allow control of horse
|
||||||
|
if self.driver then
|
||||||
|
|
||||||
|
mobs.drive(self, "walk", "stand", false, dtime)
|
||||||
|
|
||||||
|
return false -- skip rest of mob functions
|
||||||
|
end
|
||||||
|
|
||||||
|
return true
|
||||||
|
end,
|
||||||
|
|
||||||
|
on_die = function(self, pos)
|
||||||
|
|
||||||
|
-- drop saddle when horse is killed while riding
|
||||||
|
-- also detach from horse properly
|
||||||
|
if self.driver then
|
||||||
|
mobs.detach(self.driver, {x = 1, y = 0, z = 1})
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
|
||||||
|
on_rightclick = function(self, clicker)
|
||||||
|
if not clicker or not clicker:is_player() then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
local wielditem = clicker:get_wielded_item()
|
||||||
|
|
||||||
|
local controlitem = ""
|
||||||
|
if minetest.get_modpath("mc") then
|
||||||
|
controlitem = "mc_warped_fungus_stick:warped_fungus_stick"
|
||||||
|
else
|
||||||
|
controlitem = mobs_mc.items.carrot_on_a_stick
|
||||||
|
end
|
||||||
|
if wielditem:get_name() ~= controlitem then
|
||||||
|
if mobs:feed_tame(self, clicker, 1, true, true) then return end
|
||||||
|
end
|
||||||
|
|
||||||
|
if self.child then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
local item = clicker:get_wielded_item()
|
||||||
|
if item:get_name() == mobs_mc.items.saddle and self.saddle ~= "yes" then
|
||||||
|
self.base_texture = {
|
||||||
|
"extra_mobs_strider.png",
|
||||||
|
"mobs_mc_pig_saddle.png", -- saddle
|
||||||
|
}
|
||||||
|
self.object:set_properties({
|
||||||
|
textures = self.base_texture
|
||||||
|
})
|
||||||
|
self.saddle = "yes"
|
||||||
|
self.tamed = true
|
||||||
|
self.drops = {
|
||||||
|
{name = "mcl_mobitems:string",
|
||||||
|
chance = 1,
|
||||||
|
min = 1,
|
||||||
|
max = 3,},
|
||||||
|
{name = "mcl_mobitems:saddle",
|
||||||
|
chance = 1,
|
||||||
|
min = 1,
|
||||||
|
max = 1,},
|
||||||
|
}
|
||||||
|
if not minetest.is_creative_enabled(clicker:get_player_name()) then
|
||||||
|
local inv = clicker:get_inventory()
|
||||||
|
local stack = inv:get_stack("main", clicker:get_wield_index())
|
||||||
|
stack:take_item()
|
||||||
|
inv:set_stack("main", clicker:get_wield_index(), stack)
|
||||||
|
end
|
||||||
|
minetest.sound_play({name = "mcl_armor_equip_leather"}, {gain=0.5, max_hear_distance=8, pos=self.object:get_pos()}, true)
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Mount or detach player
|
||||||
|
local name = clicker:get_player_name()
|
||||||
|
if self.driver and clicker == self.driver then
|
||||||
|
-- Detach if already attached
|
||||||
|
mobs.detach(clicker, {x=1, y=0, z=0})
|
||||||
|
return
|
||||||
|
|
||||||
|
elseif not self.driver and self.saddle == "yes" and wielditem:get_name() == controlitem then
|
||||||
|
-- Ride pig if it has a saddle and player uses a carrot on a stick
|
||||||
|
|
||||||
|
mobs.attach(self, clicker)
|
||||||
|
|
||||||
|
if not minetest.is_creative_enabled(clicker:get_player_name()) then
|
||||||
|
|
||||||
|
local inv = self.driver:get_inventory()
|
||||||
|
-- 26 uses
|
||||||
|
if wielditem:get_wear() > 63000 then
|
||||||
|
-- Break carrot on a stick
|
||||||
|
local def = wielditem:get_definition()
|
||||||
|
if def.sounds and def.sounds.breaks then
|
||||||
|
minetest.sound_play(def.sounds.breaks, {pos = clicker:get_pos(), max_hear_distance = 8, gain = 0.5}, true)
|
||||||
|
end
|
||||||
|
wielditem = {name = mobs_mc.items.fishing_rod, count = 1}
|
||||||
|
else
|
||||||
|
wielditem:add_wear(2521)
|
||||||
|
end
|
||||||
|
inv:set_stack("main",self.driver:get_wield_index(), wielditem)
|
||||||
|
end
|
||||||
|
return
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|
||||||
|
mobs:register_mob("extra_mobs:strider", strider)
|
||||||
|
|
||||||
|
-- Baby strider.
|
||||||
|
|
||||||
|
local baby_strider = table.copy(strider)
|
||||||
|
baby_strider.collisionbox = {-.3, -0.01, -.3, .3, 0.94, .3}
|
||||||
|
baby_strider.xp_min = 13
|
||||||
|
baby_strider.xp_max = 13
|
||||||
|
baby_strider.visual_size = {x=strider.visual_size.x/2, y=strider.visual_size.y/2}
|
||||||
|
textures = { {
|
||||||
|
"extra_mobs_strider.png",
|
||||||
|
"extra_mobs_trans.png",
|
||||||
|
} }
|
||||||
|
baby_strider.walk_velocity = 1.2
|
||||||
|
baby_strider.run_velocity = 2.4
|
||||||
|
baby_strider.child = 1
|
||||||
|
|
||||||
|
mobs:register_mob("extra_mobs:baby_strider", baby_strider)
|
||||||
|
|
||||||
|
-- Regular spawning in the Nether
|
||||||
|
mobs:spawn_specific(
|
||||||
|
"extra_mobs:strider",
|
||||||
|
"nether",
|
||||||
|
"lava",
|
||||||
|
{
|
||||||
|
"Nether"
|
||||||
|
},
|
||||||
|
0,
|
||||||
|
minetest.LIGHT_MAX+1,
|
||||||
|
30,
|
||||||
|
6000,
|
||||||
|
3,
|
||||||
|
mobs_mc.spawn_height.nether_min,
|
||||||
|
mobs_mc.spawn_height.nether_max)
|
||||||
|
|
||||||
|
-- spawn eggs
|
||||||
|
mobs:register_egg("extra_mobs:strider", S("Strider"), "extra_mobs_spawn_icon_strider.png", 0)
|
After Width: | Height: | Size: 296 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 766 B |
After Width: | Height: | Size: 6.2 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 407 B |
After Width: | Height: | Size: 6.1 KiB |
After Width: | Height: | Size: 6.1 KiB |
After Width: | Height: | Size: 6.1 KiB |
After Width: | Height: | Size: 8.8 KiB |
After Width: | Height: | Size: 237 B |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 830 B |
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.8 KiB |
After Width: | Height: | Size: 6.4 KiB |
After Width: | Height: | Size: 591 B |
After Width: | Height: | Size: 6.3 KiB |
After Width: | Height: | Size: 560 B |
After Width: | Height: | Size: 614 B |
After Width: | Height: | Size: 6.1 KiB |
After Width: | Height: | Size: 582 B |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 170 B |
After Width: | Height: | Size: 175 B |
After Width: | Height: | Size: 175 B |
After Width: | Height: | Size: 175 B |
|
@ -84,7 +84,7 @@ local function attach_object(self, obj)
|
||||||
end
|
end
|
||||||
end, name)
|
end, name)
|
||||||
obj:set_look_horizontal(yaw)
|
obj:set_look_horizontal(yaw)
|
||||||
mcl_title.set(obj, "actionbar", {text=S("Sneak to dismount"), color="white", stay=60})
|
mcl_tmp_message.message(obj, S("Sneak to dismount"))
|
||||||
else
|
else
|
||||||
obj:get_luaentity()._old_visual_size = visual_size
|
obj:get_luaentity()._old_visual_size = visual_size
|
||||||
end
|
end
|
||||||
|
@ -115,7 +115,7 @@ local boat = {
|
||||||
collisionbox = {-0.5, -0.35, -0.5, 0.5, 0.3, 0.5},
|
collisionbox = {-0.5, -0.35, -0.5, 0.5, 0.3, 0.5},
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
mesh = "mcl_boats_boat.b3d",
|
mesh = "mcl_boats_boat.b3d",
|
||||||
textures = {"mcl_boats_texture_oak_boat.png", "mcl_boats_texture_oak_boat.png", "mcl_boats_texture_oak_boat.png", "mcl_boats_texture_oak_boat.png", "mcl_boats_texture_oak_boat.png"},
|
textures = {"mcl_boats_texture_oak_boat.png"},
|
||||||
visual_size = boat_visual_size,
|
visual_size = boat_visual_size,
|
||||||
hp_max = boat_max_hp,
|
hp_max = boat_max_hp,
|
||||||
damage_texture_modifier = "^[colorize:white:0",
|
damage_texture_modifier = "^[colorize:white:0",
|
||||||
|
@ -148,11 +148,6 @@ function boat.on_activate(self, staticdata, dtime_s)
|
||||||
self._v = data.v
|
self._v = data.v
|
||||||
self._last_v = self._v
|
self._last_v = self._v
|
||||||
self._itemstring = data.itemstring
|
self._itemstring = data.itemstring
|
||||||
|
|
||||||
while #data.textures < 5 do
|
|
||||||
table.insert(data.textures, data.textures[1])
|
|
||||||
end
|
|
||||||
|
|
||||||
self.object:set_properties({textures = data.textures})
|
self.object:set_properties({textures = data.textures})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -267,7 +262,7 @@ function boat.on_step(self, dtime, moveresult)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local yaw = self.object:get_yaw()
|
local yaw = self.object:get_yaw()
|
||||||
if ctrl and ctrl.up then
|
if ctrl.up then
|
||||||
-- Forwards
|
-- Forwards
|
||||||
self._v = self._v + 0.1 * v_factor
|
self._v = self._v + 0.1 * v_factor
|
||||||
|
|
||||||
|
@ -276,7 +271,7 @@ function boat.on_step(self, dtime, moveresult)
|
||||||
self.object:set_animation({x=0, y=40}, paddling_speed, 0, true)
|
self.object:set_animation({x=0, y=40}, paddling_speed, 0, true)
|
||||||
self._animation = 1
|
self._animation = 1
|
||||||
end
|
end
|
||||||
elseif ctrl and ctrl.down then
|
elseif ctrl.down then
|
||||||
-- Backwards
|
-- Backwards
|
||||||
self._v = self._v - 0.1 * v_factor
|
self._v = self._v - 0.1 * v_factor
|
||||||
|
|
||||||
|
@ -342,8 +337,7 @@ function boat.on_step(self, dtime, moveresult)
|
||||||
self.object:get_velocity().y)
|
self.object:get_velocity().y)
|
||||||
else
|
else
|
||||||
p.y = p.y + 1
|
p.y = p.y + 1
|
||||||
local is_obsidian_boat = self.object:get_luaentity()._itemstring == "mcl_boats:boat_obsidian"
|
if is_water(p) then
|
||||||
if is_water(p) or is_obsidian_boat then
|
|
||||||
-- Inside water: Slowly sink
|
-- Inside water: Slowly sink
|
||||||
local y = self.object:get_velocity().y
|
local y = self.object:get_velocity().y
|
||||||
y = y - 0.01
|
y = y - 0.01
|
||||||
|
@ -383,13 +377,13 @@ end
|
||||||
-- Register one entity for all boat types
|
-- Register one entity for all boat types
|
||||||
minetest.register_entity("mcl_boats:boat", boat)
|
minetest.register_entity("mcl_boats:boat", boat)
|
||||||
|
|
||||||
local boat_ids = { "boat", "boat_spruce", "boat_birch", "boat_jungle", "boat_acacia", "boat_dark_oak", "boat_obsidian" }
|
local boat_ids = { "boat", "boat_spruce", "boat_birch", "boat_jungle", "boat_acacia", "boat_dark_oak" }
|
||||||
local names = { S("Oak Boat"), S("Spruce Boat"), S("Birch Boat"), S("Jungle Boat"), S("Acacia Boat"), S("Dark Oak Boat"), S("Obsidian Boat") }
|
local names = { S("Oak Boat"), S("Spruce Boat"), S("Birch Boat"), S("Jungle Boat"), S("Acacia Boat"), S("Dark Oak Boat") }
|
||||||
local craftstuffs = {}
|
local craftstuffs = {}
|
||||||
if minetest.get_modpath("mcl_core") then
|
if minetest.get_modpath("mcl_core") then
|
||||||
craftstuffs = { "mcl_core:wood", "mcl_core:sprucewood", "mcl_core:birchwood", "mcl_core:junglewood", "mcl_core:acaciawood", "mcl_core:darkwood", "mcl_core:obsidian" }
|
craftstuffs = { "mcl_core:wood", "mcl_core:sprucewood", "mcl_core:birchwood", "mcl_core:junglewood", "mcl_core:acaciawood", "mcl_core:darkwood" }
|
||||||
end
|
end
|
||||||
local images = { "oak", "spruce", "birch", "jungle", "acacia", "dark_oak", "obsidian" }
|
local images = { "oak", "spruce", "birch", "jungle", "acacia", "dark_oak" }
|
||||||
|
|
||||||
for b=1, #boat_ids do
|
for b=1, #boat_ids do
|
||||||
local itemstring = "mcl_boats:"..boat_ids[b]
|
local itemstring = "mcl_boats:"..boat_ids[b]
|
||||||
|
@ -440,9 +434,8 @@ for b=1, #boat_ids do
|
||||||
pos = vector.add(pos, vector.multiply(dir, boat_y_offset_ground))
|
pos = vector.add(pos, vector.multiply(dir, boat_y_offset_ground))
|
||||||
end
|
end
|
||||||
local boat = minetest.add_entity(pos, "mcl_boats:boat")
|
local boat = minetest.add_entity(pos, "mcl_boats:boat")
|
||||||
local texture = "mcl_boats_texture_"..images[b].."_boat.png"
|
|
||||||
boat:get_luaentity()._itemstring = itemstring
|
boat:get_luaentity()._itemstring = itemstring
|
||||||
boat:set_properties({textures = { texture, texture, texture, texture, texture }})
|
boat:set_properties({textures = { "mcl_boats_texture_"..images[b].."_boat.png" }})
|
||||||
boat:set_yaw(placer:get_look_horizontal())
|
boat:set_yaw(placer:get_look_horizontal())
|
||||||
if not minetest.is_creative_enabled(placer:get_player_name()) then
|
if not minetest.is_creative_enabled(placer:get_player_name()) then
|
||||||
itemstack:take_item()
|
itemstack:take_item()
|
||||||
|
|
|
@ -6,7 +6,6 @@ Boats are used to travel on the surface of water.=Les bateaux sont utilisés pou
|
||||||
Dark Oak Boat=Bateau en Chêne Noir
|
Dark Oak Boat=Bateau en Chêne Noir
|
||||||
Jungle Boat=Bateau en Acajou
|
Jungle Boat=Bateau en Acajou
|
||||||
Oak Boat=Bateau en Chêne
|
Oak Boat=Bateau en Chêne
|
||||||
Rightclick on a water source to place the boat. Rightclick the boat to enter it. Use [Left] and [Right] to steer, [Forwards] to speed up and [Backwards] to slow down or move backwards. Use [Sneak] to leave the boat, punch the boat to make it drop as an item.=Faites un clic droit sur une source d'eau pour placer le bateau. Faites un clic droit sur le bateau pour y entrer. Utilisez [Gauche] et [Droite] pour diriger, [Avant] pour accélérer et [Arrière] pour ralentir ou reculer. Utilisez [Sneak] pour le quitter, frappez le bateau pour le faire tomber en tant qu'objet.
|
Rightclick on a water source to place the boat. Rightclick the boat to enter it. Use [Left] and [Right] to steer, [Forwards] to speed up and [Backwards] to slow down or move backwards. Rightclick the boat again to leave it, punch the boat to make it drop as an item.=Faites un clic droit sur une source d'eau pour placer le bateau. Faites un clic droit sur le bateau pour y entrer. Utilisez [Gauche] et [Droite] pour diriger, [Avant] pour accélérer et [Arrière] pour ralentir ou reculer. Cliquez de nouveau avec le bouton droit sur le bateau pour le quitter, frappez le bateau pour le faire tomber en tant qu'objet.
|
||||||
Spruce Boat=Bateau en Sapin
|
Spruce Boat=Bateau en Sapin
|
||||||
Water vehicle=Véhicule aquatique
|
Water vehicle=Véhicule aquatique
|
||||||
Sneak to dismount=
|
|