Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[1.10] Need help to remove item from LootTable

Featured Replies

Posted

I'm trying to remove items drop from Cows. The problem I'm having is that I don't know what's the name of the different LootPool that they hold.

 

With this example, I can remove the leather, but not the beef.

 

//REMOVE DROPS FROM COWS
	if (event.getName().equals(LootTableList.ENTITIES_COW)) {

		LootPool theLootPool = event.getTable().getPool("main");

		theLootPool.removeEntry("minecraft:leather");
		theLootPool.removeEntry("minecraft:beef");			

	}

 

I guess the problem is that actually the leather is the only item on LootPool main and the beef is on a different one.

 

So from there, I did some further investigation and found out that the beef is on a 2nd pool that we have to refer as "pool1" and there I was able to remove the beef.

 

My questions are. Is it possible to remove the drop in a general way even not knowing on what pool it is?

 

PS: Also, would it be possible to get a "pools" list, or a way to loop thru the pools?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.