Skip to content

Commit

Permalink
fix(recipes): ✏️Remove NBT tags from EnvironmentalTech items on pickup
Browse files Browse the repository at this point in the history
Now when you placed and pickup ET blocks such as controllers, their data will be removed what makes it easier to use in AE.
  • Loading branch information
Krutoy242 committed May 11, 2024
1 parent 4dae18f commit 3f5ad1f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/mods/environmentaltech.zs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

import crafttweaker.item.IIngredient;

// Fixing ET blocks have NBT on pickup
// Clear any NBT tags from picked up ET items
events.onPlayerPickupItem(function (e as crafttweaker.event.PlayerPickupItemEvent) {
if(e.player.world.remote) return;
if(e.item.item.definition.owner != 'environmentaltech') return;
if(isNull(e.item.item.tag) || isNull(e.item.item.tag.valk_td)) return;
e.item.item.mutable().withTag(null);
});

// commit #a0a88bb
// Personal Nano Beacon tier 5 + 6 harder recipes, to limit access to Resistance 5 (100% damage reduction)
recipes.remove(<environmentaltech:nano_cont_personal_6>);
Expand Down

0 comments on commit 3f5ad1f

Please sign in to comment.