<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Forge &#8211; HikariLan&#039;s Blog</title>
	<atom:link href="https://blog.hikarilan.life/tag/forge/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.hikarilan.life</link>
	<description>贺兰星辰的个人博客</description>
	<lastBuildDate>Tue, 10 May 2022 06:59:58 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>
	<item>
		<title>Forge 开发经验 —— 创造一个通过消耗耐久值进行合成的物品</title>
		<link>https://blog.hikarilan.life/tech/569/forge-%e5%bc%80%e5%8f%91%e7%bb%8f%e9%aa%8c-%e5%88%9b%e9%80%a0%e4%b8%80%e4%b8%aa%e9%80%9a%e8%bf%87%e6%b6%88%e8%80%97%e8%80%90%e4%b9%85%e5%80%bc%e8%bf%9b%e8%a1%8c%e5%90%88%e6%88%90/</link>
					<comments>https://blog.hikarilan.life/tech/569/forge-%e5%bc%80%e5%8f%91%e7%bb%8f%e9%aa%8c-%e5%88%9b%e9%80%a0%e4%b8%80%e4%b8%aa%e9%80%9a%e8%bf%87%e6%b6%88%e8%80%97%e8%80%90%e4%b9%85%e5%80%bc%e8%bf%9b%e8%a1%8c%e5%90%88%e6%88%90/#comments</comments>
		
		<dc:creator><![CDATA[贺兰星辰]]></dc:creator>
		<pubDate>Tue, 10 May 2022 06:59:58 +0000</pubDate>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Forge]]></category>
		<category><![CDATA[Minecraft]]></category>
		<guid isPermaLink="false">https://my.minecraft.kim/?p=569</guid>

					<description><![CDATA[Forge 开发经验 —— 创造一个通过损坏耐久值进行合成的物品 如果你玩过工业 2，你应该知道“锻造锤”这个 [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>如果你玩过工业 2，你应该知道“锻造锤”这个物品，它可以通过消耗耐久值来将矿物锻造成矿物片，但是实际上“消耗耐久值合成”这个功能在原版是不受支持的，那么，应当如何实现这个功能呢？ 环境：Minecraft 1.18.2, Forge 40.1.0, Mapping 'parchment' 2022.03.13-1.18.2 首先我们肯定还是要按照正常的情况（直接消耗整个物品，而不是消耗耐久值）将 recipe 的数据包 json 制作好的，接下来，我们要想办法让他消耗耐久值： 通常我们会想到用数据包直接实现，但是这个上面说了是不受支持的； 然后我们可能会想到用事件来捕获，但是 被触发时合成已经结束了，因此我们是无法获知合成信息的； 然后我们可能会想到覆盖 方法，但是这个方法的和上面的事件一样，被触发时合成也已经结束； 事实上，我们可以先退一步，</p>
<p><a href="https://blog.hikarilan.life/tech/569/forge-%e5%bc%80%e5%8f%91%e7%bb%8f%e9%aa%8c-%e5%88%9b%e9%80%a0%e4%b8%80%e4%b8%aa%e9%80%9a%e8%bf%87%e6%b6%88%e8%80%97%e8%80%90%e4%b9%85%e5%80%bc%e8%bf%9b%e8%a1%8c%e5%90%88%e6%88%90/" rel="nofollow">来源</a></p>]]></content:encoded>
					
					<wfw:commentRss>https://blog.hikarilan.life/tech/569/forge-%e5%bc%80%e5%8f%91%e7%bb%8f%e9%aa%8c-%e5%88%9b%e9%80%a0%e4%b8%80%e4%b8%aa%e9%80%9a%e8%bf%87%e6%b6%88%e8%80%97%e8%80%90%e4%b9%85%e5%80%bc%e8%bf%9b%e8%a1%8c%e5%90%88%e6%88%90/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

使用 2137对象缓存Redis
使用页面缓存Disk: Enhanced 
Minified using Disk
使用数据库缓存Redis

Served from: blog.hikarilan.life @ 2026-07-02 04:33:20 by W3 Total Cache
-->