2024-12-15 02:18:24|Myriagame |source:minecraft skins
introduce
Simple laundry API allows items returned after the event definition items are thrown into the refining pot.
Based on 1.19.4, but theoretically, 1.19.x should be universal (the range may be wider).
The library has been integrated into Crafttech-API, so it is no longer maintained independently.
register
// The most basic example of Washable.event.register (world, state, pos, stack)-> {// Check whether the water is in the water if (builtinregisteries.block.getKey (state.getBlock ()). Getpath (). Equals ("Water_caultron") {// The detection item is iron ore if (stack.getItem () == items.iron_ore) {//Block Return New itemstack (items.iron_block, stack.getCount ()); // The detection item is gold apple} else if (stack.getItem () == items.golden_apple) { // Reduce the amount of water Level.setBlock (POS, POS,State.SetValue (layeredCAuldronBlock.level, 0), State.GetValue (layeredCauldronBlock.Level)-1); // Replace it to the enchanting Golden Apple Return New Itemstack (items.enchant_golden_apple, stack. Attcount ());} // Check whether it is fine snow} else
if (builtInRegistries.block.getkey (state.getBlock ()). Getpath (). Equals ("POWDER_SNOW_CAULDRON" ")) {// The detection items are roasted potatoes if (ST ST acK.getItem () == items.baked_potato) {///Replace it to ordinary potato Return New itemstack (items.potato, stack.getCount ()); // Detecting items is the lower alloy ingot} else if (stack.getITEM () == iTems.nether ITE_INGOT) {// willIt is replaced with a lower alloy fragments Return New itemstack (items.netherite_scrap, stack.getCount ());} // Back to NULL if you do not need to change items.// If you need to disappear the item, return itemstack.empty.Return null;});
National Service DNF Dark Ni
2025-01-28 09:19:27The new screenshot of the be
2025-01-28 09:18:57The 15th anniversary wallpap
2025-01-28 09:18:273DM Xuanyuan Sinicization Gr
2025-01-28 09:17:57French magazine is the first
2025-01-28 09:17:27The sneak game "Republic" wi
2025-01-28 09:16:57
The story between humans and
2025-01-28 09:16:27
Capture "Trinity 3: Artifact
2025-01-28 09:15:27
Wind direction change "Myste
2025-01-28 09:14:57DICE's new project "Dream" w
2025-01-28 09:14:27
Pirate Minecraft Skins
Minecraft Skins
2024-12-10 04:11:27
Pirate Minecraft Skins
Minecraft Skins
2024-12-10 04:11:26
Master Minecraft Skins
Minecraft Skins
2024-12-10 04:11:25
King Minecraft Skins
Minecraft Skins
2024-12-10 04:11:25
Guide Minecraft Skins
Minecraft Skins
2024-12-10 04:11:24
Dark Knight Minecraft Skins
Minecraft Skins
2024-12-10 04:11:23
Sparta Minecraft Skins
Minecraft Skins
2024-12-10 04:11:23
Moncraft Skins of the War
Minecraft Skins
2024-12-10 04:11:22
Red Witch Minecraft Skins
Minecraft Skins
2024-12-10 04:11:22
Golden Cavaliers Minecraft S
Minecraft Skins
2024-12-10 04:11:22