<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Comment changer le drop d'un block ?]]></title><description><![CDATA[<p dir="auto">Bonjour, j’ai commencé depuis peu la 1.12 et j’ai voulu changer le drop d’un block.</p>
<pre><code>@SubscribeEvent
	public void bedDestroyed(HarvestDropsEvent event) {
		if(event.block == Blocks.DIAMOND_BLOCK) {
			// Ici je change mon drop
		}
	}
</code></pre>
<p dir="auto">Pour changer le drop ok mais mon problème c’est que ça ne détecte pas event.block == Blocks.DIAMOND_BLOCK.<br />
Si quelqu’un peut m’aider ?</p>
]]></description><link>https://www.minecraftforgefrance.fr/topic/5989/comment-changer-le-drop-d-un-block</link><generator>RSS for Node</generator><lastBuildDate>Tue, 17 Nov 2026 07:08:21 GMT</lastBuildDate><atom:link href="https://www.minecraftforgefrance.fr/topic/5989.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 05 Feb 2020 14:17:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Comment changer le drop d'un block ? on Wed, 05 Feb 2020 17:31:02 GMT]]></title><description><![CDATA[<p dir="auto">Bonsoir,<br />
Cela m’étonne de voir <code>event.block</code>, normalement en 1.12.2 il y a des getter. Essaies <code>event.getState().getBlock() == Blocks.DIAMOND_BLOCK)</code></p>
]]></description><link>https://www.minecraftforgefrance.fr/post/69176</link><guid isPermaLink="true">https://www.minecraftforgefrance.fr/post/69176</guid><dc:creator><![CDATA[robin4002]]></dc:creator><pubDate>Wed, 05 Feb 2020 17:31:02 GMT</pubDate></item><item><title><![CDATA[Reply to Comment changer le drop d'un block ? on Thu, 06 Feb 2020 16:27:13 GMT]]></title><description><![CDATA[<p dir="auto">Merci ça marche <img src="https://www.minecraftforgefrance.fr/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=191f1bb5acb" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://www.minecraftforgefrance.fr/post/69184</link><guid isPermaLink="true">https://www.minecraftforgefrance.fr/post/69184</guid><dc:creator><![CDATA[KAH]]></dc:creator><pubDate>Thu, 06 Feb 2020 16:27:13 GMT</pubDate></item><item><title><![CDATA[Reply to Comment changer le drop d'un block ? on Wed, 05 Feb 2020 17:31:02 GMT]]></title><description><![CDATA[<p dir="auto">Bonsoir,<br />
Cela m’étonne de voir <code>event.block</code>, normalement en 1.12.2 il y a des getter. Essaies <code>event.getState().getBlock() == Blocks.DIAMOND_BLOCK)</code></p>
]]></description><link>https://www.minecraftforgefrance.fr/post/69176</link><guid isPermaLink="true">https://www.minecraftforgefrance.fr/post/69176</guid><dc:creator><![CDATA[robin4002]]></dc:creator><pubDate>Wed, 05 Feb 2020 17:31:02 GMT</pubDate></item></channel></rss>