Create Fabric

Create Fabric

10M Downloads

Item Drain crashed game when draining custom potion

MicroGamerSM opened this issue ยท 0 comments

commented

Context

I was attempting to make custom potions, and handle them with Create. I used this command on 1.20.1 to give me a custom potion:
/give @a potion{CustomPotionColor:11716049,CustomPotionEffects:[{Id:22,Duration:1800,Amplifier:1}]}
I attempted to put the potion into a fluid tank, to get nothing. Dropping it onto an item drain, however, crashed my game. I believe this is because potions are handled by an identifier (eg. "minecraft:night_vision"), which doesn't exist for a custom potion.

By the way, I tested this in an actual world I was playing in, which I wouldn't recommend as it could possibly corrupt your world.

Crash Report

---- Minecraft Crash Report ---- // My bad. Time: 2024-08-23 12:22:08 Description: Ticking block entity java.lang.IllegalArgumentException: Transfer variant may not be blank. at net.fabricmc.fabric.api.transfer.v1.storage.StoragePreconditions.notBlank(StoragePreconditions.java:39) at net.fabricmc.fabric.api.transfer.v1.storage.StoragePreconditions.notBlankNotNegative(StoragePreconditions.java:58) at net.fabricmc.fabric.api.transfer.v1.storage.base.SingleVariantStorage.insert(SingleVariantStorage.java:87) at io.github.fabricators_of_create.porting_lib.transfer.fluid.FluidTank.insert(FluidTank.java:46) at io.github.fabricators_of_create.porting_lib.transfer.fluid.FluidTank.insert(FluidTank.java:12) at io.github.fabricators_of_create.porting_lib.transfer.TransferUtil.insert(TransferUtil.java:441) at io.github.fabricators_of_create.porting_lib.transfer.TransferUtil.insertFluid(TransferUtil.java:454) at com.simibubi.create.content.fluids.drain.ItemDrainBlockEntity.continueProcessing(ItemDrainBlockEntity.java:271) at com.simibubi.create.content.fluids.drain.ItemDrainBlockEntity.tick(ItemDrainBlockEntity.java:135) at com.simibubi.create.foundation.blockEntity.SmartBlockEntityTicker.tick(SmartBlockEntityTicker.java:15) at net.minecraft.class_2818$class_5563.method_31703(class_2818.java:662) at net.minecraft.class_2818$class_5564.method_31703(class_2818.java:716) at net.minecraft.class_1937.method_18471(class_1937.java:470) at net.minecraft.class_3218.method_18765(class_3218.java:390) at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:897) at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:824) at net.minecraft.class_1132.method_3748(class_1132.java:105) at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:671) at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:265) at java.base/java.lang.Thread.run(Thread.java:833) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Server thread Stacktrace: at net.fabricmc.fabric.api.transfer.v1.storage.StoragePreconditions.notBlank(StoragePreconditions.java:39) at net.fabricmc.fabric.api.transfer.v1.storage.StoragePreconditions.notBlankNotNegative(StoragePreconditions.java:58) at net.fabricmc.fabric.api.transfer.v1.storage.base.SingleVariantStorage.insert(SingleVariantStorage.java:87) at io.github.fabricators_of_create.porting_lib.transfer.fluid.FluidTank.insert(FluidTank.java:46) at io.github.fabricators_of_create.porting_lib.transfer.fluid.FluidTank.insert(FluidTank.java:12) at io.github.fabricators_of_create.porting_lib.transfer.TransferUtil.insert(TransferUtil.java:441) at io.github.fabricators_of_create.porting_lib.transfer.TransferUtil.insertFluid(TransferUtil.java:454) at com.simibubi.create.content.fluids.drain.ItemDrainBlockEntity.continueProcessing(ItemDrainBlockEntity.java:271) at com.simibubi.create.content.fluids.drain.ItemDrainBlockEntity.tick(ItemDrainBlockEntity.java:135) at com.simibubi.create.foundation.blockEntity.SmartBlockEntityTicker.tick(SmartBlockEntityTicker.java:15) at net.minecraft.class_2818$class_5563.method_31703(class_2818.java:662) at net.minecraft.class_2818$class_5564.method_31703(class_2818.java:716) at net.minecraft.class_1937.method_18471(class_1937.java:470) at net.minecraft.class_3218.method_18765(class_3218.java:390) -- Block entity being ticked -- Details: Name: create:item_drain // com.simibubi.create.content.fluids.drain.ItemDrainBlockEntity Block: Block{create:item_drain} Block location: World: (41,64,3), Section: (at 9,0,3 in 2,4,0; chunk contains blocks 32,-64,0 to 47,319,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,-64,0 to 511,319,511) Block: Block{create:item_drain} Block location: World: (41,64,3), Section: (at 9,0,3 in 2,4,0; chunk contains blocks 32,-64,0 to 47,319,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,-64,0 to 511,319,511) Stacktrace: at net.minecraft.class_2818$class_5563.method_31703(class_2818.java:662) at net.minecraft.class_2818$class_5564.method_31703(class_2818.java:716) at net.minecraft.class_1937.method_18471(class_1937.java:470) at net.minecraft.class_3218.method_18765(class_3218.java:390) at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:897) at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:824) at net.minecraft.class_1132.method_3748(class_1132.java:105) at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:671) at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:265) at java.base/java.lang.Thread.run(Thread.java:833) -- Affected level -- Details: All players: 1 total; [class_3222['Tommy2Lips'/23, l='ServerWorld minecraft:overworld preparing for world creation', x=41.10, y=64.00, z=2.30]] Chunk stats: 2809 Level dimension: minecraft:overworld Level spawn location: World: (0,64,0), Section: (at 0,0,0 in 0,4,0; chunk contains blocks 0,-64,0 to 15,319,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,-64,0 to 511,319,511) Level time: 768226 game time, 0 day time Level name: preparing for world creation Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false) Known server brands: fabric Removed feature flags: Level was modded: true Level storage version: 0x04ABD - Anvil Stacktrace: at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:897) at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:824) at net.minecraft.class_1132.method_3748(class_1132.java:105) at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:671) at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:265) at java.base/java.lang.Thread.run(Thread.java:833) -- System Details -- Details: Minecraft Version: 1.20.1 Minecraft Version ID: 1.20.1 Operating System: Windows 11 (amd64) version 10.0 Java Version: 17.0.8, Microsoft Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft Memory: 2717951120 bytes (2592 MiB) / 5670699008 bytes (5408 MiB) up to 16777216000 bytes (16000 MiB) CPUs: 12 Processor Vendor: AuthenticAMD Processor Name: AMD Ryzen 5 4600H with Radeon Graphics Identifier: AuthenticAMD Family 23 Model 96 Stepping 1 Microarchitecture: unknown Frequency (GHz): 2.99 Number of physical packages: 1 Number of physical CPUs: 6 Number of logical CPUs: 12 Graphics card #0 name: AMD Radeon(TM) Graphics Graphics card #0 vendor: Advanced Micro Devices, Inc. (0x1002) Graphics card #0 VRAM (MB): 512.00 Graphics card #0 deviceId: 0x1636 Graphics card #0 versionInfo: DriverVersion=27.20.21030.11000 Graphics card #1 name: NVIDIA GeForce GTX 1650 Graphics card #1 vendor: NVIDIA (0x10de) Graphics card #1 VRAM (MB): 4095.00 Graphics card #1 deviceId: 0x1f99 Graphics card #1 versionInfo: DriverVersion=31.0.15.4626 Memory slot #0 capacity (MB): 16384.00 Memory slot #0 clockSpeed (GHz): 3.20 Memory slot #0 type: DDR4 Memory slot #1 capacity (MB): 16384.00 Memory slot #1 clockSpeed (GHz): 3.20 Memory slot #1 type: DDR4 Virtual memory max (MB): 36979.51 Virtual memory used (MB): 26151.63 Swap memory total (MB): 4864.00 Swap memory used (MB): 38.96 JVM Flags: 4 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx16000m -Xms256m Fabric Mods: ae2: Applied Energistics 2 15.2.12 team_reborn_energy: Energy 3.0.0 ae2wtlib: AE2WTLib 15.2.1-fabric appleskin: AppleSkin 2.5.1+mc1.20 architectury: Architectury 9.2.14 cccbridge: CC:C Bridge 1.6.2b-fabric cloth-config: Cloth Config v11 11.1.118 cloth-basic-math: cloth-basic-math 0.6.1 computercraft: CC: Tweaked 1.113.0 cc_tweaked_cobalt: cobalt 0.9.3 com_electronwill_night-config_core: core 3.6.7 com_electronwill_night-config_toml: toml 3.6.7 com_jcraft_jzlib: jzlib 1.1.3 io_netty_netty-codec-http: netty-codec-http 4.1.82 io_netty_netty-codec-socks: netty-codec-socks 4.1.82 io_netty_netty-handler-proxy: netty-handler-proxy 4.1.82 copycats: Create: Copycats+ 2.1.2+mc.1.20.1-fabric create: Create 0.5.1-f-build.1417+mc1.20.1 com_google_code_findbugs_jsr305: jsr305 3.0.2 flywheel: Flywheel 0.6.10-2 forgeconfigapiport: Forge Config API Port 8.0.0 milk: Milk Lib 1.2.60 dripstone_fluid_lib: Dripstone Fluid Lib 3.0.2 porting_lib_brewing: Porting Lib Brewing 2.3.2+1.20.1 porting_lib_models: Porting Lib Models 2.3.2+1.20.1 porting_lib_model_loader: Porting Lib Model Loader 2.3.2+1.20.1 porting_lib_obj_loader: Porting Lib Obj Loader 2.3.2+1.20.1 porting_lib_tags: Porting Lib Tags 3.0 reach-entity-attributes: Reach Entity Attributes 2.4.0 registrate-fabric: Registrate for Fabric 1.3.62-MC1.20.1 porting_lib_data: Porting Lib Data 2.1.1090+1.20 porting_lib_model_generators: Porting Lib Model Generators 2.1.1090+1.20 porting_lib_gametest: Porting Lib GameTest 2.1.1090+1.20 porting_lib_model_materials: Porting Lib Model Materials 2.1.1090+1.20 create_enchantment_industry: Create Enchantment Industry 1.2.16 create_dragon_lib: Create Dragon Lib 1.4.2 createaddition: Create Crafts & Additions 1.2.4 createchunkloading: Create Chunkloading 1.6.0 creategoggles: Create Goggles 0.5.5.g fabric-api: Fabric API 0.92.2+1.20.1 fabric-api-base: Fabric API Base 0.4.31+1802ada577 fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.6.36+1802ada577 fabric-biome-api-v1: Fabric Biome API (v1) 13.0.13+1802ada577 fabric-block-api-v1: Fabric Block API (v1) 1.0.11+1802ada577 fabric-block-view-api-v2: Fabric BlockView API (v2) 1.0.1+1802ada577 fabric-blockrenderlayer-v1: Fabric BlockRenderLayer Registration (v1) 1.1.41+1802ada577 fabric-client-tags-api-v1: Fabric Client Tags 1.1.2+1802ada577 fabric-command-api-v1: Fabric Command API (v1) 1.2.34+f71b366f77 fabric-command-api-v2: Fabric Command API (v2) 2.2.13+1802ada577 fabric-commands-v0: Fabric Commands (v0) 0.2.51+df3654b377 fabric-containers-v0: Fabric Containers (v0) 0.1.64+df3654b377 fabric-content-registries-v0: Fabric Content Registries (v0) 4.0.11+1802ada577 fabric-convention-tags-v1: Fabric Convention Tags 1.5.5+1802ada577 fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.2.19+1802ada577 fabric-data-attachment-api-v1: Fabric Data Attachment API (v1) 1.0.0+de0fd6d177 fabric-data-generation-api-v1: Fabric Data Generation API (v1) 12.3.4+1802ada577 fabric-dimensions-v1: Fabric Dimensions API (v1) 2.1.54+1802ada577 fabric-entity-events-v1: Fabric Entity Events (v1) 1.6.0+1c78457f77 fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.6.2+1802ada577 fabric-events-lifecycle-v0: Fabric Events Lifecycle (v0) 0.2.63+df3654b377 fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.40+1802ada577 fabric-item-api-v1: Fabric Item API (v1) 2.1.28+1802ada577 fabric-item-group-api-v1: Fabric Item Group API (v1) 4.0.12+1802ada577 fabric-key-binding-api-v1: Fabric Key Binding API (v1) 1.0.37+1802ada577 fabric-keybindings-v0: Fabric Key Bindings (v0) 0.2.35+df3654b377 fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 2.2.22+1802ada577 fabric-loot-api-v2: Fabric Loot API (v2) 1.2.1+1802ada577 fabric-loot-tables-v1: Fabric Loot Tables (v1) 1.1.45+9e7660c677 fabric-message-api-v1: Fabric Message API (v1) 5.1.9+1802ada577 fabric-mining-level-api-v1: Fabric Mining Level API (v1) 2.1.50+1802ada577 fabric-model-loading-api-v1: Fabric Model Loading API (v1) 1.0.3+1802ada577 fabric-models-v0: Fabric Models (v0) 0.4.2+9386d8a777 fabric-networking-api-v1: Fabric Networking API (v1) 1.3.11+1802ada577 fabric-networking-v0: Fabric Networking (v0) 0.3.51+df3654b377 fabric-object-builder-api-v1: Fabric Object Builder API (v1) 11.1.3+1802ada577 fabric-particles-v1: Fabric Particles (v1) 1.1.2+1802ada577 fabric-recipe-api-v1: Fabric Recipe API (v1) 1.0.21+1802ada577 fabric-registry-sync-v0: Fabric Registry Sync (v0) 2.3.3+1802ada577 fabric-renderer-api-v1: Fabric Renderer API (v1) 3.2.1+1802ada577 fabric-renderer-indigo: Fabric Renderer - Indigo 1.5.2+85287f9f77 fabric-renderer-registries-v1: Fabric Renderer Registries (v1) 3.2.46+df3654b377 fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.3.37+92a0d36777 fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 3.0.28+1802ada577 fabric-rendering-v0: Fabric Rendering (v0) 1.1.49+df3654b377 fabric-rendering-v1: Fabric Rendering (v1) 3.0.8+1802ada577 fabric-resource-conditions-api-v1: Fabric Resource Conditions API (v1) 2.3.8+1802ada577 fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.11.10+1802ada577 fabric-screen-api-v1: Fabric Screen API (v1) 2.0.8+1802ada577 fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.3.30+1802ada577 fabric-sound-api-v1: Fabric Sound API (v1) 1.0.13+1802ada577 fabric-transfer-api-v1: Fabric Transfer API (v1) 3.3.5+8dd72ea377 fabric-transitive-access-wideners-v1: Fabric Transitive Access Wideners (v1) 4.3.1+1802ada577 fabric-language-kotlin: Fabric Language Kotlin 1.12.0+kotlin.2.0.10 org_jetbrains_kotlin_kotlin-reflect: kotlin-reflect 2.0.10 org_jetbrains_kotlin_kotlin-stdlib: kotlin-stdlib 2.0.10 org_jetbrains_kotlin_kotlin-stdlib-jdk7: kotlin-stdlib-jdk7 2.0.10 org_jetbrains_kotlin_kotlin-stdlib-jdk8: kotlin-stdlib-jdk8 2.0.10 org_jetbrains_kotlinx_atomicfu-jvm: atomicfu-jvm 0.25.0 org_jetbrains_kotlinx_kotlinx-coroutines-core-jvm: kotlinx-coroutines-core-jvm 1.8.1 org_jetbrains_kotlinx_kotlinx-coroutines-jdk8: kotlinx-coroutines-jdk8 1.8.1 org_jetbrains_kotlinx_kotlinx-datetime-jvm: kotlinx-datetime-jvm 0.6.0 org_jetbrains_kotlinx_kotlinx-io-bytestring-jvm: kotlinx-io-bytestring-jvm 0.5.1 org_jetbrains_kotlinx_kotlinx-io-core-jvm: kotlinx-io-core-jvm 0.5.1 org_jetbrains_kotlinx_kotlinx-serialization-cbor-jvm: kotlinx-serialization-cbor-jvm 1.7.1 org_jetbrains_kotlinx_kotlinx-serialization-core-jvm: kotlinx-serialization-core-jvm 1.7.1 org_jetbrains_kotlinx_kotlinx-serialization-json-jvm: kotlinx-serialization-json-jvm 1.7.1 fabricloader: Fabric Loader 0.15.11 mixinextras: MixinExtras 0.3.5 fancymenu: FancyMenu 3.2.3 com_github_keksuccino_japng: japng 0.5.3 com_github_rtyley_animated-gif-lib-for-java: animated-gif-lib-for-java animated-gif-lib-1.7 farmersdelight: Farmer's Delight 1.20.1-2.1.3+refabricated mm: Manningham Mills 2.3 porting_lib_accessors: Porting Lib Accessors 2.3.4+1.20.1 porting_lib_base: Porting Lib Base 2.3.4+1.20.1 porting_lib_attributes: Porting Lib Attributes 2.3.4+1.20.1 porting_lib_common: Porting Lib Common 2.3.4+1.20.1 porting_lib_entity: Porting Lib Entity 2.3.4+1.20.1 porting_lib_fluids: Porting Lib Fluids 2.3.4+1.20.1 porting_lib_mixin_extensions: Porting Lib Mixin Extensions 2.3.4+1.20.1 porting_lib_transfer: Porting Lib Transfer 2.3.4+1.20.1 porting_lib_utility: Porting Lib Utility 2.3.4+1.20.1 porting_lib_client_events: Porting Lib Client Events 2.3.4+1.20.1 porting_lib_config: Porting Lib Config 2.3.4+1.20.1 porting_lib_extensions: Porting Lib Extensions 2.3.4+1.20.1 porting_lib_lazy_registration: Porting Lib Lazy Register 2.3.4+1.20.1 porting_lib_loot: Porting Lib Loot 2.3.4+1.20.1 porting_lib_networking: Porting Lib Networking 2.3.4+1.20.1 porting_lib_recipe_book_categories: Porting Lib Recipe Book Categories 2.3.4+1.20.1 porting_lib_core: Porting Lib Core 2.3.4+1.20.1 porting_lib_registries: Porting Lib Registries 2.3.4+1.20.1 porting_lib_tool_actions: Porting Lib Tool Actions 2.3.4+1.20.1 immersive_portals: Immersive Portals 3.3.7 imm_ptl_core: Immersive Portals Core 3.3.7 q_misc_util: QMiscUtil 3.3.7 jade: Jade 11.9.2+fabric java: OpenJDK 64-Bit Server VM 17 konkrete: Konkrete 1.8.1 melody: Melody 1.0.3 minecraft: Minecraft 1.20.1 pehkui: Pehkui 3.8.3+1.14.4-1.21 kanos_config: Kanos Config 0.4.1+1.14.4-1.19.4 railways: Create: Steam 'n' Rails 1.6.4+fabric-mc1.20.1 roughlyenoughitems: Roughly Enough Items 12.1.750 error_notifier: Error Notifier 1.0.9 sliceanddice: Create Slice & Dice 3.2.3 Flywheel Backend: GL33 Instanced Arrays Server Running: true Player Count: 1 / 8; [class_3222['Tommy2Lips'/23, l='ServerWorld minecraft:overworld preparing for world creation', x=41.10, y=64.00, z=2.30]] Data Packs: vanilla, fabric, file/CustomRecipies Enabled Feature Flags: minecraft:vanilla World Generation: Stable Type: Integrated Server (map_client.txt) Is Modded: Definitely; Client brand changed to 'fabric'; Server brand changed to 'fabric' Launched Version: fabric-loader-0.15.11-1.20.1