Silly Minecraft mod that adds Asbestos

Initial Commit

naomi 66cbdc51

Changed files
+2626
gradle
src
main
java
resources
+118
.gitignore
··· 1 + # User-specific stuff 2 + .idea/ 3 + 4 + *.iml 5 + *.ipr 6 + *.iws 7 + 8 + # IntelliJ 9 + out/ 10 + # mpeltonen/sbt-idea plugin 11 + .idea_modules/ 12 + 13 + # JIRA plugin 14 + atlassian-ide-plugin.xml 15 + 16 + # Compiled class file 17 + *.class 18 + 19 + # Log file 20 + *.log 21 + 22 + # BlueJ files 23 + *.ctxt 24 + 25 + # Package Files # 26 + *.jar 27 + *.war 28 + *.nar 29 + *.ear 30 + *.zip 31 + *.tar.gz 32 + *.rar 33 + 34 + # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 35 + hs_err_pid* 36 + 37 + *~ 38 + 39 + # temporary files which can be created if a process still has a handle open of a deleted file 40 + .fuse_hidden* 41 + 42 + # KDE directory preferences 43 + .directory 44 + 45 + # Linux trash folder which might appear on any partition or disk 46 + .Trash-* 47 + 48 + # .nfs files are created when an open file is removed but is still being accessed 49 + .nfs* 50 + 51 + # General 52 + .DS_Store 53 + .AppleDouble 54 + .LSOverride 55 + 56 + # Icon must end with two \r 57 + Icon 58 + 59 + # Thumbnails 60 + ._* 61 + 62 + # Files that might appear in the root of a volume 63 + .DocumentRevisions-V100 64 + .fseventsd 65 + .Spotlight-V100 66 + .TemporaryItems 67 + .Trashes 68 + .VolumeIcon.icns 69 + .com.apple.timemachine.donotpresent 70 + 71 + # Directories potentially created on remote AFP share 72 + .AppleDB 73 + .AppleDesktop 74 + Network Trash Folder 75 + Temporary Items 76 + .apdisk 77 + 78 + # Windows thumbnail cache files 79 + Thumbs.db 80 + Thumbs.db:encryptable 81 + ehthumbs.db 82 + ehthumbs_vista.db 83 + 84 + # Dump file 85 + *.stackdump 86 + 87 + # Folder config file 88 + [Dd]esktop.ini 89 + 90 + # Recycle Bin used on file shares 91 + $RECYCLE.BIN/ 92 + 93 + # Windows Installer files 94 + *.cab 95 + *.msi 96 + *.msix 97 + *.msm 98 + *.msp 99 + 100 + # Windows shortcuts 101 + *.lnk 102 + 103 + .gradle 104 + build/ 105 + 106 + # Ignore Gradle GUI config 107 + gradle-app.setting 108 + 109 + # Cache of project 110 + .gradletasknamecache 111 + 112 + **/build/ 113 + 114 + # Common working directory 115 + run/ 116 + 117 + # Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) 118 + !gradle-wrapper.jar
+857
LICENSE
··· 1 + Copyright (c) 2023 naomieow 2 + 3 + This program is free software: you can redistribute it and/or modify 4 + it under the terms of the GNU Lesser General Public License as published by 5 + the Free Software Foundation, either version 3 of the License, or 6 + (at your option) any later version. 7 + 8 + This program is distributed in the hope that it will be useful, 9 + but WITHOUT ANY WARRANTY; without even the implied warranty of 10 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 + GNU General Public License for more details. 12 + 13 + You should have received a copy of the GNU Lesser General Public License 14 + and a copy of GNU General Public License along with this program. If not, see 15 + <http://www.gnu.org/licenses/> 16 + 17 + GNU LESSER GENERAL PUBLIC LICENSE 18 + Version 3, 29 June 2007 19 + 20 + Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> 21 + Everyone is permitted to copy and distribute verbatim copies 22 + of this license document, but changing it is not allowed. 23 + 24 + 25 + This version of the GNU Lesser General Public License incorporates 26 + the terms and conditions of version 3 of the GNU General Public 27 + License, supplemented by the additional permissions listed below. 28 + 29 + 0. Additional Definitions. 30 + 31 + As used herein, "this License" refers to version 3 of the GNU Lesser 32 + General Public License, and the "GNU GPL" refers to version 3 of the GNU 33 + General Public License. 34 + 35 + "The Library" refers to a covered work governed by this License, 36 + other than an Application or a Combined Work as defined below. 37 + 38 + An "Application" is any work that makes use of an interface provided 39 + by the Library, but which is not otherwise based on the Library. 40 + Defining a subclass of a class defined by the Library is deemed a mode 41 + of using an interface provided by the Library. 42 + 43 + A "Combined Work" is a work produced by combining or linking an 44 + Application with the Library. The particular version of the Library 45 + with which the Combined Work was made is also called the "Linked 46 + Version". 47 + 48 + The "Minimal Corresponding Source" for a Combined Work means the 49 + Corresponding Source for the Combined Work, excluding any source code 50 + for portions of the Combined Work that, considered in isolation, are 51 + based on the Application, and not on the Linked Version. 52 + 53 + The "Corresponding Application Code" for a Combined Work means the 54 + object code and/or source code for the Application, including any data 55 + and utility programs needed for reproducing the Combined Work from the 56 + Application, but excluding the System Libraries of the Combined Work. 57 + 58 + 1. Exception to Section 3 of the GNU GPL. 59 + 60 + You may convey a covered work under sections 3 and 4 of this License 61 + without being bound by section 3 of the GNU GPL. 62 + 63 + 2. Conveying Modified Versions. 64 + 65 + If you modify a copy of the Library, and, in your modifications, a 66 + facility refers to a function or data to be supplied by an Application 67 + that uses the facility (other than as an argument passed when the 68 + facility is invoked), then you may convey a copy of the modified 69 + version: 70 + 71 + a) under this License, provided that you make a good faith effort to 72 + ensure that, in the event an Application does not supply the 73 + function or data, the facility still operates, and performs 74 + whatever part of its purpose remains meaningful, or 75 + 76 + b) under the GNU GPL, with none of the additional permissions of 77 + this License applicable to that copy. 78 + 79 + 3. Object Code Incorporating Material from Library Header Files. 80 + 81 + The object code form of an Application may incorporate material from 82 + a header file that is part of the Library. You may convey such object 83 + code under terms of your choice, provided that, if the incorporated 84 + material is not limited to numerical parameters, data structure 85 + layouts and accessors, or small macros, inline functions and templates 86 + (ten or fewer lines in length), you do both of the following: 87 + 88 + a) Give prominent notice with each copy of the object code that the 89 + Library is used in it and that the Library and its use are 90 + covered by this License. 91 + 92 + b) Accompany the object code with a copy of the GNU GPL and this license 93 + document. 94 + 95 + 4. Combined Works. 96 + 97 + You may convey a Combined Work under terms of your choice that, 98 + taken together, effectively do not restrict modification of the 99 + portions of the Library contained in the Combined Work and reverse 100 + engineering for debugging such modifications, if you also do each of 101 + the following: 102 + 103 + a) Give prominent notice with each copy of the Combined Work that 104 + the Library is used in it and that the Library and its use are 105 + covered by this License. 106 + 107 + b) Accompany the Combined Work with a copy of the GNU GPL and this license 108 + document. 109 + 110 + c) For a Combined Work that displays copyright notices during 111 + execution, include the copyright notice for the Library among 112 + these notices, as well as a reference directing the user to the 113 + copies of the GNU GPL and this license document. 114 + 115 + d) Do one of the following: 116 + 117 + 0) Convey the Minimal Corresponding Source under the terms of this 118 + License, and the Corresponding Application Code in a form 119 + suitable for, and under terms that permit, the user to 120 + recombine or relink the Application with a modified version of 121 + the Linked Version to produce a modified Combined Work, in the 122 + manner specified by section 6 of the GNU GPL for conveying 123 + Corresponding Source. 124 + 125 + 1) Use a suitable shared library mechanism for linking with the 126 + Library. A suitable mechanism is one that (a) uses at run time 127 + a copy of the Library already present on the user's computer 128 + system, and (b) will operate properly with a modified version 129 + of the Library that is interface-compatible with the Linked 130 + Version. 131 + 132 + e) Provide Installation Information, but only if you would otherwise 133 + be required to provide such information under section 6 of the 134 + GNU GPL, and only to the extent that such information is 135 + necessary to install and execute a modified version of the 136 + Combined Work produced by recombining or relinking the 137 + Application with a modified version of the Linked Version. (If 138 + you use option 4d0, the Installation Information must accompany 139 + the Minimal Corresponding Source and Corresponding Application 140 + Code. If you use option 4d1, you must provide the Installation 141 + Information in the manner specified by section 6 of the GNU GPL 142 + for conveying Corresponding Source.) 143 + 144 + 5. Combined Libraries. 145 + 146 + You may place library facilities that are a work based on the 147 + Library side by side in a single library together with other library 148 + facilities that are not Applications and are not covered by this 149 + License, and convey such a combined library under terms of your 150 + choice, if you do both of the following: 151 + 152 + a) Accompany the combined library with a copy of the same work based 153 + on the Library, uncombined with any other library facilities, 154 + conveyed under the terms of this License. 155 + 156 + b) Give prominent notice with the combined library that part of it 157 + is a work based on the Library, and explaining where to find the 158 + accompanying uncombined form of the same work. 159 + 160 + 6. Revised Versions of the GNU Lesser General Public License. 161 + 162 + The Free Software Foundation may publish revised and/or new versions 163 + of the GNU Lesser General Public License from time to time. Such new 164 + versions will be similar in spirit to the present version, but may 165 + differ in detail to address new problems or concerns. 166 + 167 + Each version is given a distinguishing version number. If the 168 + Library as you received it specifies that a certain numbered version 169 + of the GNU Lesser General Public License "or any later version" 170 + applies to it, you have the option of following the terms and 171 + conditions either of that published version or of any later version 172 + published by the Free Software Foundation. If the Library as you 173 + received it does not specify a version number of the GNU Lesser 174 + General Public License, you may choose any version of the GNU Lesser 175 + General Public License ever published by the Free Software Foundation. 176 + 177 + If the Library as you received it specifies that a proxy can decide 178 + whether future versions of the GNU Lesser General Public License shall 179 + apply, that proxy's public statement of acceptance of any version is 180 + permanent authorization for you to choose that version for the 181 + Library. 182 + 183 + GNU GENERAL PUBLIC LICENSE 184 + Version 3, 29 June 2007 185 + 186 + Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> 187 + Everyone is permitted to copy and distribute verbatim copies 188 + of this license document, but changing it is not allowed. 189 + 190 + Preamble 191 + 192 + The GNU General Public License is a free, copyleft license for 193 + software and other kinds of works. 194 + 195 + The licenses for most software and other practical works are designed 196 + to take away your freedom to share and change the works. By contrast, 197 + the GNU General Public License is intended to guarantee your freedom to 198 + share and change all versions of a program--to make sure it remains free 199 + software for all its users. We, the Free Software Foundation, use the 200 + GNU General Public License for most of our software; it applies also to 201 + any other work released this way by its authors. You can apply it to 202 + your programs, too. 203 + 204 + When we speak of free software, we are referring to freedom, not 205 + price. Our General Public Licenses are designed to make sure that you 206 + have the freedom to distribute copies of free software (and charge for 207 + them if you wish), that you receive source code or can get it if you 208 + want it, that you can change the software or use pieces of it in new 209 + free programs, and that you know you can do these things. 210 + 211 + To protect your rights, we need to prevent others from denying you 212 + these rights or asking you to surrender the rights. Therefore, you have 213 + certain responsibilities if you distribute copies of the software, or if 214 + you modify it: responsibilities to respect the freedom of others. 215 + 216 + For example, if you distribute copies of such a program, whether 217 + gratis or for a fee, you must pass on to the recipients the same 218 + freedoms that you received. You must make sure that they, too, receive 219 + or can get the source code. And you must show them these terms so they 220 + know their rights. 221 + 222 + Developers that use the GNU GPL protect your rights with two steps: 223 + (1) assert copyright on the software, and (2) offer you this License 224 + giving you legal permission to copy, distribute and/or modify it. 225 + 226 + For the developers' and authors' protection, the GPL clearly explains 227 + that there is no warranty for this free software. For both users' and 228 + authors' sake, the GPL requires that modified versions be marked as 229 + changed, so that their problems will not be attributed erroneously to 230 + authors of previous versions. 231 + 232 + Some devices are designed to deny users access to install or run 233 + modified versions of the software inside them, although the manufacturer 234 + can do so. This is fundamentally incompatible with the aim of 235 + protecting users' freedom to change the software. The systematic 236 + pattern of such abuse occurs in the area of products for individuals to 237 + use, which is precisely where it is most unacceptable. Therefore, we 238 + have designed this version of the GPL to prohibit the practice for those 239 + products. If such problems arise substantially in other domains, we 240 + stand ready to extend this provision to those domains in future versions 241 + of the GPL, as needed to protect the freedom of users. 242 + 243 + Finally, every program is threatened constantly by software patents. 244 + States should not allow patents to restrict development and use of 245 + software on general-purpose computers, but in those that do, we wish to 246 + avoid the special danger that patents applied to a free program could 247 + make it effectively proprietary. To prevent this, the GPL assures that 248 + patents cannot be used to render the program non-free. 249 + 250 + The precise terms and conditions for copying, distribution and 251 + modification follow. 252 + 253 + TERMS AND CONDITIONS 254 + 255 + 0. Definitions. 256 + 257 + "This License" refers to version 3 of the GNU General Public License. 258 + 259 + "Copyright" also means copyright-like laws that apply to other kinds of 260 + works, such as semiconductor masks. 261 + 262 + "The Program" refers to any copyrightable work licensed under this 263 + License. Each licensee is addressed as "you". "Licensees" and 264 + "recipients" may be individuals or organizations. 265 + 266 + To "modify" a work means to copy from or adapt all or part of the work 267 + in a fashion requiring copyright permission, other than the making of an 268 + exact copy. The resulting work is called a "modified version" of the 269 + earlier work or a work "based on" the earlier work. 270 + 271 + A "covered work" means either the unmodified Program or a work based 272 + on the Program. 273 + 274 + To "propagate" a work means to do anything with it that, without 275 + permission, would make you directly or secondarily liable for 276 + infringement under applicable copyright law, except executing it on a 277 + computer or modifying a private copy. Propagation includes copying, 278 + distribution (with or without modification), making available to the 279 + public, and in some countries other activities as well. 280 + 281 + To "convey" a work means any kind of propagation that enables other 282 + parties to make or receive copies. Mere interaction with a user through 283 + a computer network, with no transfer of a copy, is not conveying. 284 + 285 + An interactive user interface displays "Appropriate Legal Notices" 286 + to the extent that it includes a convenient and prominently visible 287 + feature that (1) displays an appropriate copyright notice, and (2) 288 + tells the user that there is no warranty for the work (except to the 289 + extent that warranties are provided), that licensees may convey the 290 + work under this License, and how to view a copy of this License. If 291 + the interface presents a list of user commands or options, such as a 292 + menu, a prominent item in the list meets this criterion. 293 + 294 + 1. Source Code. 295 + 296 + The "source code" for a work means the preferred form of the work 297 + for making modifications to it. "Object code" means any non-source 298 + form of a work. 299 + 300 + A "Standard Interface" means an interface that either is an official 301 + standard defined by a recognized standards body, or, in the case of 302 + interfaces specified for a particular programming language, one that 303 + is widely used among developers working in that language. 304 + 305 + The "System Libraries" of an executable work include anything, other 306 + than the work as a whole, that (a) is included in the normal form of 307 + packaging a Major Component, but which is not part of that Major 308 + Component, and (b) serves only to enable use of the work with that 309 + Major Component, or to implement a Standard Interface for which an 310 + implementation is available to the public in source code form. A 311 + "Major Component", in this context, means a major essential component 312 + (kernel, window system, and so on) of the specific operating system 313 + (if any) on which the executable work runs, or a compiler used to 314 + produce the work, or an object code interpreter used to run it. 315 + 316 + The "Corresponding Source" for a work in object code form means all 317 + the source code needed to generate, install, and (for an executable 318 + work) run the object code and to modify the work, including scripts to 319 + control those activities. However, it does not include the work's 320 + System Libraries, or general-purpose tools or generally available free 321 + programs which are used unmodified in performing those activities but 322 + which are not part of the work. For example, Corresponding Source 323 + includes interface definition files associated with source files for 324 + the work, and the source code for shared libraries and dynamically 325 + linked subprograms that the work is specifically designed to require, 326 + such as by intimate data communication or control flow between those 327 + subprograms and other parts of the work. 328 + 329 + The Corresponding Source need not include anything that users 330 + can regenerate automatically from other parts of the Corresponding 331 + Source. 332 + 333 + The Corresponding Source for a work in source code form is that 334 + same work. 335 + 336 + 2. Basic Permissions. 337 + 338 + All rights granted under this License are granted for the term of 339 + copyright on the Program, and are irrevocable provided the stated 340 + conditions are met. This License explicitly affirms your unlimited 341 + permission to run the unmodified Program. The output from running a 342 + covered work is covered by this License only if the output, given its 343 + content, constitutes a covered work. This License acknowledges your 344 + rights of fair use or other equivalent, as provided by copyright law. 345 + 346 + You may make, run and propagate covered works that you do not 347 + convey, without conditions so long as your license otherwise remains 348 + in force. You may convey covered works to others for the sole purpose 349 + of having them make modifications exclusively for you, or provide you 350 + with facilities for running those works, provided that you comply with 351 + the terms of this License in conveying all material for which you do 352 + not control copyright. Those thus making or running the covered works 353 + for you must do so exclusively on your behalf, under your direction 354 + and control, on terms that prohibit them from making any copies of 355 + your copyrighted material outside their relationship with you. 356 + 357 + Conveying under any other circumstances is permitted solely under 358 + the conditions stated below. Sublicensing is not allowed; section 10 359 + makes it unnecessary. 360 + 361 + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 362 + 363 + No covered work shall be deemed part of an effective technological 364 + measure under any applicable law fulfilling obligations under article 365 + 11 of the WIPO copyright treaty adopted on 20 December 1996, or 366 + similar laws prohibiting or restricting circumvention of such 367 + measures. 368 + 369 + When you convey a covered work, you waive any legal power to forbid 370 + circumvention of technological measures to the extent such circumvention 371 + is effected by exercising rights under this License with respect to 372 + the covered work, and you disclaim any intention to limit operation or 373 + modification of the work as a means of enforcing, against the work's 374 + users, your or third parties' legal rights to forbid circumvention of 375 + technological measures. 376 + 377 + 4. Conveying Verbatim Copies. 378 + 379 + You may convey verbatim copies of the Program's source code as you 380 + receive it, in any medium, provided that you conspicuously and 381 + appropriately publish on each copy an appropriate copyright notice; 382 + keep intact all notices stating that this License and any 383 + non-permissive terms added in accord with section 7 apply to the code; 384 + keep intact all notices of the absence of any warranty; and give all 385 + recipients a copy of this License along with the Program. 386 + 387 + You may charge any price or no price for each copy that you convey, 388 + and you may offer support or warranty protection for a fee. 389 + 390 + 5. Conveying Modified Source Versions. 391 + 392 + You may convey a work based on the Program, or the modifications to 393 + produce it from the Program, in the form of source code under the 394 + terms of section 4, provided that you also meet all of these conditions: 395 + 396 + a) The work must carry prominent notices stating that you modified 397 + it, and giving a relevant date. 398 + 399 + b) The work must carry prominent notices stating that it is 400 + released under this License and any conditions added under section 401 + 7. This requirement modifies the requirement in section 4 to 402 + "keep intact all notices". 403 + 404 + c) You must license the entire work, as a whole, under this 405 + License to anyone who comes into possession of a copy. This 406 + License will therefore apply, along with any applicable section 7 407 + additional terms, to the whole of the work, and all its parts, 408 + regardless of how they are packaged. This License gives no 409 + permission to license the work in any other way, but it does not 410 + invalidate such permission if you have separately received it. 411 + 412 + d) If the work has interactive user interfaces, each must display 413 + Appropriate Legal Notices; however, if the Program has interactive 414 + interfaces that do not display Appropriate Legal Notices, your 415 + work need not make them do so. 416 + 417 + A compilation of a covered work with other separate and independent 418 + works, which are not by their nature extensions of the covered work, 419 + and which are not combined with it such as to form a larger program, 420 + in or on a volume of a storage or distribution medium, is called an 421 + "aggregate" if the compilation and its resulting copyright are not 422 + used to limit the access or legal rights of the compilation's users 423 + beyond what the individual works permit. Inclusion of a covered work 424 + in an aggregate does not cause this License to apply to the other 425 + parts of the aggregate. 426 + 427 + 6. Conveying Non-Source Forms. 428 + 429 + You may convey a covered work in object code form under the terms 430 + of sections 4 and 5, provided that you also convey the 431 + machine-readable Corresponding Source under the terms of this License, 432 + in one of these ways: 433 + 434 + a) Convey the object code in, or embodied in, a physical product 435 + (including a physical distribution medium), accompanied by the 436 + Corresponding Source fixed on a durable physical medium 437 + customarily used for software interchange. 438 + 439 + b) Convey the object code in, or embodied in, a physical product 440 + (including a physical distribution medium), accompanied by a 441 + written offer, valid for at least three years and valid for as 442 + long as you offer spare parts or customer support for that product 443 + model, to give anyone who possesses the object code either (1) a 444 + copy of the Corresponding Source for all the software in the 445 + product that is covered by this License, on a durable physical 446 + medium customarily used for software interchange, for a price no 447 + more than your reasonable cost of physically performing this 448 + conveying of source, or (2) access to copy the 449 + Corresponding Source from a network server at no charge. 450 + 451 + c) Convey individual copies of the object code with a copy of the 452 + written offer to provide the Corresponding Source. This 453 + alternative is allowed only occasionally and noncommercially, and 454 + only if you received the object code with such an offer, in accord 455 + with subsection 6b. 456 + 457 + d) Convey the object code by offering access from a designated 458 + place (gratis or for a charge), and offer equivalent access to the 459 + Corresponding Source in the same way through the same place at no 460 + further charge. You need not require recipients to copy the 461 + Corresponding Source along with the object code. If the place to 462 + copy the object code is a network server, the Corresponding Source 463 + may be on a different server (operated by you or a third party) 464 + that supports equivalent copying facilities, provided you maintain 465 + clear directions next to the object code saying where to find the 466 + Corresponding Source. Regardless of what server hosts the 467 + Corresponding Source, you remain obligated to ensure that it is 468 + available for as long as needed to satisfy these requirements. 469 + 470 + e) Convey the object code using peer-to-peer transmission, provided 471 + you inform other peers where the object code and Corresponding 472 + Source of the work are being offered to the general public at no 473 + charge under subsection 6d. 474 + 475 + A separable portion of the object code, whose source code is excluded 476 + from the Corresponding Source as a System Library, need not be 477 + included in conveying the object code work. 478 + 479 + A "User Product" is either (1) a "consumer product", which means any 480 + tangible personal property which is normally used for personal, family, 481 + or household purposes, or (2) anything designed or sold for incorporation 482 + into a dwelling. In determining whether a product is a consumer product, 483 + doubtful cases shall be resolved in favor of coverage. For a particular 484 + product received by a particular user, "normally used" refers to a 485 + typical or common use of that class of product, regardless of the status 486 + of the particular user or of the way in which the particular user 487 + actually uses, or expects or is expected to use, the product. A product 488 + is a consumer product regardless of whether the product has substantial 489 + commercial, industrial or non-consumer uses, unless such uses represent 490 + the only significant mode of use of the product. 491 + 492 + "Installation Information" for a User Product means any methods, 493 + procedures, authorization keys, or other information required to install 494 + and execute modified versions of a covered work in that User Product from 495 + a modified version of its Corresponding Source. The information must 496 + suffice to ensure that the continued functioning of the modified object 497 + code is in no case prevented or interfered with solely because 498 + modification has been made. 499 + 500 + If you convey an object code work under this section in, or with, or 501 + specifically for use in, a User Product, and the conveying occurs as 502 + part of a transaction in which the right of possession and use of the 503 + User Product is transferred to the recipient in perpetuity or for a 504 + fixed term (regardless of how the transaction is characterized), the 505 + Corresponding Source conveyed under this section must be accompanied 506 + by the Installation Information. But this requirement does not apply 507 + if neither you nor any third party retains the ability to install 508 + modified object code on the User Product (for example, the work has 509 + been installed in ROM). 510 + 511 + The requirement to provide Installation Information does not include a 512 + requirement to continue to provide support service, warranty, or updates 513 + for a work that has been modified or installed by the recipient, or for 514 + the User Product in which it has been modified or installed. Access to a 515 + network may be denied when the modification itself materially and 516 + adversely affects the operation of the network or violates the rules and 517 + protocols for communication across the network. 518 + 519 + Corresponding Source conveyed, and Installation Information provided, 520 + in accord with this section must be in a format that is publicly 521 + documented (and with an implementation available to the public in 522 + source code form), and must require no special password or key for 523 + unpacking, reading or copying. 524 + 525 + 7. Additional Terms. 526 + 527 + "Additional permissions" are terms that supplement the terms of this 528 + License by making exceptions from one or more of its conditions. 529 + Additional permissions that are applicable to the entire Program shall 530 + be treated as though they were included in this License, to the extent 531 + that they are valid under applicable law. If additional permissions 532 + apply only to part of the Program, that part may be used separately 533 + under those permissions, but the entire Program remains governed by 534 + this License without regard to the additional permissions. 535 + 536 + When you convey a copy of a covered work, you may at your option 537 + remove any additional permissions from that copy, or from any part of 538 + it. (Additional permissions may be written to require their own 539 + removal in certain cases when you modify the work.) You may place 540 + additional permissions on material, added by you to a covered work, 541 + for which you have or can give appropriate copyright permission. 542 + 543 + Notwithstanding any other provision of this License, for material you 544 + add to a covered work, you may (if authorized by the copyright holders of 545 + that material) supplement the terms of this License with terms: 546 + 547 + a) Disclaiming warranty or limiting liability differently from the 548 + terms of sections 15 and 16 of this License; or 549 + 550 + b) Requiring preservation of specified reasonable legal notices or 551 + author attributions in that material or in the Appropriate Legal 552 + Notices displayed by works containing it; or 553 + 554 + c) Prohibiting misrepresentation of the origin of that material, or 555 + requiring that modified versions of such material be marked in 556 + reasonable ways as different from the original version; or 557 + 558 + d) Limiting the use for publicity purposes of names of licensors or 559 + authors of the material; or 560 + 561 + e) Declining to grant rights under trademark law for use of some 562 + trade names, trademarks, or service marks; or 563 + 564 + f) Requiring indemnification of licensors and authors of that 565 + material by anyone who conveys the material (or modified versions of 566 + it) with contractual assumptions of liability to the recipient, for 567 + any liability that these contractual assumptions directly impose on 568 + those licensors and authors. 569 + 570 + All other non-permissive additional terms are considered "further 571 + restrictions" within the meaning of section 10. If the Program as you 572 + received it, or any part of it, contains a notice stating that it is 573 + governed by this License along with a term that is a further 574 + restriction, you may remove that term. If a license document contains 575 + a further restriction but permits relicensing or conveying under this 576 + License, you may add to a covered work material governed by the terms 577 + of that license document, provided that the further restriction does 578 + not survive such relicensing or conveying. 579 + 580 + If you add terms to a covered work in accord with this section, you 581 + must place, in the relevant source files, a statement of the 582 + additional terms that apply to those files, or a notice indicating 583 + where to find the applicable terms. 584 + 585 + Additional terms, permissive or non-permissive, may be stated in the 586 + form of a separately written license, or stated as exceptions; 587 + the above requirements apply either way. 588 + 589 + 8. Termination. 590 + 591 + You may not propagate or modify a covered work except as expressly 592 + provided under this License. Any attempt otherwise to propagate or 593 + modify it is void, and will automatically terminate your rights under 594 + this License (including any patent licenses granted under the third 595 + paragraph of section 11). 596 + 597 + However, if you cease all violation of this License, then your 598 + license from a particular copyright holder is reinstated (a) 599 + provisionally, unless and until the copyright holder explicitly and 600 + finally terminates your license, and (b) permanently, if the copyright 601 + holder fails to notify you of the violation by some reasonable means 602 + prior to 60 days after the cessation. 603 + 604 + Moreover, your license from a particular copyright holder is 605 + reinstated permanently if the copyright holder notifies you of the 606 + violation by some reasonable means, this is the first time you have 607 + received notice of violation of this License (for any work) from that 608 + copyright holder, and you cure the violation prior to 30 days after 609 + your receipt of the notice. 610 + 611 + Termination of your rights under this section does not terminate the 612 + licenses of parties who have received copies or rights from you under 613 + this License. If your rights have been terminated and not permanently 614 + reinstated, you do not qualify to receive new licenses for the same 615 + material under section 10. 616 + 617 + 9. Acceptance Not Required for Having Copies. 618 + 619 + You are not required to accept this License in order to receive or 620 + run a copy of the Program. Ancillary propagation of a covered work 621 + occurring solely as a consequence of using peer-to-peer transmission 622 + to receive a copy likewise does not require acceptance. However, 623 + nothing other than this License grants you permission to propagate or 624 + modify any covered work. These actions infringe copyright if you do 625 + not accept this License. Therefore, by modifying or propagating a 626 + covered work, you indicate your acceptance of this License to do so. 627 + 628 + 10. Automatic Licensing of Downstream Recipients. 629 + 630 + Each time you convey a covered work, the recipient automatically 631 + receives a license from the original licensors, to run, modify and 632 + propagate that work, subject to this License. You are not responsible 633 + for enforcing compliance by third parties with this License. 634 + 635 + An "entity transaction" is a transaction transferring control of an 636 + organization, or substantially all assets of one, or subdividing an 637 + organization, or merging organizations. If propagation of a covered 638 + work results from an entity transaction, each party to that 639 + transaction who receives a copy of the work also receives whatever 640 + licenses to the work the party's predecessor in interest had or could 641 + give under the previous paragraph, plus a right to possession of the 642 + Corresponding Source of the work from the predecessor in interest, if 643 + the predecessor has it or can get it with reasonable efforts. 644 + 645 + You may not impose any further restrictions on the exercise of the 646 + rights granted or affirmed under this License. For example, you may 647 + not impose a license fee, royalty, or other charge for exercise of 648 + rights granted under this License, and you may not initiate litigation 649 + (including a cross-claim or counterclaim in a lawsuit) alleging that 650 + any patent claim is infringed by making, using, selling, offering for 651 + sale, or importing the Program or any portion of it. 652 + 653 + 11. Patents. 654 + 655 + A "contributor" is a copyright holder who authorizes use under this 656 + License of the Program or a work on which the Program is based. The 657 + work thus licensed is called the contributor's "contributor version". 658 + 659 + A contributor's "essential patent claims" are all patent claims 660 + owned or controlled by the contributor, whether already acquired or 661 + hereafter acquired, that would be infringed by some manner, permitted 662 + by this License, of making, using, or selling its contributor version, 663 + but do not include claims that would be infringed only as a 664 + consequence of further modification of the contributor version. For 665 + purposes of this definition, "control" includes the right to grant 666 + patent sublicenses in a manner consistent with the requirements of 667 + this License. 668 + 669 + Each contributor grants you a non-exclusive, worldwide, royalty-free 670 + patent license under the contributor's essential patent claims, to 671 + make, use, sell, offer for sale, import and otherwise run, modify and 672 + propagate the contents of its contributor version. 673 + 674 + In the following three paragraphs, a "patent license" is any express 675 + agreement or commitment, however denominated, not to enforce a patent 676 + (such as an express permission to practice a patent or covenant not to 677 + sue for patent infringement). To "grant" such a patent license to a 678 + party means to make such an agreement or commitment not to enforce a 679 + patent against the party. 680 + 681 + If you convey a covered work, knowingly relying on a patent license, 682 + and the Corresponding Source of the work is not available for anyone 683 + to copy, free of charge and under the terms of this License, through a 684 + publicly available network server or other readily accessible means, 685 + then you must either (1) cause the Corresponding Source to be so 686 + available, or (2) arrange to deprive yourself of the benefit of the 687 + patent license for this particular work, or (3) arrange, in a manner 688 + consistent with the requirements of this License, to extend the patent 689 + license to downstream recipients. "Knowingly relying" means you have 690 + actual knowledge that, but for the patent license, your conveying the 691 + covered work in a country, or your recipient's use of the covered work 692 + in a country, would infringe one or more identifiable patents in that 693 + country that you have reason to believe are valid. 694 + 695 + If, pursuant to or in connection with a single transaction or 696 + arrangement, you convey, or propagate by procuring conveyance of, a 697 + covered work, and grant a patent license to some of the parties 698 + receiving the covered work authorizing them to use, propagate, modify 699 + or convey a specific copy of the covered work, then the patent license 700 + you grant is automatically extended to all recipients of the covered 701 + work and works based on it. 702 + 703 + A patent license is "discriminatory" if it does not include within 704 + the scope of its coverage, prohibits the exercise of, or is 705 + conditioned on the non-exercise of one or more of the rights that are 706 + specifically granted under this License. You may not convey a covered 707 + work if you are a party to an arrangement with a third party that is 708 + in the business of distributing software, under which you make payment 709 + to the third party based on the extent of your activity of conveying 710 + the work, and under which the third party grants, to any of the 711 + parties who would receive the covered work from you, a discriminatory 712 + patent license (a) in connection with copies of the covered work 713 + conveyed by you (or copies made from those copies), or (b) primarily 714 + for and in connection with specific products or compilations that 715 + contain the covered work, unless you entered into that arrangement, 716 + or that patent license was granted, prior to 28 March 2007. 717 + 718 + Nothing in this License shall be construed as excluding or limiting 719 + any implied license or other defenses to infringement that may 720 + otherwise be available to you under applicable patent law. 721 + 722 + 12. No Surrender of Others' Freedom. 723 + 724 + If conditions are imposed on you (whether by court order, agreement or 725 + otherwise) that contradict the conditions of this License, they do not 726 + excuse you from the conditions of this License. If you cannot convey a 727 + covered work so as to satisfy simultaneously your obligations under this 728 + License and any other pertinent obligations, then as a consequence you may 729 + not convey it at all. For example, if you agree to terms that obligate you 730 + to collect a royalty for further conveying from those to whom you convey 731 + the Program, the only way you could satisfy both those terms and this 732 + License would be to refrain entirely from conveying the Program. 733 + 734 + 13. Use with the GNU Affero General Public License. 735 + 736 + Notwithstanding any other provision of this License, you have 737 + permission to link or combine any covered work with a work licensed 738 + under version 3 of the GNU Affero General Public License into a single 739 + combined work, and to convey the resulting work. The terms of this 740 + License will continue to apply to the part which is the covered work, 741 + but the special requirements of the GNU Affero General Public License, 742 + section 13, concerning interaction through a network will apply to the 743 + combination as such. 744 + 745 + 14. Revised Versions of this License. 746 + 747 + The Free Software Foundation may publish revised and/or new versions of 748 + the GNU General Public License from time to time. Such new versions will 749 + be similar in spirit to the present version, but may differ in detail to 750 + address new problems or concerns. 751 + 752 + Each version is given a distinguishing version number. If the 753 + Program specifies that a certain numbered version of the GNU General 754 + Public License "or any later version" applies to it, you have the 755 + option of following the terms and conditions either of that numbered 756 + version or of any later version published by the Free Software 757 + Foundation. If the Program does not specify a version number of the 758 + GNU General Public License, you may choose any version ever published 759 + by the Free Software Foundation. 760 + 761 + If the Program specifies that a proxy can decide which future 762 + versions of the GNU General Public License can be used, that proxy's 763 + public statement of acceptance of a version permanently authorizes you 764 + to choose that version for the Program. 765 + 766 + Later license versions may give you additional or different 767 + permissions. However, no additional obligations are imposed on any 768 + author or copyright holder as a result of your choosing to follow a 769 + later version. 770 + 771 + 15. Disclaimer of Warranty. 772 + 773 + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 774 + APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 775 + HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 776 + OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 777 + THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 778 + PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 779 + IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 780 + ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 781 + 782 + 16. Limitation of Liability. 783 + 784 + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 785 + WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 786 + THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 787 + GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 788 + USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 789 + DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 790 + PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 791 + EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 792 + SUCH DAMAGES. 793 + 794 + 17. Interpretation of Sections 15 and 16. 795 + 796 + If the disclaimer of warranty and limitation of liability provided 797 + above cannot be given local legal effect according to their terms, 798 + reviewing courts shall apply local law that most closely approximates 799 + an absolute waiver of all civil liability in connection with the 800 + Program, unless a warranty or assumption of liability accompanies a 801 + copy of the Program in return for a fee. 802 + 803 + END OF TERMS AND CONDITIONS 804 + 805 + How to Apply These Terms to Your New Programs 806 + 807 + If you develop a new program, and you want it to be of the greatest 808 + possible use to the public, the best way to achieve this is to make it 809 + free software which everyone can redistribute and change under these terms. 810 + 811 + To do so, attach the following notices to the program. It is safest 812 + to attach them to the start of each source file to most effectively 813 + state the exclusion of warranty; and each file should have at least 814 + the "copyright" line and a pointer to where the full notice is found. 815 + 816 + {one line to give the program's name and a brief idea of what it does.} 817 + Copyright (C) {year} {name of author} 818 + 819 + This program is free software: you can redistribute it and/or modify 820 + it under the terms of the GNU General Public License as published by 821 + the Free Software Foundation, either version 3 of the License, or 822 + (at your option) any later version. 823 + 824 + This program is distributed in the hope that it will be useful, 825 + but WITHOUT ANY WARRANTY; without even the implied warranty of 826 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 827 + GNU General Public License for more details. 828 + 829 + You should have received a copy of the GNU General Public License 830 + along with this program. If not, see <http://www.gnu.org/licenses/>. 831 + 832 + Also add information on how to contact you by electronic and paper mail. 833 + 834 + If the program does terminal interaction, make it output a short 835 + notice like this when it starts in an interactive mode: 836 + 837 + {project} Copyright (C) {year} {fullname} 838 + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 839 + This is free software, and you are welcome to redistribute it 840 + under certain conditions; type `show c' for details. 841 + 842 + The hypothetical commands `show w' and `show c' should show the appropriate 843 + parts of the General Public License. Of course, your program's commands 844 + might be different; for a GUI interface, you would use an "about box". 845 + 846 + You should also get your employer (if you work as a programmer) or school, 847 + if any, to sign a "copyright disclaimer" for the program, if necessary. 848 + For more information on this, and how to apply and follow the GNU GPL, see 849 + <http://www.gnu.org/licenses/>. 850 + 851 + The GNU General Public License does not permit incorporating your program 852 + into proprietary programs. If your program is a subroutine library, you 853 + may consider it more useful to permit linking proprietary applications with 854 + the library. If this is what you want to do, use the GNU Lesser General 855 + Public License instead of this License. But first, please read 856 + <http://www.gnu.org/philosophy/why-not-lgpl.html>. 857 +
+106
build.gradle
··· 1 + plugins { 2 + id 'fabric-loom' version '1.2-SNAPSHOT' 3 + id 'maven-publish' 4 + } 5 + 6 + version = project.mod_version 7 + group = project.maven_group 8 + 9 + repositories { 10 + maven { url 'https://maven.wispforest.io' } 11 + maven { 12 + name = "Ladysnake Mods" 13 + url = 'https://maven.ladysnake.org/releases' 14 + } 15 + } 16 + 17 + dependencies { 18 + minecraft "com.mojang:minecraft:${project.minecraft_version}" 19 + 20 + // fabric stuff 21 + mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2" 22 + modImplementation "net.fabricmc:fabric-loader:${project.loader_version}" 23 + modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" 24 + 25 + // owo-lib 26 + modImplementation "io.wispforest:owo-lib:${project.owo_version}" 27 + include "io.wispforest:owo-sentinel:${project.owo_version}" 28 + annotationProcessor modImplementation("io.wispforest:owo-lib:${project.owo_version}") 29 + 30 + 31 + // Cardinal Components API 32 + modImplementation "dev.onyxstudios.cardinal-components-api:cardinal-components-base:${project.cca_version}" 33 + modImplementation "dev.onyxstudios.cardinal-components-api:cardinal-components-entity:${project.cca_version}" 34 + include "dev.onyxstudios.cardinal-components-api:cardinal-components-base:${project.cca_version}" 35 + include "dev.onyxstudios.cardinal-components-api:cardinal-components-entity:${project.cca_version}" 36 + } 37 + 38 + processResources { 39 + inputs.property "version", project.version 40 + inputs.property "minecraft_version", project.minecraft_version 41 + inputs.property "loader_version", project.loader_version 42 + filteringCharset "UTF-8" 43 + 44 + filesMatching("fabric.mod.json") { 45 + expand "version": project.version, 46 + "minecraft_version": project.minecraft_version, 47 + "loader_version": project.loader_version 48 + } 49 + } 50 + 51 + def targetJavaVersion = 17 52 + tasks.withType(JavaCompile).configureEach {it.options.encoding = "UTF-8" 53 + if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) { 54 + it.options.release = targetJavaVersion 55 + } 56 + } 57 + 58 + java { 59 + def javaVersion = JavaVersion.toVersion(targetJavaVersion) 60 + if (JavaVersion.current() < javaVersion) { 61 + toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion) 62 + } 63 + archivesBaseName = project.archives_base_name 64 + withSourcesJar() 65 + } 66 + 67 + jar { 68 + from("LICENSE") { 69 + rename { "${it}_${project.archivesBaseName}"} 70 + } 71 + } 72 + 73 + publishing { 74 + publications { 75 + mavenJava(MavenPublication) { 76 + from components.java 77 + } 78 + } 79 + 80 + repositories { 81 + } 82 + } 83 + 84 + loom { 85 + runs { 86 + datagen { 87 + inherit server 88 + name "Data Generation" 89 + vmArg "-Dfabric-api.datagen" 90 + vmArg "-Dfabric-api.datagen.output-dir=${file("src/main/generated")}" 91 + vmArg "-Dfabric-api.datagen.modid=${modid}" 92 + 93 + runDir "build/datagen" 94 + } 95 + } 96 + } 97 + 98 + sourceSets { 99 + main { 100 + resources { 101 + srcDirs += [ 102 + 'src/main/generated' 103 + ] 104 + } 105 + } 106 + }
+13
gradle.properties
··· 1 + org.gradle.jvmargs=-Xmx1G 2 + 3 + mod_version = 0.1.0 4 + maven_group = xyz.naomieow 5 + archives_base_name = Asbestos 6 + minecraft_version=1.20.1 7 + yarn_mappings=1.20.1+build.10 8 + loader_version=0.14.22 9 + fabric_version=0.89.3+1.20.1 10 + modid=asbestos 11 + 12 + owo_version=0.11.2-pre.14+1.20 13 + cca_version = 5.2.2
gradle/wrapper/gradle-wrapper.jar

This is a binary file and will not be displayed.

+6
gradle/wrapper/gradle-wrapper.properties
··· 1 + distributionBase=GRADLE_USER_HOME 2 + distributionPath=wrapper/dists 3 + distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip 4 + networkTimeout=10000 5 + zipStoreBase=GRADLE_USER_HOME 6 + zipStorePath=wrapper/dists
+245
gradlew
··· 1 + #!/bin/sh 2 + 3 + # 4 + # Copyright © 2015-2021 the original authors. 5 + # 6 + # Licensed under the Apache License, Version 2.0 (the "License"); 7 + # you may not use this file except in compliance with the License. 8 + # You may obtain a copy of the License at 9 + # 10 + # https://www.apache.org/licenses/LICENSE-2.0 11 + # 12 + # Unless required by applicable law or agreed to in writing, software 13 + # distributed under the License is distributed on an "AS IS" BASIS, 14 + # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 + # See the License for the specific language governing permissions and 16 + # limitations under the License. 17 + # 18 + 19 + ############################################################################## 20 + # 21 + # Gradle start up script for POSIX generated by Gradle. 22 + # 23 + # Important for running: 24 + # 25 + # (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is 26 + # noncompliant, but you have some other compliant shell such as ksh or 27 + # bash, then to run this script, type that shell name before the whole 28 + # command line, like: 29 + # 30 + # ksh Gradle 31 + # 32 + # Busybox and similar reduced shells will NOT work, because this script 33 + # requires all of these POSIX shell features: 34 + # * functions; 35 + # * expansions «$var», «${var}», «${var:-default}», «${var+SET}», 36 + # «${var#prefix}», «${var%suffix}», and «$( cmd )»; 37 + # * compound commands having a testable exit status, especially «case»; 38 + # * various built-in commands including «command», «set», and «ulimit». 39 + # 40 + # Important for patching: 41 + # 42 + # (2) This script targets any POSIX shell, so it avoids extensions provided 43 + # by Bash, Ksh, etc; in particular arrays are avoided. 44 + # 45 + # The "traditional" practice of packing multiple parameters into a 46 + # space-separated string is a well documented source of bugs and security 47 + # problems, so this is (mostly) avoided, by progressively accumulating 48 + # options in "$@", and eventually passing that to Java. 49 + # 50 + # Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, 51 + # and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; 52 + # see the in-line comments for details. 53 + # 54 + # There are tweaks for specific operating systems such as AIX, CygWin, 55 + # Darwin, MinGW, and NonStop. 56 + # 57 + # (3) This script is generated from the Groovy template 58 + # https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt 59 + # within the Gradle project. 60 + # 61 + # You can find Gradle at https://github.com/gradle/gradle/. 62 + # 63 + ############################################################################## 64 + 65 + # Attempt to set APP_HOME 66 + 67 + # Resolve links: $0 may be a link 68 + app_path=$0 69 + 70 + # Need this for daisy-chained symlinks. 71 + while 72 + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path 73 + [ -h "$app_path" ] 74 + do 75 + ls=$( ls -ld "$app_path" ) 76 + link=${ls#*' -> '} 77 + case $link in #( 78 + /*) app_path=$link ;; #( 79 + *) app_path=$APP_HOME$link ;; 80 + esac 81 + done 82 + 83 + # This is normally unused 84 + # shellcheck disable=SC2034 85 + APP_BASE_NAME=${0##*/} 86 + APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit 87 + 88 + # Use the maximum available, or set MAX_FD != -1 to use that value. 89 + MAX_FD=maximum 90 + 91 + warn () { 92 + echo "$*" 93 + } >&2 94 + 95 + die () { 96 + echo 97 + echo "$*" 98 + echo 99 + exit 1 100 + } >&2 101 + 102 + # OS specific support (must be 'true' or 'false'). 103 + cygwin=false 104 + msys=false 105 + darwin=false 106 + nonstop=false 107 + case "$( uname )" in #( 108 + CYGWIN* ) cygwin=true ;; #( 109 + Darwin* ) darwin=true ;; #( 110 + MSYS* | MINGW* ) msys=true ;; #( 111 + NONSTOP* ) nonstop=true ;; 112 + esac 113 + 114 + CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 115 + 116 + 117 + # Determine the Java command to use to start the JVM. 118 + if [ -n "$JAVA_HOME" ] ; then 119 + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 120 + # IBM's JDK on AIX uses strange locations for the executables 121 + JAVACMD=$JAVA_HOME/jre/sh/java 122 + else 123 + JAVACMD=$JAVA_HOME/bin/java 124 + fi 125 + if [ ! -x "$JAVACMD" ] ; then 126 + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 127 + 128 + Please set the JAVA_HOME variable in your environment to match the 129 + location of your Java installation." 130 + fi 131 + else 132 + JAVACMD=java 133 + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 134 + 135 + Please set the JAVA_HOME variable in your environment to match the 136 + location of your Java installation." 137 + fi 138 + 139 + # Increase the maximum file descriptors if we can. 140 + if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then 141 + case $MAX_FD in #( 142 + max*) 143 + # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. 144 + # shellcheck disable=SC3045 145 + MAX_FD=$( ulimit -H -n ) || 146 + warn "Could not query maximum file descriptor limit" 147 + esac 148 + case $MAX_FD in #( 149 + '' | soft) :;; #( 150 + *) 151 + # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. 152 + # shellcheck disable=SC3045 153 + ulimit -n "$MAX_FD" || 154 + warn "Could not set maximum file descriptor limit to $MAX_FD" 155 + esac 156 + fi 157 + 158 + # Collect all arguments for the java command, stacking in reverse order: 159 + # * args from the command line 160 + # * the main class name 161 + # * -classpath 162 + # * -D...appname settings 163 + # * --module-path (only if needed) 164 + # * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. 165 + 166 + # For Cygwin or MSYS, switch paths to Windows format before running java 167 + if "$cygwin" || "$msys" ; then 168 + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) 169 + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) 170 + 171 + JAVACMD=$( cygpath --unix "$JAVACMD" ) 172 + 173 + # Now convert the arguments - kludge to limit ourselves to /bin/sh 174 + for arg do 175 + if 176 + case $arg in #( 177 + -*) false ;; # don't mess with options #( 178 + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath 179 + [ -e "$t" ] ;; #( 180 + *) false ;; 181 + esac 182 + then 183 + arg=$( cygpath --path --ignore --mixed "$arg" ) 184 + fi 185 + # Roll the args list around exactly as many times as the number of 186 + # args, so each arg winds up back in the position where it started, but 187 + # possibly modified. 188 + # 189 + # NB: a `for` loop captures its iteration list before it begins, so 190 + # changing the positional parameters here affects neither the number of 191 + # iterations, nor the values presented in `arg`. 192 + shift # remove old arg 193 + set -- "$@" "$arg" # push replacement arg 194 + done 195 + fi 196 + 197 + 198 + # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 199 + DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' 200 + 201 + # Collect all arguments for the java command; 202 + # * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of 203 + # shell script including quotes and variable substitutions, so put them in 204 + # double quotes to make sure that they get re-expanded; and 205 + # * put everything else in single quotes, so that it's not re-expanded. 206 + 207 + set -- \ 208 + "-Dorg.gradle.appname=$APP_BASE_NAME" \ 209 + -classpath "$CLASSPATH" \ 210 + org.gradle.wrapper.GradleWrapperMain \ 211 + "$@" 212 + 213 + # Stop when "xargs" is not available. 214 + if ! command -v xargs >/dev/null 2>&1 215 + then 216 + die "xargs is not available" 217 + fi 218 + 219 + # Use "xargs" to parse quoted args. 220 + # 221 + # With -n1 it outputs one arg per line, with the quotes and backslashes removed. 222 + # 223 + # In Bash we could simply go: 224 + # 225 + # readarray ARGS < <( xargs -n1 <<<"$var" ) && 226 + # set -- "${ARGS[@]}" "$@" 227 + # 228 + # but POSIX shell has neither arrays nor command substitution, so instead we 229 + # post-process each arg (as a line of input to sed) to backslash-escape any 230 + # character that might be a shell metacharacter, then use eval to reverse 231 + # that process (while maintaining the separation between arguments), and wrap 232 + # the whole thing up as a single "set" statement. 233 + # 234 + # This will of course break if any of these variables contains a newline or 235 + # an unmatched quote. 236 + # 237 + 238 + eval "set -- $( 239 + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | 240 + xargs -n1 | 241 + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | 242 + tr '\n' ' ' 243 + )" '"$@"' 244 + 245 + exec "$JAVACMD" "$@"
+92
gradlew.bat
··· 1 + @rem 2 + @rem Copyright 2015 the original author or authors. 3 + @rem 4 + @rem Licensed under the Apache License, Version 2.0 (the "License"); 5 + @rem you may not use this file except in compliance with the License. 6 + @rem You may obtain a copy of the License at 7 + @rem 8 + @rem https://www.apache.org/licenses/LICENSE-2.0 9 + @rem 10 + @rem Unless required by applicable law or agreed to in writing, software 11 + @rem distributed under the License is distributed on an "AS IS" BASIS, 12 + @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 + @rem See the License for the specific language governing permissions and 14 + @rem limitations under the License. 15 + @rem 16 + 17 + @if "%DEBUG%"=="" @echo off 18 + @rem ########################################################################## 19 + @rem 20 + @rem Gradle startup script for Windows 21 + @rem 22 + @rem ########################################################################## 23 + 24 + @rem Set local scope for the variables with windows NT shell 25 + if "%OS%"=="Windows_NT" setlocal 26 + 27 + set DIRNAME=%~dp0 28 + if "%DIRNAME%"=="" set DIRNAME=. 29 + @rem This is normally unused 30 + set APP_BASE_NAME=%~n0 31 + set APP_HOME=%DIRNAME% 32 + 33 + @rem Resolve any "." and ".." in APP_HOME to make it shorter. 34 + for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi 35 + 36 + @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 37 + set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 38 + 39 + @rem Find java.exe 40 + if defined JAVA_HOME goto findJavaFromJavaHome 41 + 42 + set JAVA_EXE=java.exe 43 + %JAVA_EXE% -version >NUL 2>&1 44 + if %ERRORLEVEL% equ 0 goto execute 45 + 46 + echo. 47 + echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 48 + echo. 49 + echo Please set the JAVA_HOME variable in your environment to match the 50 + echo location of your Java installation. 51 + 52 + goto fail 53 + 54 + :findJavaFromJavaHome 55 + set JAVA_HOME=%JAVA_HOME:"=% 56 + set JAVA_EXE=%JAVA_HOME%/bin/java.exe 57 + 58 + if exist "%JAVA_EXE%" goto execute 59 + 60 + echo. 61 + echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 62 + echo. 63 + echo Please set the JAVA_HOME variable in your environment to match the 64 + echo location of your Java installation. 65 + 66 + goto fail 67 + 68 + :execute 69 + @rem Setup the command line 70 + 71 + set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 72 + 73 + 74 + @rem Execute Gradle 75 + "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* 76 + 77 + :end 78 + @rem End local scope for the variables with windows NT shell 79 + if %ERRORLEVEL% equ 0 goto mainEnd 80 + 81 + :fail 82 + rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 + rem the _cmd.exe /c_ return code! 84 + set EXIT_CODE=%ERRORLEVEL% 85 + if %EXIT_CODE% equ 0 set EXIT_CODE=1 86 + if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% 87 + exit /b %EXIT_CODE% 88 + 89 + :mainEnd 90 + if "%OS%"=="Windows_NT" endlocal 91 + 92 + :omega
+9
settings.gradle
··· 1 + pluginManagement { 2 + repositories { 3 + maven { 4 + name = 'Fabric' 5 + url = 'https://maven.fabricmc.net/' 6 + } 7 + gradlePluginPortal() 8 + } 9 + }
+18
src/main/java/xyz/naomieow/asbestos/AsbestosDataGen.java
··· 1 + package xyz.naomieow.asbestos; 2 + 3 + import net.fabricmc.fabric.api.datagen.v1.DataGeneratorEntrypoint; 4 + import net.fabricmc.fabric.api.datagen.v1.FabricDataGenerator; 5 + import net.minecraft.registry.RegistryBuilder; 6 + import net.minecraft.registry.RegistryKeys; 7 + 8 + public class AsbestosDataGen implements DataGeneratorEntrypoint { 9 + @Override 10 + public void onInitializeDataGenerator(FabricDataGenerator fabricDataGenerator) { 11 + FabricDataGenerator.Pack pack = fabricDataGenerator.createPack(); 12 + } 13 + 14 + @Override 15 + public void buildRegistry(RegistryBuilder registryBuilder) { 16 + // registryBuilder.addRegistry(RegistryKeys.PLACED_FEATURE, AsbestosMod.SERPENTINITE_PLACED_FEATURE) 17 + } 18 + }
+61
src/main/java/xyz/naomieow/asbestos/AsbestosMod.java
··· 1 + package xyz.naomieow.asbestos; 2 + 3 + import dev.onyxstudios.cca.api.v3.component.ComponentKey; 4 + import dev.onyxstudios.cca.api.v3.component.ComponentRegistryV3; 5 + import dev.onyxstudios.cca.api.v3.entity.EntityComponentFactoryRegistry; 6 + import dev.onyxstudios.cca.api.v3.entity.EntityComponentInitializer; 7 + import dev.onyxstudios.cca.api.v3.entity.RespawnCopyStrategy; 8 + import io.wispforest.owo.registration.reflect.FieldRegistrationHandler; 9 + import net.fabricmc.api.ModInitializer; 10 + import net.fabricmc.fabric.api.biome.v1.BiomeModifications; 11 + import net.fabricmc.fabric.api.biome.v1.BiomeSelectors; 12 + import net.minecraft.block.Block; 13 + import net.minecraft.entity.effect.StatusEffect; 14 + import net.minecraft.registry.*; 15 + import net.minecraft.registry.entry.RegistryEntry; 16 + import net.minecraft.registry.tag.BlockTags; 17 + import net.minecraft.structure.rule.RuleTest; 18 + import net.minecraft.structure.rule.TagMatchRuleTest; 19 + import net.minecraft.util.Identifier; 20 + import net.minecraft.world.gen.GenerationStep; 21 + import net.minecraft.world.gen.YOffset; 22 + import net.minecraft.world.gen.feature.*; 23 + import net.minecraft.world.gen.placementmodifier.CountPlacementModifier; 24 + import net.minecraft.world.gen.placementmodifier.HeightRangePlacementModifier; 25 + import net.minecraft.world.gen.placementmodifier.SquarePlacementModifier; 26 + import xyz.naomieow.asbestos.block.ModBlocks; 27 + import xyz.naomieow.asbestos.config.AsbestosConfig; 28 + import xyz.naomieow.asbestos.item.ModGroups; 29 + import xyz.naomieow.asbestos.item.ModItems; 30 + import xyz.naomieow.asbestos.mesothelioma.MesoComponent; 31 + import xyz.naomieow.asbestos.mesothelioma.MesoStatusEffect; 32 + import xyz.naomieow.asbestos.mesothelioma.PlayerMesoComponet; 33 + 34 + import java.util.Arrays; 35 + 36 + public class AsbestosMod implements ModInitializer, EntityComponentInitializer { 37 + public static final String MOD_ID = "asbestos"; 38 + public static final ComponentKey<MesoComponent> MESOTHELIOMA = ComponentRegistryV3.INSTANCE 39 + .getOrCreate(new Identifier(MOD_ID, "mesothelioma"), MesoComponent.class); 40 + public static final AsbestosConfig CONFIG = AsbestosConfig.createAndLoad(); 41 + public static final StatusEffect MESO_STATUS = new MesoStatusEffect(); 42 + public static final Block[] HARMFUL_PASSIVE_BLOCKS = { ModBlocks.ASBESTOS_BLOCK}; 43 + public static final RegistryKey<PlacedFeature> SERPENTINITE_PLACED_KEY = RegistryKey.of(RegistryKeys.PLACED_FEATURE, new Identifier(MOD_ID, "serpentinite")); 44 + 45 + 46 + 47 + @Override 48 + public void registerEntityComponentFactories(EntityComponentFactoryRegistry registry) { 49 + registry.registerForPlayers(MESOTHELIOMA, PlayerMesoComponet::new, RespawnCopyStrategy.NEVER_COPY); 50 + } 51 + 52 + @Override 53 + public void onInitialize() { 54 + FieldRegistrationHandler.register(ModItems.class, MOD_ID, false); 55 + FieldRegistrationHandler.register(ModBlocks.class, MOD_ID, false); 56 + Registry.register(Registries.STATUS_EFFECT, new Identifier(MOD_ID, "mesothelioma"), MESO_STATUS); 57 + BiomeModifications.addFeature(BiomeSelectors.foundInOverworld(), GenerationStep.Feature.UNDERGROUND_ORES, SERPENTINITE_PLACED_KEY); 58 + ModGroups.init(); 59 + ModScheduler.init(); 60 + } 61 + }
+48
src/main/java/xyz/naomieow/asbestos/ModScheduler.java
··· 1 + package xyz.naomieow.asbestos; 2 + 3 + import net.fabricmc.fabric.api.event.lifecycle.v1.ServerTickEvents; 4 + import net.minecraft.block.Block; 5 + import net.minecraft.entity.effect.StatusEffectInstance; 6 + import net.minecraft.util.math.BlockPos; 7 + import net.minecraft.util.math.Vec3d; 8 + import xyz.naomieow.asbestos.block.CarcinogenicBlock; 9 + 10 + import java.util.Arrays; 11 + 12 + public class ModScheduler { 13 + public static void init() { 14 + ServerTickEvents.END_SERVER_TICK.register( server -> { 15 + if (server.getTicks() % (AsbestosMod.CONFIG.period() * 20) == 0) { 16 + server.getWorlds().forEach(serverWorld -> { 17 + serverWorld.getPlayers().forEach( serverPlayerEntity -> { 18 + int exposure = AsbestosMod.MESOTHELIOMA.get(serverPlayerEntity).getMesothelioma(); 19 + 20 + if (exposure >= (AsbestosMod.CONFIG.threshold() / 2)) { 21 + serverPlayerEntity.addStatusEffect(new StatusEffectInstance(AsbestosMod.MESO_STATUS, -1)); 22 + } 23 + 24 + if (CarcinogenicBlock.isProtectedFromAsbestos(serverPlayerEntity)) { 25 + return; 26 + } 27 + 28 + int offset = AsbestosMod.CONFIG.offset(); 29 + 30 + findasbestos: for (int i = -offset; i < offset; i++) { 31 + for (int j = -offset; j < offset; j++) { 32 + for (int k = -offset; k < offset; k++) { 33 + Vec3d offsetPos = serverPlayerEntity.getPos().add(i, j, k); 34 + BlockPos pos = new BlockPos((int) offsetPos.getX(), (int) offsetPos.getY(), (int) offsetPos.getZ()); 35 + Block block = serverWorld.getBlockState(pos).getBlock(); 36 + if (Arrays.asList(AsbestosMod.HARMFUL_PASSIVE_BLOCKS).contains(block)) { 37 + AsbestosMod.MESOTHELIOMA.get(serverPlayerEntity).setMesothelioma(exposure + 1); 38 + break findasbestos; 39 + } 40 + } 41 + } 42 + } 43 + }); 44 + }); 45 + } 46 + }); 47 + } 48 + }
+55
src/main/java/xyz/naomieow/asbestos/armour/ProtectiveMaterial.java
··· 1 + package xyz.naomieow.asbestos.armour; 2 + 3 + import net.minecraft.item.ArmorItem; 4 + import net.minecraft.item.ArmorMaterial; 5 + import net.minecraft.item.Items; 6 + import net.minecraft.recipe.Ingredient; 7 + import net.minecraft.sound.SoundEvent; 8 + import net.minecraft.sound.SoundEvents; 9 + 10 + public class ProtectiveMaterial implements ArmorMaterial { 11 + private static final int[] BASE_DURABILITY = new int[] { 13, 15, 16, 11 }; 12 + private static final int[] PROTECTION_VALUES = new int[] { 1, 1, 2, 1 }; 13 + 14 + public static final ProtectiveMaterial INSTANCE = new ProtectiveMaterial(); 15 + 16 + @Override 17 + public int getDurability(ArmorItem.Type type) { 18 + return BASE_DURABILITY[type.getEquipmentSlot().getEntitySlotId()]; 19 + } 20 + 21 + @Override 22 + public int getProtection(ArmorItem.Type type) { 23 + return PROTECTION_VALUES[type.getEquipmentSlot().getEntitySlotId()]; 24 + } 25 + 26 + @Override 27 + public int getEnchantability() { 28 + return 4; 29 + } 30 + 31 + @Override 32 + public SoundEvent getEquipSound() { 33 + return SoundEvents.BLOCK_WOOL_HIT; 34 + } 35 + 36 + @Override 37 + public Ingredient getRepairIngredient() { 38 + return Ingredient.ofItems(Items.STRING); 39 + } 40 + 41 + @Override 42 + public String getName() { 43 + return "asbestos_protective"; 44 + } 45 + 46 + @Override 47 + public float getToughness() { 48 + return 0; 49 + } 50 + 51 + @Override 52 + public float getKnockbackResistance() { 53 + return 0; 54 + } 55 + }
+64
src/main/java/xyz/naomieow/asbestos/block/AsbestosRoofBlock.java
··· 1 + package xyz.naomieow.asbestos.block; 2 + 3 + import net.fabricmc.api.EnvType; 4 + import net.fabricmc.api.Environment; 5 + import net.fabricmc.fabric.api.blockrenderlayer.v1.BlockRenderLayerMap; 6 + import net.fabricmc.loader.api.FabricLoader; 7 + import net.minecraft.block.Block; 8 + import net.minecraft.block.BlockState; 9 + import net.minecraft.block.ShapeContext; 10 + import net.minecraft.client.render.RenderLayer; 11 + import net.minecraft.item.ItemPlacementContext; 12 + import net.minecraft.state.StateManager; 13 + import net.minecraft.state.property.Properties; 14 + import net.minecraft.util.math.BlockPos; 15 + import net.minecraft.util.math.Direction; 16 + import net.minecraft.util.shape.VoxelShape; 17 + import net.minecraft.util.shape.VoxelShapes; 18 + import net.minecraft.world.BlockView; 19 + import org.jetbrains.annotations.Nullable; 20 + 21 + public class AsbestosRoofBlock extends CarcinogenicBlock { 22 + public AsbestosRoofBlock(Settings settings, int dangerLevel) { 23 + super(settings, dangerLevel); 24 + setDefaultState(this.getStateManager().getDefaultState().with(Properties.HORIZONTAL_FACING, Direction.NORTH)); 25 + if (FabricLoader.getInstance().getEnvironmentType() != EnvType.SERVER) { 26 + BlockRenderLayerMap.INSTANCE.putBlock(this, RenderLayer.getCutout()); 27 + } 28 + } 29 + 30 + @Override 31 + protected void appendProperties(StateManager.Builder<Block, BlockState> builder) { 32 + builder.add(Properties.HORIZONTAL_FACING); 33 + } 34 + 35 + @Override 36 + public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) { 37 + 38 + Direction dir = state.get(Properties.HORIZONTAL_FACING); 39 + return switch (dir) { 40 + case NORTH -> VoxelShapes.union(VoxelShapes.cuboid(0, 0, 0, 1, 0.5, 1), 41 + VoxelShapes.cuboid(0, 0.5, 0.5, 1, 1, 1)); 42 + case SOUTH -> VoxelShapes.union(VoxelShapes.cuboid(0, 0, 0, 1, 0.5, 1), 43 + VoxelShapes.cuboid(0, 0.5, 0, 1, 1, 0.5)); 44 + case EAST -> VoxelShapes.union(VoxelShapes.cuboid(0, 0, 0, 1, 0.5, 1), 45 + VoxelShapes.cuboid(0, 0.5, 0, 0.5, 1, 1)); 46 + case WEST -> VoxelShapes.union(VoxelShapes.cuboid(0, 0, 0, 1, 0.5, 1), 47 + VoxelShapes.cuboid(0.5, 0.5, 0, 1, 1, 1)); 48 + default -> VoxelShapes.fullCube(); 49 + }; 50 + } 51 + 52 + @Nullable 53 + @Override 54 + public BlockState getPlacementState(ItemPlacementContext ctx) { 55 + return this.getDefaultState().with(Properties.HORIZONTAL_FACING, 56 + ctx.getHorizontalPlayerFacing().getOpposite()); 57 + } 58 + 59 + @Environment(EnvType.CLIENT) 60 + @Override 61 + public float getAmbientOcclusionLightLevel(BlockState state, BlockView world, BlockPos pos) { 62 + return 1.0f; 63 + } 64 + }
+41
src/main/java/xyz/naomieow/asbestos/block/CarcinogenicBlock.java
··· 1 + package xyz.naomieow.asbestos.block; 2 + 3 + import net.minecraft.block.Block; 4 + import net.minecraft.block.BlockState; 5 + import net.minecraft.entity.player.PlayerEntity; 6 + import net.minecraft.item.Item; 7 + import net.minecraft.item.ItemStack; 8 + import net.minecraft.util.math.BlockPos; 9 + import net.minecraft.world.World; 10 + import xyz.naomieow.asbestos.AsbestosMod; 11 + import xyz.naomieow.asbestos.item.ModItems; 12 + 13 + import java.util.Arrays; 14 + 15 + public class CarcinogenicBlock extends Block { 16 + private int dangerLevel; 17 + public static Item[] PROTECTIVE_ARMOUR = {ModItems.PPE_HELMET, ModItems.PPE_CHESTPLATE, ModItems.PPE_LEGGINGS, ModItems.PPE_BOOTS}; 18 + 19 + public CarcinogenicBlock(Settings settings, int dangerLevel) { 20 + super(settings); 21 + this.dangerLevel = dangerLevel; 22 + } 23 + 24 + public static boolean isProtectedFromAsbestos(PlayerEntity player) { 25 + for (ItemStack item : player.getArmorItems()) { 26 + if (!Arrays.asList(PROTECTIVE_ARMOUR).contains(item.getItem())) { 27 + return false; 28 + } 29 + } 30 + return true; 31 + } 32 + 33 + @Override 34 + public void onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player) { 35 + super.onBreak(world, pos, state, player); 36 + if (!isProtectedFromAsbestos(player)) { 37 + int exposure = AsbestosMod.MESOTHELIOMA.get(player).getMesothelioma(); 38 + AsbestosMod.MESOTHELIOMA.get(player).setMesothelioma(exposure + dangerLevel); 39 + } 40 + } 41 + }
+27
src/main/java/xyz/naomieow/asbestos/block/ModBlocks.java
··· 1 + package xyz.naomieow.asbestos.block; 2 + 3 + import io.wispforest.owo.itemgroup.OwoItemSettings; 4 + import io.wispforest.owo.registration.reflect.BlockRegistryContainer; 5 + import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings; 6 + import net.minecraft.block.Block; 7 + import net.minecraft.block.Blocks; 8 + import net.minecraft.item.BlockItem; 9 + import xyz.naomieow.asbestos.item.ModGroups; 10 + 11 + public class ModBlocks implements BlockRegistryContainer { 12 + public static final Block ASBESTOS_BLOCK = new CarcinogenicBlock( 13 + FabricBlockSettings.copyOf(Blocks.WHITE_WOOL).hardness(1.0f), 40); 14 + public static final Block SERPENTINITE_BLOCK = new CarcinogenicBlock( 15 + FabricBlockSettings.copyOf(Blocks.STONE).hardness(3.0f).requiresTool(), 20); 16 + public static final Block POPCORN_CEILING_BLOCK = new CarcinogenicBlock( 17 + FabricBlockSettings.copyOf(Blocks.OAK_PLANKS).hardness(2.0f), 20); 18 + public static final Block ASBESTOS_TILE_BLOCK = new CarcinogenicBlock( 19 + FabricBlockSettings.copyOf(Blocks.NETHER_BRICKS).hardness(3.0f), 20); 20 + public static final Block ASBESTOS_ROOF_BLOCK = new AsbestosRoofBlock( 21 + FabricBlockSettings.copyOf(ASBESTOS_TILE_BLOCK).nonOpaque(), 20); 22 + 23 + @Override 24 + public BlockItem createBlockItem(Block block, String identifier) { 25 + return new BlockItem(block, new OwoItemSettings().group(ModGroups.ASBESTOS_GROUP)); 26 + } 27 + }
+15
src/main/java/xyz/naomieow/asbestos/config/ModConfigModel.java
··· 1 + package xyz.naomieow.asbestos.config; 2 + 3 + import io.wispforest.owo.config.annotation.Config; 4 + import io.wispforest.owo.config.annotation.Modmenu; 5 + import io.wispforest.owo.config.annotation.RangeConstraint; 6 + import xyz.naomieow.asbestos.AsbestosMod; 7 + 8 + @Modmenu(modId = AsbestosMod.MOD_ID) 9 + @Config(name = "asbestos_config", wrapperName = "AsbestosConfig") 10 + public class ModConfigModel { 11 + @RangeConstraint(min = 0, max = 32) 12 + public int offset = 3; 13 + public int period = 5; 14 + public int threshold = 180; 15 + }
+20
src/main/java/xyz/naomieow/asbestos/damage/ModDamageTypes.java
··· 1 + package xyz.naomieow.asbestos.damage; 2 + 3 + 4 + import net.minecraft.entity.damage.DamageSource; 5 + import net.minecraft.entity.damage.DamageType; 6 + import net.minecraft.registry.Registerable; 7 + import net.minecraft.registry.RegistryKey; 8 + import net.minecraft.registry.RegistryKeys; 9 + import net.minecraft.util.Identifier; 10 + import net.minecraft.world.World; 11 + import xyz.naomieow.asbestos.AsbestosMod; 12 + 13 + public class ModDamageTypes { 14 + public static final RegistryKey<DamageType> MESOTHELIOMA = RegistryKey.of(RegistryKeys.DAMAGE_TYPE, new Identifier(AsbestosMod.MOD_ID, "mesothelioma")); 15 + 16 + public static DamageSource of(World world, RegistryKey<DamageType> key) { 17 + return new DamageSource(world.getRegistryManager().get(RegistryKeys.DAMAGE_TYPE).entryOf(key)); 18 + } 19 + 20 + }
+16
src/main/java/xyz/naomieow/asbestos/item/ModGroups.java
··· 1 + package xyz.naomieow.asbestos.item; 2 + 3 + import io.wispforest.owo.itemgroup.Icon; 4 + import io.wispforest.owo.itemgroup.OwoItemGroup; 5 + import net.minecraft.util.Identifier; 6 + import xyz.naomieow.asbestos.AsbestosMod; 7 + 8 + public class ModGroups { 9 + public static final OwoItemGroup ASBESTOS_GROUP = OwoItemGroup 10 + .builder(new Identifier(AsbestosMod.MOD_ID, "asbestos_group"), () -> Icon.of(ModItems.ASBESTOS_FIBERS)) 11 + .build(); 12 + 13 + public static void init() { 14 + ASBESTOS_GROUP.initialize(); 15 + } 16 + }
+41
src/main/java/xyz/naomieow/asbestos/item/ModItems.java
··· 1 + package xyz.naomieow.asbestos.item; 2 + 3 + import io.wispforest.owo.itemgroup.OwoItemSettings; 4 + import io.wispforest.owo.registration.reflect.ItemRegistryContainer; 5 + import net.minecraft.entity.effect.StatusEffectInstance; 6 + import net.minecraft.entity.effect.StatusEffects; 7 + import net.minecraft.item.ArmorItem; 8 + import net.minecraft.item.FoodComponent; 9 + import net.minecraft.item.Item; 10 + import net.minecraft.item.ToolItem; 11 + import xyz.naomieow.asbestos.armour.ProtectiveMaterial; 12 + 13 + public class ModItems implements ItemRegistryContainer { 14 + public static final Item ASBESTOS_FIBERS = new Item( 15 + new OwoItemSettings() 16 + .group(ModGroups.ASBESTOS_GROUP) 17 + .fireproof() 18 + .food(new FoodComponent.Builder().alwaysEdible().statusEffect( 19 + new StatusEffectInstance(StatusEffects.WITHER, 30 * 20, 4, false, false), 1.0f) 20 + .build())); 21 + 22 + public static final ToolItem IRON_SCRAPER = new ScraperItem(ScraperItemMaterial.INSTANCE, 0.0f, -3.0f, 23 + new OwoItemSettings().group(ModGroups.ASBESTOS_GROUP)); 24 + 25 + public static final Item PPE_HELMET = new ArmorItem( 26 + ProtectiveMaterial.INSTANCE, ArmorItem.Type.HELMET, 27 + new OwoItemSettings().group(ModGroups.ASBESTOS_GROUP) 28 + ); 29 + public static final Item PPE_CHESTPLATE = new ArmorItem( 30 + ProtectiveMaterial.INSTANCE, ArmorItem.Type.CHESTPLATE, 31 + new OwoItemSettings().group(ModGroups.ASBESTOS_GROUP) 32 + ); 33 + public static final Item PPE_LEGGINGS = new ArmorItem( 34 + ProtectiveMaterial.INSTANCE, ArmorItem.Type.LEGGINGS, 35 + new OwoItemSettings().group(ModGroups.ASBESTOS_GROUP) 36 + ); 37 + public static final Item PPE_BOOTS = new ArmorItem( 38 + ProtectiveMaterial.INSTANCE, ArmorItem.Type.BOOTS, 39 + new OwoItemSettings().group(ModGroups.ASBESTOS_GROUP) 40 + ); 41 + }
+17
src/main/java/xyz/naomieow/asbestos/item/ScraperItem.java
··· 1 + package xyz.naomieow.asbestos.item; 2 + 3 + import net.minecraft.block.Block; 4 + import net.minecraft.item.MiningToolItem; 5 + import net.minecraft.item.ToolMaterial; 6 + import net.minecraft.registry.RegistryKeys; 7 + import net.minecraft.registry.tag.TagKey; 8 + import net.minecraft.util.Identifier; 9 + import xyz.naomieow.asbestos.AsbestosMod; 10 + 11 + public class ScraperItem extends MiningToolItem { 12 + private static TagKey<Block> affectedBlocks = TagKey.of(RegistryKeys.BLOCK, new Identifier(AsbestosMod.MOD_ID, "scrapable")); 13 + 14 + public ScraperItem(ToolMaterial material, float attackDamage, float attackSpeed, Settings settings) { 15 + super(attackDamage, attackSpeed, material, affectedBlocks, settings); 16 + } 17 + }
+40
src/main/java/xyz/naomieow/asbestos/item/ScraperItemMaterial.java
··· 1 + package xyz.naomieow.asbestos.item; 2 + 3 + import net.minecraft.item.Items; 4 + import net.minecraft.item.ToolMaterial; 5 + import net.minecraft.recipe.Ingredient; 6 + 7 + public class ScraperItemMaterial implements ToolMaterial { 8 + 9 + public static final ScraperItemMaterial INSTANCE = new ScraperItemMaterial(); 10 + 11 + @Override 12 + public int getDurability() { 13 + return 300; 14 + } 15 + 16 + @Override 17 + public float getMiningSpeedMultiplier() { 18 + return 5.0f; 19 + } 20 + 21 + @Override 22 + public float getAttackDamage() { 23 + return 2.5f; 24 + } 25 + 26 + @Override 27 + public int getMiningLevel() { 28 + return 1; 29 + } 30 + 31 + @Override 32 + public int getEnchantability() { 33 + return 10; 34 + } 35 + 36 + @Override 37 + public Ingredient getRepairIngredient() { 38 + return Ingredient.ofItems(Items.IRON_INGOT); 39 + } 40 + }
+8
src/main/java/xyz/naomieow/asbestos/mesothelioma/MesoComponent.java
··· 1 + package xyz.naomieow.asbestos.mesothelioma; 2 + 3 + import dev.onyxstudios.cca.api.v3.component.ComponentV3; 4 + 5 + public interface MesoComponent extends ComponentV3 { 6 + int getMesothelioma(); 7 + void setMesothelioma(int exposure); 8 + }
+37
src/main/java/xyz/naomieow/asbestos/mesothelioma/MesoStatusEffect.java
··· 1 + package xyz.naomieow.asbestos.mesothelioma; 2 + 3 + import net.minecraft.entity.LivingEntity; 4 + import net.minecraft.entity.effect.StatusEffect; 5 + import net.minecraft.entity.effect.StatusEffectCategory; 6 + import net.minecraft.entity.effect.StatusEffectInstance; 7 + import net.minecraft.entity.effect.StatusEffects; 8 + import net.minecraft.entity.player.PlayerEntity; 9 + import xyz.naomieow.asbestos.AsbestosMod; 10 + import xyz.naomieow.asbestos.damage.ModDamageTypes; 11 + 12 + public class MesoStatusEffect extends StatusEffect { 13 + public MesoStatusEffect() { 14 + super(StatusEffectCategory.HARMFUL, 0x302412); 15 + } 16 + 17 + @Override 18 + public boolean canApplyUpdateEffect(int duration, int amplifier) { 19 + return true; 20 + } 21 + 22 + @Override 23 + public void applyUpdateEffect(LivingEntity entity, int amplifier) { 24 + super.applyUpdateEffect(entity, amplifier); 25 + if (entity instanceof PlayerEntity playerEntity) { 26 + int exposure = AsbestosMod.MESOTHELIOMA.get(playerEntity).getMesothelioma(); 27 + if (exposure >= (AsbestosMod.CONFIG.threshold() / 1.5)) { 28 + playerEntity.addStatusEffect(new StatusEffectInstance(StatusEffects.SLOWNESS, -1, 1)); 29 + } 30 + 31 + if (exposure >= AsbestosMod.CONFIG.threshold()) { 32 + // .create(ModDamageTypes.MESOTHELIOMA_DAMAGE_TYPE) 33 + playerEntity.damage(ModDamageTypes.of(playerEntity.getWorld(), ModDamageTypes.MESOTHELIOMA), 1 << amplifier); 34 + } 35 + } 36 + } 37 + }
+37
src/main/java/xyz/naomieow/asbestos/mesothelioma/PlayerMesoComponet.java
··· 1 + package xyz.naomieow.asbestos.mesothelioma; 2 + 3 + import dev.onyxstudios.cca.api.v3.component.sync.AutoSyncedComponent; 4 + import net.minecraft.entity.player.PlayerEntity; 5 + import net.minecraft.nbt.NbtCompound; 6 + import xyz.naomieow.asbestos.AsbestosMod; 7 + 8 + public class PlayerMesoComponet implements MesoComponent, AutoSyncedComponent { 9 + private PlayerEntity playerEntity; 10 + private int mesothelioma; 11 + 12 + public PlayerMesoComponet(PlayerEntity playerEntity) { 13 + this.playerEntity = playerEntity; 14 + this.mesothelioma = 0; 15 + } 16 + 17 + @Override 18 + public int getMesothelioma() { 19 + return this.mesothelioma; 20 + } 21 + 22 + @Override 23 + public void setMesothelioma(int exposure) { 24 + this.mesothelioma = exposure; 25 + AsbestosMod.MESOTHELIOMA.sync(playerEntity); 26 + } 27 + 28 + @Override 29 + public void readFromNbt(NbtCompound tag) { 30 + this.mesothelioma = tag.getInt("mesothelioma"); 31 + } 32 + 33 + @Override 34 + public void writeToNbt(NbtCompound tag) { 35 + tag.putInt("mesothelioma", this.mesothelioma); 36 + } 37 + }
+7
src/main/resources/assets/asbestos/blockstates/asbestos_block.json
··· 1 + { 2 + "variants": { 3 + "": { 4 + "model": "asbestos:block/asbestos_block" 5 + } 6 + } 7 + }
+19
src/main/resources/assets/asbestos/blockstates/asbestos_roof_block.json
··· 1 + { 2 + "variants": { 3 + "facing=north": { 4 + "model": "asbestos:block/asbestos_roof_block" 5 + }, 6 + "facing=east": { 7 + "model": "asbestos:block/asbestos_roof_block", 8 + "y": 90 9 + }, 10 + "facing=south": { 11 + "model": "asbestos:block/asbestos_roof_block", 12 + "y": 180 13 + }, 14 + "facing=west": { 15 + "model": "asbestos:block/asbestos_roof_block", 16 + "y": 270 17 + } 18 + } 19 + }
+7
src/main/resources/assets/asbestos/blockstates/asbestos_tile_block.json
··· 1 + { 2 + "variants": { 3 + "": { 4 + "model": "asbestos:block/asbestos_tile_block" 5 + } 6 + } 7 + }
+7
src/main/resources/assets/asbestos/blockstates/popcorn_ceiling_block.json
··· 1 + { 2 + "variants": { 3 + "": { 4 + "model": "asbestos:block/popcorn_ceiling_block" 5 + } 6 + } 7 + }
+7
src/main/resources/assets/asbestos/blockstates/serpentinite_block.json
··· 1 + { 2 + "variants": { 3 + "": { 4 + "model": "asbestos:block/serpentinite_block" 5 + } 6 + } 7 + }
+20
src/main/resources/assets/asbestos/lang/en_us.json
··· 1 + { 2 + "itemGroup.asbestos.asbestos_group": "Asbestos", 3 + "item.asbestos.asbestos_fibers": "Asbestos Fibers", 4 + "item.asbestos.iron_scraper": "Iron Scraper", 5 + "item.asbestos.ppe_helmet": "PPE Helmet", 6 + "item.asbestos.ppe_chestplate": "PPE Chestplate", 7 + "item.asbestos.ppe_leggings": "PPE Leggings", 8 + "item.asbestos.ppe_boots": "PPE Boots", 9 + "block.asbestos.asbestos_block": "Asbestos", 10 + "block.asbestos.asbestos_tile_block": "Asbestos Tiling", 11 + "block.asbestos.asbestos_roof_block": "Asbestos Roof", 12 + "block.asbestos.serpentinite_block": "Serpentinite", 13 + "block.asbestos.popcorn_ceiling_block": "Popcorn Ceiling", 14 + "effect.asbestos.mesothelioma": "Mesothelioma", 15 + "death.attack.mesothelioma": "%1$s was entitled to financial compensation", 16 + "text.config.asbestos_config.title": "Asbestos Config", 17 + "text.config.asbestos_config.option.offset": "Offset (Blocks)", 18 + "text.config.asbestos_config.option.period": "Period (Seconds)", 19 + "text.config.asbestos_config.option.threshold": "Mesothelioma Threshold" 20 + }
+6
src/main/resources/assets/asbestos/models/block/asbestos_block.json
··· 1 + { 2 + "parent": "block/cube_all", 3 + "textures": { 4 + "all": "asbestos:block/asbestos_block" 5 + } 6 + }
+97
src/main/resources/assets/asbestos/models/block/asbestos_roof_block.json
··· 1 + { 2 + "credit": "Made with Blockbench", 3 + "parent": "block/block", 4 + "textures": { 5 + "0": "asbestos:block/asbestos_roof_top", 6 + "1": "asbestos:block/asbestos_roof_side", 7 + "particle": "asbestos:block/asbestos_roof_top" 8 + }, 9 + "elements": [ 10 + { 11 + "from": [0.001, 0, 1], 12 + "to": [2, 2, 16], 13 + "faces": { 14 + "north": {"uv": [8, 7, 10, 9], "texture": "#1"}, 15 + "east": {"uv": [1, 0, 16, 16], "texture": "#1"}, 16 + "south": {"uv": [14, 7, 16, 9], "texture": "#1", "cullface": "south"}, 17 + "west": {"uv": [0, 0, 15, 16], "rotation": 180, "texture": "#1"}, 18 + "up": {"uv": [0, 0, 15, 16], "rotation": 90, "texture": "#1"}, 19 + "down": {"uv": [1, 0, 16, 16], "rotation": 270, "texture": "#1", "cullface": "down"} 20 + } 21 + }, 22 + { 23 + "from": [14, 0, 1], 24 + "to": [15.999, 2, 16], 25 + "faces": { 26 + "north": {"uv": [9, 7, 11, 9], "texture": "#1"}, 27 + "east": {"uv": [1, 0, 16, 16], "rotation": 180, "texture": "#1"}, 28 + "south": {"uv": [11, 7, 13, 9], "texture": "#1", "cullface": "south"}, 29 + "west": {"uv": [1, 0, 16, 16], "texture": "#1"}, 30 + "up": {"uv": [0, 0, 15, 16], "rotation": 270, "texture": "#1"}, 31 + "down": {"uv": [0, 0, 15, 16], "rotation": 90, "texture": "#1", "cullface": "down"} 32 + } 33 + }, 34 + { 35 + "from": [14, 2, 14], 36 + "to": [15.999, 15, 16], 37 + "faces": { 38 + "north": {"uv": [0, 0, 13, 16], "rotation": 90, "texture": "#1"}, 39 + "east": {"uv": [0, 0, 13, 16], "rotation": 270, "texture": "#1"}, 40 + "south": {"uv": [0, 0, 13, 16], "rotation": 90, "texture": "#1", "cullface": "south"}, 41 + "west": {"uv": [0, 0, 13, 16], "rotation": 270, "texture": "#1"}, 42 + "up": {"uv": [2, 0, 4, 2], "rotation": 270, "texture": "#1"} 43 + } 44 + }, 45 + { 46 + "from": [0.001, 2, 14], 47 + "to": [2, 15, 16], 48 + "rotation": {"angle": 0, "axis": "y", "origin": [1, 8, 15]}, 49 + "faces": { 50 + "north": {"uv": [0, 0, 13, 16], "rotation": 270, "texture": "#1"}, 51 + "east": {"uv": [0, 0, 13, 16], "rotation": 90, "texture": "#1"}, 52 + "south": {"uv": [0, 0, 13, 16], "rotation": 270, "texture": "#1", "cullface": "south"}, 53 + "west": {"uv": [0, 0, 13, 16], "rotation": 90, "texture": "#1"}, 54 + "up": {"uv": [5, 12, 7, 14], "texture": "#1"} 55 + } 56 + }, 57 + { 58 + "from": [2, 0, 14], 59 + "to": [14, 2, 16], 60 + "faces": { 61 + "north": {"uv": [0, 0, 12, 16], "texture": "#1"}, 62 + "south": {"uv": [0, 0, 12, 16], "rotation": 180, "texture": "#1", "cullface": "south"}, 63 + "up": {"uv": [0, 0, 12, 16], "texture": "#1"}, 64 + "down": {"uv": [0, 0, 12, 16], "texture": "#1", "cullface": "down"} 65 + } 66 + }, 67 + { 68 + "from": [2.001, 13, 14], 69 + "to": [14, 15, 16], 70 + "faces": { 71 + "north": {"uv": [0, 0, 12, 16], "texture": "#1"}, 72 + "south": {"uv": [0, 0, 12, 16], "rotation": 180, "texture": "#1", "cullface": "south"}, 73 + "up": {"uv": [0, 0, 12, 16], "texture": "#1"}, 74 + "down": {"uv": [0, 0, 12, 16], "texture": "#1"} 75 + } 76 + }, 77 + { 78 + "from": [0, 0.70711, -0.70711], 79 + "to": [16, 23.35711, 0.29289], 80 + "rotation": {"angle": 45, "axis": "x", "origin": [0, 0.70711, -0.70711]}, 81 + "faces": { 82 + "north": {"uv": [0, 0, 16, 16], "texture": "#0"}, 83 + "east": {"uv": [0, 0, 1, 16], "texture": "#0", "cullface": "east"}, 84 + "south": {"uv": [0, 0, 16, 16], "texture": "#0"}, 85 + "west": {"uv": [7, 0, 8, 16], "texture": "#0", "cullface": "west"}, 86 + "up": {"uv": [0, 8, 16, 8], "rotation": 180, "texture": "#0", "cullface": "up"}, 87 + "down": {"uv": [0, 8, 16, 8], "rotation": 180, "texture": "#0", "cullface": "north"} 88 + } 89 + } 90 + ], 91 + "display": { 92 + "fixed": { 93 + "rotation": [0, 90, 0], 94 + "scale": [0.5, 0.5, 0.5] 95 + } 96 + } 97 + }
+6
src/main/resources/assets/asbestos/models/block/asbestos_tile_block.json
··· 1 + { 2 + "parent": "block/cube_all", 3 + "textures": { 4 + "all": "asbestos:block/asbestos_tiles" 5 + } 6 + }
+8
src/main/resources/assets/asbestos/models/block/popcorn_ceiling_block.json
··· 1 + { 2 + "parent": "block/cube_bottom_top", 3 + "textures": { 4 + "top": "asbestos:block/popcorn_top", 5 + "bottom": "asbestos:block/popcorn_bottom", 6 + "side": "asbestos:block/popcorn_side" 7 + } 8 + }
+6
src/main/resources/assets/asbestos/models/block/serpentinite_block.json
··· 1 + { 2 + "parent": "block/cube_all", 3 + "textures": { 4 + "all": "asbestos:block/serpentinite_block" 5 + } 6 + }
+3
src/main/resources/assets/asbestos/models/item/asbestos_block.json
··· 1 + { 2 + "parent": "asbestos:block/asbestos_block" 3 + }
+6
src/main/resources/assets/asbestos/models/item/asbestos_fibers.json
··· 1 + { 2 + "parent": "minecraft:item/generated", 3 + "textures": { 4 + "layer0": "asbestos:item/asbestos_fibers" 5 + } 6 + }
+3
src/main/resources/assets/asbestos/models/item/asbestos_roof_block.json
··· 1 + { 2 + "parent": "asbestos:block/asbestos_roof_block" 3 + }
+3
src/main/resources/assets/asbestos/models/item/asbestos_tile_block.json
··· 1 + { 2 + "parent": "asbestos:block/asbestos_tile_block" 3 + }
+6
src/main/resources/assets/asbestos/models/item/iron_scraper.json
··· 1 + { 2 + "parent": "minecraft:item/handheld", 3 + "textures": { 4 + "layer0": "asbestos:item/iron_scraper" 5 + } 6 + }
+3
src/main/resources/assets/asbestos/models/item/popcorn_ceiling_block.json
··· 1 + { 2 + "parent": "asbestos:block/popcorn_ceiling_block" 3 + }
+6
src/main/resources/assets/asbestos/models/item/ppe_boots.json
··· 1 + { 2 + "parent": "item/generated", 3 + "textures": { 4 + "layer0": "asbestos:item/ppe_boots" 5 + } 6 + }
+6
src/main/resources/assets/asbestos/models/item/ppe_chestplate.json
··· 1 + { 2 + "parent": "item/generated", 3 + "textures": { 4 + "layer0": "asbestos:item/ppe_chestplate" 5 + } 6 + }
+6
src/main/resources/assets/asbestos/models/item/ppe_helmet.json
··· 1 + { 2 + "parent": "item/generated", 3 + "textures": { 4 + "layer0": "asbestos:item/ppe_helmet" 5 + } 6 + }
+6
src/main/resources/assets/asbestos/models/item/ppe_leggings.json
··· 1 + { 2 + "parent": "item/generated", 3 + "textures": { 4 + "layer0": "asbestos:item/ppe_leggings" 5 + } 6 + }
+3
src/main/resources/assets/asbestos/models/item/serpentinite_block.json
··· 1 + { 2 + "parent": "asbestos:block/serpentinite_block" 3 + }
src/main/resources/assets/asbestos/textures/block/asbestos_block.png

This is a binary file and will not be displayed.

src/main/resources/assets/asbestos/textures/block/asbestos_roof_side.png

This is a binary file and will not be displayed.

src/main/resources/assets/asbestos/textures/block/asbestos_roof_top.png

This is a binary file and will not be displayed.

src/main/resources/assets/asbestos/textures/block/asbestos_tiles.png

This is a binary file and will not be displayed.

src/main/resources/assets/asbestos/textures/block/popcorn_bottom.png

This is a binary file and will not be displayed.

src/main/resources/assets/asbestos/textures/block/popcorn_side.png

This is a binary file and will not be displayed.

src/main/resources/assets/asbestos/textures/block/popcorn_top.png

This is a binary file and will not be displayed.

src/main/resources/assets/asbestos/textures/block/serpentinite_block.png

This is a binary file and will not be displayed.

src/main/resources/assets/asbestos/textures/item/asbestos_fibers.png

This is a binary file and will not be displayed.

src/main/resources/assets/asbestos/textures/item/iron_scraper.png

This is a binary file and will not be displayed.

src/main/resources/assets/asbestos/textures/item/ppe_boots.png

This is a binary file and will not be displayed.

src/main/resources/assets/asbestos/textures/item/ppe_chestplate.png

This is a binary file and will not be displayed.

src/main/resources/assets/asbestos/textures/item/ppe_helmet.png

This is a binary file and will not be displayed.

src/main/resources/assets/asbestos/textures/item/ppe_leggings.png

This is a binary file and will not be displayed.

src/main/resources/assets/asbestos/textures/mob_effect/mesothelioma.png

This is a binary file and will not be displayed.

src/main/resources/assets/minecraft/textures/models/armor/asbestos_ppe_layer_1.png

This is a binary file and will not be displayed.

src/main/resources/assets/minecraft/textures/models/armor/asbestos_ppe_layer_2.png

This is a binary file and will not be displayed.

+5
src/main/resources/data/asbestos/damage_type/mesothelioma.json
··· 1 + { 2 + "message_id": "mesothelioma", 3 + "exhaustion": 0.1, 4 + "scaling": "when_caused_by_living_non_player" 5 + }
+34
src/main/resources/data/asbestos/loot_tables/blocks/asbestos_block.json
··· 1 + { 2 + "type": "minecraft:block", 3 + "pools": [ 4 + { 5 + "rolls": 1, 6 + "entries": [ 7 + { 8 + "type": "minecraft:item", 9 + "name": "asbestos:asbestos_block", 10 + "weight": 10 11 + }, 12 + { 13 + "type": "minecraft:item", 14 + "name": "asbestos:asbestos_fibers", 15 + "weight": 1, 16 + "functions": [ 17 + { 18 + "function": "set_count", 19 + "count": { 20 + "min": 1, 21 + "max": 4 22 + } 23 + } 24 + ] 25 + } 26 + ], 27 + "conditions": [ 28 + { 29 + "condition": "minecraft:survives_explosion" 30 + } 31 + ] 32 + } 33 + ] 34 + }
+19
src/main/resources/data/asbestos/loot_tables/blocks/asbestos_roof_block.json
··· 1 + { 2 + "type": "minecraft:block", 3 + "pools": [ 4 + { 5 + "rolls": 1, 6 + "entries": [ 7 + { 8 + "type": "minecraft:item", 9 + "name": "asbestos:asbestos_roof_block" 10 + } 11 + ], 12 + "conditions": [ 13 + { 14 + "condition": "minecraft:survives_explosion" 15 + } 16 + ] 17 + } 18 + ] 19 + }
+19
src/main/resources/data/asbestos/loot_tables/blocks/asbestos_tile_block.json
··· 1 + { 2 + "type": "minecraft:block", 3 + "pools": [ 4 + { 5 + "rolls": 1, 6 + "entries": [ 7 + { 8 + "type": "minecraft:item", 9 + "name": "asbestos:asbestos_tile_block" 10 + } 11 + ], 12 + "conditions": [ 13 + { 14 + "condition": "minecraft:survives_explosion" 15 + } 16 + ] 17 + } 18 + ] 19 + }
+19
src/main/resources/data/asbestos/loot_tables/blocks/popcorn_ceiling_block.json
··· 1 + { 2 + "type": "minecraft:block", 3 + "pools": [ 4 + { 5 + "rolls": 1, 6 + "entries": [ 7 + { 8 + "type": "minecraft:item", 9 + "name": "asbestos:popcorn_ceiling_block" 10 + } 11 + ], 12 + "conditions": [ 13 + { 14 + "condition": "minecraft:survives_explosion" 15 + } 16 + ] 17 + } 18 + ] 19 + }
+29
src/main/resources/data/asbestos/loot_tables/blocks/serpentinite_block.json
··· 1 + { 2 + "type": "minecraft:block", 3 + "pools": [ 4 + { 5 + "rolls": 1, 6 + "entries": [ 7 + { 8 + "type": "minecraft:item", 9 + "name": "asbestos:asbestos_fibers", 10 + "weight": 1, 11 + "functions": [ 12 + { 13 + "function": "set_count", 14 + "count": { 15 + "min": 2, 16 + "max": 6 17 + } 18 + } 19 + ] 20 + } 21 + ], 22 + "conditions": [ 23 + { 24 + "condition": "minecraft:survives_explosion" 25 + } 26 + ] 27 + } 28 + ] 29 + }
+15
src/main/resources/data/asbestos/recipes/asbestos_block.json
··· 1 + { 2 + "type": "minecraft:crafting_shaped", 3 + "pattern": [ 4 + "AA", 5 + "AA" 6 + ], 7 + "key": { 8 + "A": { 9 + "item": "asbestos:asbestos_fibers" 10 + } 11 + }, 12 + "result": { 13 + "item": "asbestos:asbestos_block" 14 + } 15 + }
+23
src/main/resources/data/asbestos/recipes/asbestos_roof_block.json
··· 1 + { 2 + "type": "minecraft:crafting_shaped", 3 + "pattern": [ 4 + "WA ", 5 + "WBA", 6 + "WWW" 7 + ], 8 + "key": { 9 + "A": { 10 + "item": "asbestos:asbestos_fibers" 11 + }, 12 + "B": { 13 + "item": "minecraft:stone_bricks" 14 + }, 15 + "W": { 16 + "tag": "minecraft:planks" 17 + } 18 + }, 19 + "result": { 20 + "item": "asbestos:asbestos_roof_block", 21 + "count": 4 22 + } 23 + }
+19
src/main/resources/data/asbestos/recipes/asbestos_tile_block.json
··· 1 + { 2 + "type": "minecraft:crafting_shaped", 3 + "pattern": [ 4 + "AB", 5 + "BA" 6 + ], 7 + "key": { 8 + "A": { 9 + "item": "asbestos:asbestos_fibers" 10 + }, 11 + "B": { 12 + "item": "minecraft:polished_andesite" 13 + } 14 + }, 15 + "result": { 16 + "item": "asbestos:asbestos_tile_block", 17 + "count": 4 18 + } 19 + }
+22
src/main/resources/data/asbestos/recipes/iron_scraper.json
··· 1 + { 2 + "type": "minecraft:crafting_shaped", 3 + "pattern": [ 4 + " NI", 5 + " IN", 6 + "S " 7 + ], 8 + "key": { 9 + "N": { 10 + "item": "minecraft:iron_nugget" 11 + }, 12 + "I": { 13 + "item": "minecraft:iron_ingot" 14 + }, 15 + "S": { 16 + "item": "minecraft:stick" 17 + } 18 + }, 19 + "result": { 20 + "item": "asbestos:iron_scraper" 21 + } 22 + }
+22
src/main/resources/data/asbestos/recipes/popcorn_ceiling_block.json
··· 1 + { 2 + "type": "minecraft:crafting_shaped", 3 + "pattern": [ 4 + "PP", 5 + "AD" 6 + ], 7 + "key": { 8 + "P": { 9 + "tag": "minecraft:planks" 10 + }, 11 + "A": { 12 + "item": "asbestos:asbestos_block" 13 + }, 14 + "D": { 15 + "item": "minecraft:white_dye" 16 + } 17 + }, 18 + "result": { 19 + "item": "asbestos:popcorn_ceiling_block", 20 + "count": 4 21 + } 22 + }
+16
src/main/resources/data/asbestos/recipes/ppe_boots.json
··· 1 + { 2 + "type": "minecraft:crafting_shaped", 3 + "pattern": [ 4 + " ", 5 + "S S", 6 + "S S" 7 + ], 8 + "key": { 9 + "S": { 10 + "item": "minecraft:string" 11 + } 12 + }, 13 + "result": { 14 + "item": "asbestos:ppe_boots" 15 + } 16 + }
+16
src/main/resources/data/asbestos/recipes/ppe_chestplate.json
··· 1 + { 2 + "type": "minecraft:crafting_shaped", 3 + "pattern": [ 4 + "S S", 5 + "SSS", 6 + "SSS" 7 + ], 8 + "key": { 9 + "S": { 10 + "item": "minecraft:string" 11 + } 12 + }, 13 + "result": { 14 + "item": "asbestos:ppe_chestplate" 15 + } 16 + }
+19
src/main/resources/data/asbestos/recipes/ppe_helmet.json
··· 1 + { 2 + "type": "minecraft:crafting_shaped", 3 + "pattern": [ 4 + "SSS", 5 + "SGS", 6 + "S S" 7 + ], 8 + "key": { 9 + "S": { 10 + "item": "minecraft:string" 11 + }, 12 + "G": { 13 + "item": "minecraft:black_stained_glass_pane" 14 + } 15 + }, 16 + "result": { 17 + "item": "asbestos:ppe_helmet" 18 + } 19 + }
+16
src/main/resources/data/asbestos/recipes/ppe_leggings.json
··· 1 + { 2 + "type": "minecraft:crafting_shaped", 3 + "pattern": [ 4 + "SSS", 5 + "S S", 6 + "S S" 7 + ], 8 + "key": { 9 + "S": { 10 + "item": "minecraft:string" 11 + } 12 + }, 13 + "result": { 14 + "item": "asbestos:ppe_leggings" 15 + } 16 + }
+8
src/main/resources/data/asbestos/tags/blocks/scrapable.json
··· 1 + { 2 + "replace": false, 3 + "values": [ 4 + "asbestos:asbestos_block", 5 + "asbestos:popcorn_ceiling_block", 6 + "asbestos:asbestos_tile_block" 7 + ] 8 + }
+18
src/main/resources/data/asbestos/worldgen/configured_feature/serpentinite_overworld.json
··· 1 + { 2 + "type": "minecraft:ore", 3 + "config": { 4 + "size": 5, 5 + "discard_chance_on_air_exposure": 0, 6 + "targets": [ 7 + { 8 + "target": { 9 + "predicate_type": "minecraft:tag_match", 10 + "tag": "minecraft:deepslate_ore_replaceables" 11 + }, 12 + "state": { 13 + "Name": "asbestos:serpentinite_block" 14 + } 15 + } 16 + ] 17 + } 18 + }
+24
src/main/resources/data/asbestos/worldgen/placed_feature/serpentinite.json
··· 1 + { 2 + "feature": "asbestos:serpentinite_overworld", 3 + "placement": [ 4 + { 5 + "type": "minecraft:count", 6 + "count": 20 7 + }, 8 + { 9 + "type": "minecraft:in_square" 10 + }, 11 + { 12 + "type": "minecraft:height_range", 13 + "height": { 14 + "type": "minecraft:uniform", 15 + "min_inclusive": { 16 + "above_bottom": 0 17 + }, 18 + "max_inclusive": { 19 + "absolute": 0 20 + } 21 + } 22 + } 23 + ] 24 + }
+6
src/main/resources/data/minecraft/tags/blocks/mineable/axe.json
··· 1 + { 2 + "replace": false, 3 + "values": [ 4 + "asbestos:popcorn_ceiling_block" 5 + ] 6 + }
+7
src/main/resources/data/minecraft/tags/blocks/mineable/pickaxe.json
··· 1 + { 2 + "replace": false, 3 + "values": [ 4 + "asbestos:serpentinite_block", 5 + "asbestos:asbestos_roof_block" 6 + ] 7 + }
+38
src/main/resources/fabric.mod.json
··· 1 + { 2 + "schemaVersion": 1, 3 + "id": "asbestos", 4 + "version": "${version}", 5 + "name": "Asbestos", 6 + "description": "Adds Asbestos lol", 7 + "authors": [ 8 + "naomieow" 9 + ], 10 + "contact": { 11 + "website": "https://gitlab.com/naomieow/Asbestos", 12 + "repo": "https://gitlab.com/naomieow/Asbestos" 13 + }, 14 + "license": "LGPL-3.0", 15 + "icon": "assets/asbestos/icon.png", 16 + "environment": "*", 17 + "entrypoints": { 18 + "fabric-datagen": [ 19 + "xyz.naomieow.asbestos.AsbestosDataGen" 20 + ], 21 + "main": [ 22 + "xyz.naomieow.asbestos.AsbestosMod" 23 + ], 24 + "cardinal-components-entity": [ 25 + "xyz.naomieow.asbestos.AsbestosMod" 26 + ] 27 + }, 28 + "custom": { 29 + "cardinal-components": [ 30 + "asbestos:mesothelioma" 31 + ] 32 + }, 33 + "depends": { 34 + "fabricloader": ">=${loader_version}", 35 + "fabric": "*", 36 + "minecraft": "${minecraft_version}" 37 + } 38 + }